X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=elinks.spec;h=105be9a93589acaeb483b9253695ee4b0c2b065f;hb=355227803631ca896b21e5331df1a5abc961c5a0;hp=e615ddecaaa075ddd4fe71a1f1157b72741e5795;hpb=69d969c452f54d350ebdc2e3b93b6e438774edde;p=packages%2Felinks.git diff --git a/elinks.spec b/elinks.spec index e615dde..105be9a 100644 --- a/elinks.spec +++ b/elinks.spec @@ -1,63 +1,93 @@ # # Conditional build: -%bcond_with x # Use the X Windows System -%bcond_with gnutls # Enable GNUTLS SSL support (disables openssl) -%bcond_without 256 # Disable 256 colors support -%bcond_without cgi # Disable Local CGI support -%bcond_without guile # Disable Guile scripting -%bcond_without idn # Disable Internation Domain Names support -%bcond_without ipv6 # Disable IPv6 support -%bcond_without js # Disable experimental (yet quite usable) JavaScript support (using SpiderMonkey) -%bcond_without led # Disable LEDs -%bcond_without lua # Disable Lua scripting -%bcond_without openssl # Disable OpenSSL support -%bcond_without perl # Disable Perl scripting -# +# - protocols +%bcond_without bittorrent # BitTorrent protocol support +%bcond_without fsp # FSP support +%bcond_without idn # Internation Domain Names support +%bcond_without ipv6 # IPv6 support +%bcond_with smb # smb protocol support (non-distib: recent libsmbclient is GPL v3) +%bcond_with gnutls # GNUTLS-based SSL support (instead of openssl) +%bcond_without openssl # OpenSSL-based SSL support +# - content +%bcond_without cgi # Local CGI support +%bcond_with brotli # Brotli compression support +%bcond_without js # experimental (yet quite usable) JavaScript support (using SpiderMonkey) +%bcond_with lzma # LZMA support (old API, incompatible with xz-libs) +# - scripting +%bcond_with guile # Guile scripting support (non-distrib: guile 2 is LGPL v3+) +%bcond_without lua # Lua scripting +%bcond_without perl # Perl scripting +%bcond_with python # Python scripting support +%bcond_with ruby # (experimental) Ruby scripting support +# - display and UI +%bcond_without 256 # 256 colors support +%bcond_without led # LEDs +%bcond_without truecolor # true color +%bcond_with olderisbetter # variuos pre-0.10.0 behaviour rules (typeahead and esc-esc) +%bcond_with x # Use the X Window System +# - misc +%bcond_without verbose # verbose build (V=1) + %if %{with gnutls} %undefine with_openssl %endif -# + Summary: Experimantal Links (text WWW browser) -Summary(es): El links es un browser para modo texto, similar a lynx -Summary(pl): Eksperymentalny Links (tekstowa przegl±darka WWW) -Summary(pt_BR): O links é um browser para modo texto, similar ao lynx +Summary(es.UTF-8): El links es un browser para modo texto, similar a lynx +Summary(pl.UTF-8): Eksperymentalny Links (tekstowa przeglądarka WWW) +Summary(pt_BR.UTF-8): O links é um browser para modo texto, similar ao lynx Name: elinks -Version: 0.10.5 -Release: 3 +Version: 0.13 +%define snap 20151228 +%define rel 3 +Release: 4.%{snap}.%{rel} Epoch: 1 -License: GPL +License: GPL v2 Group: Applications/Networking -#Source0Download: http://elinks.or.cz/download.html -Source0: http://elinks.or.cz/download/%{name}-%{version}.tar.bz2 -# Source0-md5: d19fea8cddd1c64ae890319650dce1ff +# github gives different archive on each download +# http://www.elinks.cz/download/%{name}-current-%{version}.tar.bz2 +Source0: http://elinks.cz/download/elinks-current-%{version}.tar.bz2 +# Source0-md5: c8e0588124c127f5d025cb1cafe5d9d3 Source1: %{name}.desktop Source2: links.png Patch0: %{name}-home_etc.patch Patch1: %{name}-lua40.patch -Patch2: %{name}-locale_names.patch -#Patch3: %{name}-pl.po-update.patch -URL: http://elinks.or.cz/ -BuildRequires: autoconf +Patch2: %{name}-date-format.patch +Patch3: %{name}-old_incremental.patch +Patch4: %{name}-0.10.0-0.9.3-typeahead-beginning.patch +Patch5: %{name}-double-esc.patch +URL: http://www.elinks.cz/ +BuildRequires: autoconf >= 2.61 BuildRequires: automake BuildRequires: bzip2-devel BuildRequires: expat-devel -BuildRequires: gettext-devel +%{?with_fsp:BuildRequires: fsplib-devel} +BuildRequires: gettext-tools +%{?with_gnutls:BuildRequires: gnutls-devel >= 1.2.5} BuildRequires: gpm-devel %{?with_guile:BuildRequires: guile-devel} -%{?with_gnutls:BuildRequires: gnutls-devel >= 1.2.5} -%{?with_js:BuildRequires: js-devel >= 1.5-0.rc6a.1} +#BuildRequires: heimdal-devel +%{?with_js:BuildRequires: js187-devel} +%{?with_brotli:BuildRequires: libbrotli-devel} %{?with_idn:BuildRequires: libidn-devel} -%{?with_lua:BuildRequires: lua50-devel} +%{?with_smb:BuildRequires: libsmbclient-devel} +%{?with_lua:BuildRequires: lua51-devel >= 5.1} +%{?with_lzma:BuildRequires: lzma-devel} BuildRequires: ncurses-devel >= 5.1 %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7d} %{?with_perl:BuildRequires: perl-devel} +BuildRequires: pkgconfig +%{?with_python:BuildRequires: python-devel} +%{?with_ruby:BuildRequires: ruby-devel} +BuildRequires: tre-devel +BuildRequires: which BuildRequires: zlib-devel -BuildRequires: tetex +Suggests: mailcap Provides: webclient BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _sysconfdir /etc/elinks -%define specflags_ia32 -fomit-frame-pointer +%define specflags_ia32 -fomit-frame-pointer %description This is the elinks tree - intended to provide feature-rich version of @@ -66,61 +96,71 @@ purpose is to make alternative to links, until Mikulas will have some time to maintain it, and to test and tune various patches for Mikulas to be able to include them in the official links releases. -%description -l es +%description -l es.UTF-8 Links es un browser WWW modo texto, similar al Lynx. El links muestra tablas, hace baja archivos en segundo plano, y usa conexiones HTTP/1.1 keepalive. -%description -l pl -Bogata w opcje i mo¿liwo¶ci wersja tekstowej przegl±darki WWW - links. -elinks jednak jest dedykowana g³ównie do testowania. +%description -l pl.UTF-8 +Bogata w opcje i możliwości wersja tekstowej przeglądarki WWW - links. +elinks jednak jest dedykowana głównie do testowania. -%description -l pt_BR -Links é um browser WWW modo texto, similar ao Lynx. O Links exibe -tabelas, baixa arquivos em segundo plano, e usa as conexões HTTP/1.1 +%description -l pt_BR.UTF-8 +Links é um browser WWW modo texto, similar ao Lynx. O Links exibe +tabelas, baixa arquivos em segundo plano, e usa as conexões HTTP/1.1 keepalive. %prep -%setup -q +%setup -q -n %{name}-%{version}-%{snap} %patch0 -p1 %patch1 -p1 %patch2 -p1 - -mv -f po/{no,nb}.po +%if %{with olderisbetter} +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%endif %build %{__aclocal} %{__autoconf} %{__autoheader} -%{__automake} %configure \ - --disable-no-root \ - HAVE_SMBCLIENT=yes \ - %{!?debug:--enable-fastmem} \ - %{?debug:--enable-debug} \ - %{!?with_ipv6:--disable-ipv6} \ + %{?with_bittorrent:--enable-bittorrent} \ %{?with_cgi:--enable-cgi} \ - --enable-finger \ - --enable-gopher \ - --enable-nntp \ + --enable-88-colors \ %{?with_256:--enable-256-colors} \ + %{?with_truecolor:--enable-true-color} \ --enable-exmode \ - %{?with_leds:--enable-leds} \ + %{?debug:--enable-debug} \ + %{!?debug:--enable-fastmem} \ + --enable-finger \ + %{?with_fsp:--enable-fsp} \ + --enable-gopher \ --enable-html-highlight \ - %{!?with_idn:--without-idn} \ + %{!?with_ipv6:--disable-ipv6} \ + %{?with_leds:--enable-leds} \ + --enable-marks \ + --enable-nntp \ + --disable-no-root \ + %{?with_smb:--enable-smb} \ + %{?with_brotli:--with-brotli} \ + --without-gc \ + %{?with_gnutls:--with-gnutls} \ %{?with_guile:--with-guile} \ - %{?with_perl:--with-perl} \ + %{!?with_idn:--without-idn} \ %{!?with_lua:--without-lua} \ - %{!?with_js:--without-spidermonkey} \ - %{?with_gnutls:--with-gnutls} \ + %{?with_lzma:--with-lzma} \ %{!?with_openssl:--without-openssl} \ - --with%{!?with_x:out}-x - -%{__make} + %{?with_perl:--with-perl} \ + %{?with_python:--with-python} \ + %{?with_ruby:--with-ruby} \ + %{!?with_js:--without-spidermonkey} \ + --with-x%{!?with_x:=no} +# xterm -e is default, one might want to change it to something else: +# --with-xterm="xterm -e" -cd doc -texi2html elinks-lua.texi -cd .. +%{__make} %{?with_verbose:V=1} %install rm -rf $RPM_BUILD_ROOT @@ -128,11 +168,13 @@ install -d $RPM_BUILD_ROOT%{_desktopdir} \ $RPM_BUILD_ROOT%{_datadir}/%{name} \ $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir}} -%{__make} install \ +%{__make} install %{?with_verbose:V=1} \ DESTDIR=$RPM_BUILD_ROOT -install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} -install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png +%{__rm} $RPM_BUILD_ROOT%{_datadir}/locale/locale.alias + +cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} +cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png %{?with_lua:install contrib/lua/*.lua $RPM_BUILD_ROOT%{_sysconfdir}} @@ -143,12 +185,15 @@ rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) -%doc AUTHORS BUGS ChangeLog NEWS README SITES TODO -%doc contrib/{keybind*,wipe-out-ssl*,lua/elinks-remote} -%doc contrib/conv/{*awk,*.pl,*.sh} -%doc doc/{*.txt,*.html} -%attr(755,root,root) %{_bindir}/* -%{_mandir}/man*/* -%{_desktopdir}/* -%{_pixmapsdir}/* -%{?with_lua:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}} +%doc AUTHORS BUGS ChangeLog NEWS README SITES TODO doc/html/*.html +%doc contrib/{keybind*,wipe-out-ssl*,lua/elinks-remote} contrib/conv/{*awk,*.pl,*.sh} +%attr(755,root,root) %{_bindir}/elinks +%{_mandir}/man1/elinks.1* +%{_mandir}/man5/elinks.conf.5* +%{_mandir}/man5/elinkskeys.5* +%{_desktopdir}/elinks.desktop +%{_pixmapsdir}/elinks.png +%if %{with lua} +%dir %{_sysconfdir} +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.lua +%endif