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