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