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