File: surfraw.spec.in

package info (click to toggle)
surfraw 2.1.0-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 780 kB
  • ctags: 139
  • sloc: sh: 7,085; perl: 355; makefile: 155
file content (70 lines) | stat: -rw-r--r-- 2,348 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# $Id: surfraw.spec.in,v 1.4 2004/02/06 00:31:05 ianb-guest Exp $

%define name	surfraw
%define version @VERSION@
%define release 1
%define builddir $RPM_BUILD_DIR/%{name}-%{version}

Name:		%{name}
Version:	%{version}
Release:	%{release}
Vendor:		Julian Assange 
Packager:	Julian Assange proff-projects-surfraw@iq.org
#URL:		
Source:         %{name}-%{version}.tar.gz
#Patch:		
Group:		Application/Generic
Copyright:	GPL
#Icon:		
#Requires:	
BuildRoot:	/var/tmp/%{name}-%{version}
BuildArchitectures:    noarch

Summary:	Shell Users Revolutionary Front Rage Against the Web
%description
  Surfraw provides a fast unix command line interface to a variety of
  popular WWW search engines and other artifacts of power. It reclaims
  google, altavista, dejanews, freshmeat, research index, slashdot
  and many others from the false-prophet, pox-infested heathen lands of
  html-forms, placing these wonders where they belong, deep in unix
  heartland, as god loving extensions to the shell.

  Surfraw abstracts the browser away from input. Doing so lets it get
  on with what it's good at. Browsing. Interpretation of linguistic
  forms is handed back to the shell, which is what it, and human
  beings are good at. Combined with incremental text browsers, such
  as links, w3m (or even lynx), and screen(1), or netscape-remote
  a Surfraw liberateur is capable of research speeds that leave
  GUI tainted idolaters agape with fear and wonder.

  For example:

         $ ask why is jeeves gay?
         $ google -results=100 RMS, GNU, which is sinner, which is sin?
         $ austlii -method=phrase dog like
         $ rhyme -method=perfect Julian
@configure_input@
%prep
%setup -n %{name}-%{version} 
#%patch -p1

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
make

%install
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
mkdir -p $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# Build the file-list automagically :)
cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name}
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}

%clean
rm -rf $RPM_BUILD_ROOT
rm ../file.list.%{name}

%files -f ../file.list.%{name}
%doc README