Retry only for https protocol
[elinks.git] / contrib / elinks.spec.in
blob361536bdaa9b81133466a74f4419f871cb7117a1
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
5 # Conditional builds:
6 # --without 256 # build without support for 256 colors on xterm
7 # --without bzlib
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
12 # --without openssl
13 # --without smb # build without support for SMB protocol
14 # --without x # without X11 dependency (X11 libs are used only for restoring title
15 # in xterm)
16 # --without zlib #
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 >
32 Summary: Enhanced version of Links (Lynx-like text WWW browser)
33 Name: elinks
34 Version: @VERSION@
35 Release: 1
36 License: GPL
37 Vendor: ELinks project <elinks-users@linuxfromscratch.org>
38 Packager: Petr Baudis <pasky@ucw.cz>
39 Group: Applications/Internet
40 Source: http://elinks.cz/download/%{name}-%{version}.tar.bz2
41 URL: http://elinks.cz/
42 BuildRequires: bzip2-devel
43 BuildRequires: expat-devel
44 BuildRequires: gpm-devel
45 BuildRequires: openssl-devel
46 BuildRequires: zlib-devel
47 %{!?_without_x:BuildRequires: XFree86-devel}
48 BuildRoot: %{_tmppath}/%{name}-%{version}-build
50 %description
51 Enhanced version of Links (Lynx-like text WWW browser), with more liberal
52 features policy and development style.
54 ELinks aims to provide feature-rich version of Links. Its purpuose is to make
55 alternative to Links, and to test and tune various new features, but still
56 provide good rock-solid releases inside stable branches.
58 %prep
59 %setup -q
61 %build
64 # if you just checkout the source and make a tarball from it uncomment
65 # the following line
67 # ./autogen.sh
69 %configure \
70 %{?debug: --enable-debug} \
71 %{!?debug: --enable-fastmem} \
72 %{?_without_x: --without-x} \
73 %{?_without_lua: --without-lua} \
74 %{?_without_zlib: --without-zlib} \
75 %{?_without_bzlib: --without-bzlib} \
76 %{?_without_gpm: --without-gpm} \
77 %{?_without_openssl: --without-openssl} \
78 %{?_with_guile: --with-guile} \
79 %{?_with_perl: --with-perl} \
80 %{?_without_lua: --without-lua} \
81 %{!?_without_leds: --enable-leds} \
82 %{!?_without_256: --enable-256-colors} \
83 %{?_without_smb: --disable-smb} \
84 %{!?_without_cgi: --enable-cgi} \
85 --enable-exmode \
86 --enable-html-highlight \
87 --enable-gopher \
88 --enable-finger \
89 --enable-nntp \
90 %{?_without_spidermonkey: --without-spidermonkey}
93 %{__make}
96 %install
97 rm -rf $RPM_BUILD_ROOT
98 %{__make} install DESTDIR=$RPM_BUILD_ROOT
99 install -d $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/{contrib,conv,lua,guile,perl}
100 install \
101 AUTHORS* BUGS* ChangeLog* COPYING* README* SITES* TODO* THANKS* \
102 INSTALL* NEWS* $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/
103 install \
104 contrib/elinks.vim contrib/elinks-vim.diff contrib/keybind*.conf \
105 $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/contrib/
106 install \
107 contrib/conv/w3m2links.awk contrib/conv/conf-links2elinks.pl \
108 contrib/conv/mailcap.pl contrib/conv/old_to_new_bookmarks.sh \
109 $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/conv/
110 install \
111 contrib/lua/elinks-remote contrib/lua/*.lua \
112 $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/lua/
113 install \
114 contrib/guile/*scm \
115 $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/guile/
116 install \
117 contrib/perl/hooks.pl \
118 $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/perl
119 install \
120 doc/html/*.html \
121 $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/
123 %find_lang %{name}
125 %clean
126 rm -rf $RPM_BUILD_ROOT
128 %files -f %{name}.lang
129 %defattr(644,root,root,755)
130 %attr (755,root,root) %{_bindir}/%{name}
131 %doc %{_defaultdocdir}/%{name}
132 %doc %{_mandir}/man?/*
134 # date +"%a %b %d %Y"
135 %changelog
136 * Sat Apr 29 2006 Witold Filipczyk <witekfl@pld-linux.org>
137 - html docs instead of text files
139 * Fri Feb 17 2006 Witold Filipczyk <witekfl@pld-linux.org>
140 - typo
142 * Thu Dec 29 2005 Miciah Dashiel Butler Masters <mdm0304@ecu.edu>
143 - elinks.or.cz -> elinks.cz
145 * Tue Jun 14 2005 Witold Filipczyk <witekfl@pld-linux.org>
146 - removed unused texi2html dependency
147 - removed unused libdir directory
149 * Mon Sep 27 2004 Witold Filipczyk <witekfl@pld-linux.org>
150 - by default build feature rich ELinks
152 * Thu Mar 25 2004 Witold Filipczyk <witekfl@pld-linux.org>
153 - a lot of bconds
154 - added hooks.pl
156 * Wed Dec 10 2003 Witold Filipczyk <witekfl@pld-linux.org>
157 - enabled leds and local-cgi
159 * Sun Oct 26 2003 Witold Filipczyk <witekfl@pld-linux.org>
160 - revert to version from 5 October
162 * Sat Oct 25 2003 Witold Filipczyk <witekfl@pld-linux.org>
163 - more BRs. gettext should be enough for most cases, but
164 gettext-devel shouldn't hurt.
166 * Sun Oct 05 2003 Witold Filipczyk <witekfl@pld-linux.org>
167 - enabled 256 colors
169 * Thu Oct 02 2003 Witold Filipczyk <witekfl@pld-linux.org>
170 - polished
171 - no sanity checks
173 * Sat Sep 27 2003 darix@irssi.org
174 - added license
175 - changed BuildRoot to use tmppath variable.
176 - removed prefix
177 - added some more docs and the guile scripts
179 * Sat Sep 27 2003 Petr Baudis <pasky@ucw.cz>
180 - sanity checks of $RPM_BUILD_ROOT before rm -rf'ing it, based on darix's
181 suggestion
183 * Sun Jan 26 2003 Petr Baudis <pasky@ucw.cz>
184 - elinks.pld.org.pl -> elinks.or.cz, based on Bennett's suggestion
186 * Thu Dec 19 2002 Bennett Todd <bet@rahul.net>
187 - wildcarded the above doc and manpage specifications, and tagged the man
188 pages as docs
190 * Mon May 06 2002 yanek@yankuv.koniec.sk
191 - general update - cleanup of .spec file, massive simplifications
193 * Thu Apr 04 2002 pasky@ucw.cz
194 - Changed some stuff so that it's now ready for inclusion..
196 * Sat Mar 16 2002 zimon (ät) iki fi
197 - Made my own elinks.spec file as the one I found with Google didn't work how
198 I wanted