1 # To build rpm: rpmbuild -bb elinks.spec
2 # Debug version: rpmbuild -bb elinks.spec --debug
3 # Console version without X11 dependency: rpmbuild -bb elinks.spec --without x
4 # by default all features are enabled
6 # --without 256 # build without support for 256 colors on xterm
8 # --without cgi # build without local cgi support
9 # --without gpm # build without GPM support
10 # --without leds # disable leds support
11 # --without lua # build without lua scripting engine
13 # --without smb # build without support for SMB protocol
14 # --without x # without X11 dependency (X11 libs are used only for restoring title
17 # --with guile # build with guile scripting engine
18 # --with perl # build with Perl scripting engine
20 # This file was contributed by <zimon@niksula.hut.fi> and
21 # <yanek@yankuv.koniec.sk>.
23 # Just try to send the patch/new version to them and wait few days if they will
24 # do anything. If yes, they'll approve it or forward it to me (don't fear, the
25 # credit won't be lost) if it's ok by them. If you won't get any reply, send it
26 # to the elinks-dev mailing list. Thanks! --pasky
29 # Spec file format from < http://www.rpm.org/RPM-HOWTO/build.html >
31 # $Id: elinks.spec.in,v 1.19 2005/06/14 13:34:04 witekfl Exp $
33 Summary: Enhanced version of Links
(Lynx
-like text WWW browser
)
38 Vendor: ELinks project
<elinks
-users@linuxfromscratch.org
>
39 Packager: Petr Baudis
<pasky@ucw.cz
>
40 Group: Applications
/Internet
41 Source: http
://elinks.or.cz
/download
/%{name}-%{version}.tar.bz2
42 URL: http
://elinks.or.cz
/
43 BuildRequires
: bzip2
-devel
44 BuildRequires
: expat
-devel
45 BuildRequires
: gpm
-devel
46 BuildRequires
: openssl
-devel
47 BuildRequires
: zlib
-devel
48 %{!?_without_x:BuildRequires: XFree86-devel}
49 BuildRoot: %{_tmppath}/%{name}-%{version}-build
52 Enhanced version of Links
(Lynx
-like text WWW browser
), with more liberal
53 features policy and development style.
55 ELinks aims to provide feature
-rich version of Links. Its purpuose is to
make
56 alternative to Links
, and to
test and tune various new features
, but still
57 provide good rock
-solid releases inside stable branches.
65 # if you just checkout the source and make a tarball from it uncomment
71 %{?debug: --enable-debug} \
72 %{!?debug: --enable-fastmem} \
73 %{?_without_x: --without-x} \
74 %{?_without_lua: --without-lua} \
75 %{?_without_zlib: --without-zlib} \
76 %{?_without_bzlib: --without-bzlib} \
77 %{?_without_gpm: --without-gpm} \
78 %{?_without_openssl: --without-openssl} \
79 %{?_with_guile: --with-guile} \
80 %{?_with_perl: --with-perl} \
81 %{?_without_lua: --without-lua} \
82 %{!?_without_leds: --enable-leds} \
83 %{!?_without_256: --enable-256-colors} \
84 %{?_without_smb: --disable-smb} \
85 %{!?_without_cgi: --enable-cgi} \
87 --enable-html
-highlight \
91 %{?_without_spidermonkey: --without-spidermonkey}
98 rm -rf $RPM_BUILD_ROOT
99 %{__make} install DESTDIR
=$RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT
/%{_defaultdocdir}/%{name}/{contrib,conv,lua,guile,perl}
102 AUTHORS
* BUGS
* ChangeLog
* COPYING
* README
* SITES
* TODO
* THANKS
* \
103 INSTALL
* NEWS
* $RPM_BUILD_ROOT
/%{_defaultdocdir}/%{name}/
105 contrib
/elinks.vim contrib
/elinks
-vim.diff contrib
/keybind
*.conf \
106 $RPM_BUILD_ROOT
/%{_defaultdocdir}/%{name}/contrib
/
108 contrib
/conv
/w3m2links.gawk contrib
/conv
/conf
-links2elinks.pl \
109 contrib
/conv
/mailcap.pl contrib
/conv
/old_to_new_bookmarks.sh \
110 $RPM_BUILD_ROOT
/%{_defaultdocdir}/%{name}/conv
/
112 contrib
/lua
/elinks
-remote contrib
/lua
/*.lua \
113 $RPM_BUILD_ROOT
/%{_defaultdocdir}/%{name}/lua
/
116 $RPM_BUILD_ROOT
/%{_defaultdocdir}/%{name}/guile
/
118 contrib
/perl
/hooks.pl \
119 $RPM_BUILD_ROOT
/%{_defaultdocdir}/%{name}/perl
121 doc
/*.txt doc
/*.html \
122 $RPM_BUILD_ROOT
/%{_defaultdocdir}/%{name}/
127 rm -rf $RPM_BUILD_ROOT
129 %files -f
%{name}.lang
130 %defattr(644,root
,root
,755)
131 %attr (755,root
,root
) %{_bindir}/%{name}
132 %doc %{_defaultdocdir}/%{name}
133 %doc %{_mandir}/man?
/*
135 # date +"%a %b %d %Y"
137 *Tue Jun
14 2005 Witold Filipczyk
<witekfl@pld
-linux.org
>
138 - removed unused texi2html dependency
139 - removed unused libdir directory
141 *Mon Sep
27 2004 Witold Filipczyk
<witekfl@pld
-linux.org
>
142 - by default build feature rich ELinks
144 * Thu Mar
25 2004 Witold Filipczyk
<witekfl@pld
-linux.org
>
148 * Wed Dec
10 2003 Witold Filipczyk
<witekfl@pld
-linux.org
>
149 - enabled leds and
local-cgi
151 * Sun
0ct
26 2003 Witold Filipczyk
<witekfl@pld
-linux.org
>
152 - revert to version from
5 October
154 * Sat Oct
25 2003 Witold Filipczyk
<witekfl@pld
-linux.org
>
155 - more BRs. gettext should be enough
for most cases
, but
156 gettext
-devel shouldn't hurt.
158 * Sun Oct
05 2003 Witold Filipczyk
<witekfl@pld
-linux.org
>
161 * Thu Oct
02 2003 Witold Filipczyk
<witekfl@pld
-linux.org
>
165 * Sat Sep
27 2003 darix@irssi.org
167 - changed
BuildRoot to use tmppath variable.
169 - added some more docs and the guile scripts
171 * Sat Sep
27 2003 Petr Baudis
<pasky@ucw.cz
>
172 - sanity checks of $RPM_BUILD_ROOT before
rm -rf'ing it
, based on darix's
175 * Sun Jan
26 2003 Petr Baudis
<pasky@ucw.cz
>
176 - elinks.pld.org.pl
-> elinks.or.cz
, based on Bennett's suggestion
178 * Thu Dec
19 2002 Bennett Todd
<bet@rahul.net
>
179 - wildcarded the above doc and manpage specifications
, and tagged the man
182 * Mon May
06 2002 yanek@yankuv.koniec.sk
183 - general update
- cleanup of .spec file
, massive simplifications
185 * Thu Apr
04 2002 pasky@ucw.cz
186 - Changed some stuff so that it's now ready
for inclusion..
188 * Sat Mar
16 2002 zimon
(ät
) iki
fi
189 - Made my own elinks.spec file as the one I found with Google didn't work how