~ubuntu-branches/ubuntu/trusty/surfraw/trusty-proposed

« back to all changes in this revision

Viewing changes to surfraw.spec.in

  • Committer: Bazaar Package Importer
  • Author(s): Christian Surchi
  • Date: 2002-03-02 23:54:34 UTC
  • Revision ID: james.westby@ubuntu.com-20020302235434-q857cvoylnmm7a84
Tags: upstream-1.0.7
ImportĀ upstreamĀ versionĀ 1.0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%define name    surfraw
 
2
%define version @VERSION@
 
3
%define release 1
 
4
%define builddir $RPM_BUILD_DIR/%{name}-%{version}
 
5
 
 
6
Name:           %{name}
 
7
Version:        %{version}
 
8
Release:        %{release}
 
9
Vendor:         Julian Assange 
 
10
Packager:       Julian Assange proff-projects-surfraw@iq.org
 
11
#URL:           
 
12
Source:         %{name}-%{version}.tar.gz
 
13
#Patch:         
 
14
Group:          Application/Generic
 
15
Copyright:      GPL
 
16
#Icon:          
 
17
#Requires:      
 
18
BuildRoot:      /var/tmp/%{name}-%{version}
 
19
BuildArchitectures:    noarch
 
20
 
 
21
Summary:        Shell Users Revolutionary Front Rage Against the Web
 
22
%description
 
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.
 
29
 
 
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.
 
37
 
 
38
  For example:
 
39
 
 
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
 
44
@configure_input@
 
45
%prep
 
46
%setup -n %{name}-%{version} 
 
47
#%patch -p1
 
48
 
 
49
%build
 
50
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
 
51
make
 
52
 
 
53
%install
 
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 :)
 
58
cd $RPM_BUILD_ROOT
 
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}
 
62
 
 
63
%clean
 
64
rm -rf $RPM_BUILD_ROOT
 
65
rm ../file.list.%{name}
 
66
 
 
67
%files -f ../file.list.%{name}
 
68
%doc README