2
%define version @VERSION@
4
%define builddir $RPM_BUILD_DIR/%{name}-%{version}
10
Packager: Julian Assange proff-projects-surfraw@iq.org
12
Source: %{name}-%{version}.tar.gz
14
Group: Application/Generic
18
BuildRoot: /var/tmp/%{name}-%{version}
19
BuildArchitectures: noarch
21
Summary: Shell Users Revolutionary Front Rage Against the Web
23
Surfraw provides a fast unix command line interface to a variety of
24
popular WWW search engines and other artifacts of power. It reclaims
25
google, altavista, dejanews, freshmeat, research index, slashdot
26
and many others from the false-prophet, pox-infested heathen lands of
27
html-forms, placing these wonders where they belong, deep in unix
28
heartland, as god loving extensions to the shell.
30
Surfraw abstracts the browser away from input. Doing so lets it get
31
on with what it's good at. Browsing. Interpretation of linguistic
32
forms is handed back to the shell, which is what it, and human
33
beings are good at. Combined with incremental text browsers, such
34
as links, w3m (or even lynx), and screen(1), or netscape-remote
35
a Surfraw liberateur is capable of research speeds that leave
36
GUI tainted idolaters agape with fear and wonder.
40
$ ask why is jeeves gay?
41
$ google -results=100 RMS, GNU, which is sinner, which is sin?
42
$ austlii -method=phrase dog like
43
$ ryhme -method=perfect Julian
46
%setup -n %{name}-%{version}
50
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
54
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
55
mkdir -p $RPM_BUILD_ROOT
56
make install DESTDIR=$RPM_BUILD_ROOT
57
# Build the file-list automagically :)
59
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name}
60
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
61
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
64
rm -rf $RPM_BUILD_ROOT
65
rm ../file.list.%{name}
67
%files -f ../file.list.%{name}