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