]> git.pld-linux.org Git - packages/elinks.git/blame - elinks.spec
- cosmetics
[packages/elinks.git] / elinks.spec
CommitLineData
2e552f3e 1# TODO: consider lua51
fb650491 2
21bf3c6a 3# Conditional build:
9e38293e
JB
4# - protocols
5%bcond_without bittorrent # BitTorrent protocol support
6%bcond_without fsp # FSP support
7%bcond_without idn # Internation Domain Names support
8%bcond_without ipv6 # IPv6 support
9%bcond_with smb # smb protocol support (non-distib: recent libsmbclient is GPL v3)
10%bcond_with gnutls # GNUTLS-based SSL support (instead of openssl)
11%bcond_without openssl # OpenSSL-based SSL support
12# - content
13%bcond_without cgi # Local CGI support
14%bcond_without js # experimental (yet quite usable) JavaScript support (using SpiderMonkey)
15%bcond_with lzma # LZMA support (old API, incompatible with xz-libs)
16# - scripting
17%bcond_with guile # Guile scripting support (non-distrib: guile 2 is LGPL v3+)
18%bcond_without lua # Lua scripting
19%bcond_without perl # Perl scripting
20%bcond_with python # Python scripting support
21%bcond_with ruby # (experimental) Ruby scripting support
22# - display and UI
c9adcf77
JB
23%bcond_without 256 # 256 colors support
24%bcond_without led # LEDs
0278e8c7 25%bcond_with olderisbetter # variuos pre-0.10.0 behaviour rules (typeahead and esc-esc)
9e38293e
JB
26%bcond_with x # Use the X Window System
27# - misc
28%bcond_without verbose # verbose build (V=1)
e0b0004d 29
3d4d38d9
AG
30%if %{with gnutls}
31%undefine with_openssl
32%endif
e0b0004d 33
535000d4 34%define subver pre6
9e38293e 35%define rel 2
17631700 36Summary: Experimantal Links (text WWW browser)
f85cbf5d
ER
37Summary(es.UTF-8): El links es un browser para modo texto, similar a lynx
38Summary(pl.UTF-8): Eksperymentalny Links (tekstowa przeglądarka WWW)
39Summary(pt_BR.UTF-8): O links é um browser para modo texto, similar ao lynx
17631700 40Name: elinks
80cd88a3 41Version: 0.12
e0b0004d 42Release: 0.%{subver}.%{rel}
e2affc83 43Epoch: 1
d8169248 44License: GPL v2
17631700 45Group: Applications/Networking
e0b0004d 46Source0: http://www.elinks.cz/download/%{name}-%{version}%{subver}.tar.bz2
535000d4 47# Source0-md5: 3d0962f4b65fb039342fefd3ada050a9
17631700 48Source1: %{name}.desktop
5a8f1bd1 49Source2: links.png
ef0f233a
AG
50Patch0: %{name}-home_etc.patch
51Patch1: %{name}-lua40.patch
505355c8 52Patch2: %{name}-date-format.patch
0278e8c7
TP
53Patch3: %{name}-fbterm.patch
54Patch4: %{name}-old_incremental.patch
55Patch5: %{name}-0.10.0-0.9.3-typeahead-beginning.patch
56Patch6: %{name}-double-esc.patch
8ca357a6 57URL: http://www.elinks.cz/
c20ec49a 58BuildRequires: autoconf >= 2.61
17631700 59BuildRequires: automake
5a8f1bd1 60BuildRequires: bzip2-devel
fcffdc5b 61BuildRequires: expat-devel
b631af97 62%{?with_fsp:BuildRequires: fsplib-devel}
ab99996e 63BuildRequires: gettext-devel
e0b0004d 64%{?with_gnutls:BuildRequires: gnutls-devel >= 1.2.5}
17631700 65BuildRequires: gpm-devel
3d4d38d9 66%{?with_guile:BuildRequires: guile-devel}
0278e8c7 67#BuildRequires: heimdal-devel
3d4d38d9 68%{?with_js:BuildRequires: js-devel >= 1.5-0.rc6a.1}
535000d4 69%{?with_js:BuildRequires: js-devel < 2:1.8.5}
3d4d38d9 70%{?with_idn:BuildRequires: libidn-devel}
505355c8 71%{?with_smb:BuildRequires: libsmbclient-devel}
8eb57a4f 72%{?with_lua:BuildRequires: lua50-devel}
505355c8 73%{?with_lzma:BuildRequires: lzma-devel}
1c33e430 74BuildRequires: ncurses-devel >= 5.1
3d4d38d9
AG
75%{?with_openssl:BuildRequires: openssl-devel >= 0.9.7d}
76%{?with_perl:BuildRequires: perl-devel}
f28e64c7 77BuildRequires: pkgconfig
9659fcbf 78%{?with_python:BuildRequires: python-devel}
8ca357a6 79%{?with_ruby:BuildRequires: ruby-devel}
42ac557b 80BuildRequires: tre-devel
f28e64c7 81BuildRequires: which
5a8f1bd1 82BuildRequires: zlib-devel
e1bc1545 83Suggests: mailcap
17631700
AM
84Provides: webclient
85BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
86
c4be24e9 87%define _sysconfdir /etc/elinks
e0b0004d 88%define specflags_ia32 -fomit-frame-pointer
4fc089e9 89
17631700 90%description
cd6ad879
JB
91This is the elinks tree - intended to provide feature-rich version of
92links, however not rock-stable and dedicated mainly for testing. Its
93purpose is to make alternative to links, until Mikulas will have some
94time to maintain it, and to test and tune various patches for Mikulas
95to be able to include them in the official links releases.
17631700 96
3328f371 97%description -l es.UTF-8
c15f1e53 98Links es un browser WWW modo texto, similar al Lynx. El links muestra
99tablas, hace baja archivos en segundo plano, y usa conexiones HTTP/1.1
100keepalive.
101
3328f371
JR
102%description -l pl.UTF-8
103Bogata w opcje i możliwości wersja tekstowej przeglądarki WWW - links.
104elinks jednak jest dedykowana głównie do testowania.
17631700 105
3328f371
JR
106%description -l pt_BR.UTF-8
107Links é um browser WWW modo texto, similar ao Lynx. O Links exibe
108tabelas, baixa arquivos em segundo plano, e usa as conexões HTTP/1.1
c15f1e53 109keepalive.
110
17631700 111%prep
e0b0004d 112%setup -q -n %{name}-%{version}%{subver}
fb650491 113%patch0 -p1
1fa8ef0a 114%patch1 -p1
fb650491 115%patch2 -p1
0278e8c7
TP
116%patch3 -p1
117%if %{with olderisbetter}
42ac557b 118%patch4 -p1
0278e8c7
TP
119%patch5 -p1
120%patch6 -p1
121%endif
0b57a582 122
17631700 123%build
663b78ce 124%{__aclocal}
285e9f62 125%{__autoconf}
115d3038 126%{__autoheader}
ad628403 127%configure \
8ca357a6 128 %{?with_bittorrent:--enable-bittorrent} \
3d4d38d9 129 %{?with_cgi:--enable-cgi} \
0278e8c7 130 --enable-88-colors \
3d4d38d9 131 %{?with_256:--enable-256-colors} \
0278e8c7 132 --enable-true-color \
3d4d38d9 133 --enable-exmode \
9e38293e
JB
134 %{?debug:--enable-debug} \
135 %{!?debug:--enable-fastmem} \
136 --enable-finger \
b631af97 137 %{?with_fsp:--enable-fsp} \
9e38293e
JB
138 --enable-gopher \
139 --enable-html-highlight \
140 %{!?with_ipv6:--disable-ipv6} \
3d4d38d9 141 %{?with_leds:--enable-leds} \
8ca357a6 142 --enable-marks \
9e38293e 143 --enable-nntp \
c9adcf77 144 --disable-no-root \
9e38293e
JB
145 %{?with_smb:--enable-smb} \
146 --without-gc \
147 %{?with_gnutls:--with-gnutls} \
3d4d38d9 148 %{?with_guile:--with-guile} \
9e38293e 149 %{!?with_idn:--without-idn} \
62c5be6a 150 %{!?with_lua:--without-lua} \
9e38293e
JB
151 %{?with_lzma:--with-lzma} \
152 %{!?with_openssl:--without-openssl} \
153 %{?with_perl:--with-perl} \
507bef3e 154 %{?with_python:--with-python} \
8ca357a6 155 %{?with_ruby:--with-ruby} \
3d4d38d9 156 %{!?with_js:--without-spidermonkey} \
9e38293e
JB
157 --with-x%{!?with_x:=no}
158# xterm -e is default, one might want to change it to something else:
82dd9b93 159# --with-xterm="xterm -e"
3d4d38d9 160
247545b3 161%{__make} %{?with_verbose:V=1}
17631700
AM
162
163%install
164rm -rf $RPM_BUILD_ROOT
1568d5eb 165install -d $RPM_BUILD_ROOT%{_desktopdir} \
ad628403 166 $RPM_BUILD_ROOT%{_datadir}/%{name} \
c4be24e9 167 $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir}}
17631700 168
247545b3 169%{__make} install %{?with_verbose:V=1} \
834d1634 170 DESTDIR=$RPM_BUILD_ROOT
17631700 171
9e38293e 172%{__rm} $RPM_BUILD_ROOT%{_datadir}/locale/locale.alias
e0b0004d
ER
173
174cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
175cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
5a8f1bd1 176
ef0f233a 177%{?with_lua:install contrib/lua/*.lua $RPM_BUILD_ROOT%{_sysconfdir}}
347f019c 178
269a2ef7 179%find_lang %{name}
180
17631700
AM
181%clean
182rm -rf $RPM_BUILD_ROOT
183
269a2ef7 184%files -f %{name}.lang
17631700 185%defattr(644,root,root,755)
c20ec49a
JB
186%doc AUTHORS BUGS ChangeLog NEWS README SITES TODO doc/html/*.html
187%doc contrib/{keybind*,wipe-out-ssl*,lua/elinks-remote} contrib/conv/{*awk,*.pl,*.sh}
188%attr(755,root,root) %{_bindir}/elinks
189%{_mandir}/man1/elinks.1*
190%{_mandir}/man5/elinks.conf.5*
191%{_mandir}/man5/elinkskeys.5*
192%{_desktopdir}/elinks.desktop
193%{_pixmapsdir}/elinks.png
194%if %{with lua}
195%dir %{_sysconfdir}
196%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.lua
197%endif
This page took 0.71912 seconds and 4 git commands to generate.