-# TODO: consider lua51
-
+#
# Conditional build:
# - protocols
%bcond_without bittorrent # BitTorrent protocol support
%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
Summary(pt_BR.UTF-8): O links é um browser para modo texto, similar ao lynx
Name: elinks
Version: 0.13
-%define snap 20120604
-Release: 4.%{snap}.2
+%define snap 20151228
+%define rel 3
+Release: 4.%{snap}.%{rel}
Epoch: 1
License: GPL v2
Group: Applications/Networking
# github gives different archive on each download
# http://www.elinks.cz/download/%{name}-current-%{version}.tar.bz2
-Source0: %{name}-current-%{version}.tar.bz2
-# Source0-md5: efc9918d90cb03a4d1c4d36ef1c36101
+Source0: http://elinks.cz/download/elinks-current-%{version}.tar.bz2
+# Source0-md5: c8e0588124c127f5d025cb1cafe5d9d3
Source1: %{name}.desktop
Source2: links.png
Patch0: %{name}-home_etc.patch
BuildRequires: bzip2-devel
BuildRequires: expat-devel
%{?with_fsp:BuildRequires: fsplib-devel}
-BuildRequires: gettext-devel
+BuildRequires: gettext-tools
%{?with_gnutls:BuildRequires: gnutls-devel >= 1.2.5}
BuildRequires: gpm-devel
%{?with_guile:BuildRequires: guile-devel}
#BuildRequires: heimdal-devel
-%{?with_js:BuildRequires: js185-devel}
+%{?with_js:BuildRequires: js187-devel}
+%{?with_brotli:BuildRequires: libbrotli-devel}
%{?with_idn:BuildRequires: libidn-devel}
%{?with_smb:BuildRequires: libsmbclient-devel}
-%{?with_lua:BuildRequires: lua50-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}
--enable-nntp \
--disable-no-root \
%{?with_smb:--enable-smb} \
+ %{?with_brotli:--with-brotli} \
--without-gc \
%{?with_gnutls:--with-gnutls} \
%{?with_guile:--with-guile} \