2011-04-26 13:15:51 +00:00
|
|
|
#
|
2012-06-11 08:07:33 +00:00
|
|
|
# spec file for package elinks
|
|
|
|
#
|
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
%define pkg_version 0.12pre5
|
|
|
|
|
2011-04-26 13:15:51 +00:00
|
|
|
Name: elinks
|
|
|
|
Version: 0.11.995
|
|
|
|
Release: 0
|
2012-06-11 08:07:33 +00:00
|
|
|
License: GPL-2.0
|
2011-04-26 13:15:51 +00:00
|
|
|
Summary: An advanced and well-established feature-rich text mode web browser
|
|
|
|
Url: http://elinks.or.cz/
|
|
|
|
Group: Productivity/Networking/Web/Browsers
|
2012-06-11 08:07:33 +00:00
|
|
|
Source0: http://elinks.or.cz/download/%{name}-%{pkg_version}.tar.bz2
|
|
|
|
# PATCH-FIX-UPSTREAM elinks-0.12_pre5-js185-1-heartbeat.patch asterios.dramis@gmail.com -- Support for new js-1.8.5 (patch taken from Gentoo)
|
|
|
|
Patch0: elinks-0.12_pre5-js185-1-heartbeat.patch
|
|
|
|
# PATCH-FIX-UPSTREAM elinks-0.12_pre5-js185-2-up.patch asterios.dramis@gmail.com -- Support for new js-1.8.5 (patch taken from Gentoo)
|
|
|
|
Patch1: elinks-0.12_pre5-js185-2-up.patch
|
|
|
|
# PATCH-FIX-UPSTREAM elinks-0.12_pre5-js185-3-histback.patch asterios.dramis@gmail.com -- Support for new js-1.8.5 (patch taken from Gentoo)
|
|
|
|
Patch2: elinks-0.12_pre5-js185-3-histback.patch
|
|
|
|
# PATCH-FIX-UPSTREAM elinks-0.12_pre5-compilation-fix.patch asterios.dramis@gmail.com -- Fix compilation with gc (patch taken from Gentoo)
|
|
|
|
Patch3: elinks-0.12_pre5-compilation-fix.patch
|
|
|
|
# PATCH-FIX-UPSTREAM use_lua-5.1.patch asterios.dramis@gmail.com -- Support for lua-5.1 (based on patch from Debian)
|
|
|
|
Patch4: use_lua-5.1.patch
|
|
|
|
BuildRequires: automake
|
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
BuildRequires: gc-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: gpm-devel
|
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
BuildRequires: js-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: krb5-devel
|
2011-04-26 13:15:51 +00:00
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: libidn-devel
|
2012-06-11 08:07:33 +00:00
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
BuildRequires: lua51-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: lua-devel
|
|
|
|
%endif
|
2011-04-26 13:15:51 +00:00
|
|
|
BuildRequires: openssl-devel
|
2012-06-11 08:07:33 +00:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
|
2011-04-26 13:15:51 +00:00
|
|
|
BuildRequires: ruby-devel
|
2012-06-11 08:07:33 +00:00
|
|
|
%endif
|
|
|
|
BuildRequires: tre-devel
|
2011-04-26 13:15:51 +00:00
|
|
|
BuildRequires: zlib-devel
|
2012-06-11 08:07:33 +00:00
|
|
|
Provides: web_browser
|
2011-04-26 13:15:51 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-06-11 08:07:33 +00:00
|
|
|
|
2011-04-26 13:15:51 +00:00
|
|
|
%description
|
|
|
|
ELinks is an advanced and well-established feature-rich text mode web
|
|
|
|
(HTTP/FTP/..) browser. ELinks can render both frames and tables, is highly
|
|
|
|
customizable and can be extended via Lua or Guile scripts. It is very portable
|
|
|
|
and runs on a variety of platforms. Check the about page for a more complete
|
|
|
|
description.
|
|
|
|
|
|
|
|
%prep
|
2012-06-11 08:07:33 +00:00
|
|
|
%setup -q -n %{name}-%{pkg_version}
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4
|
|
|
|
|
|
|
|
# Remove build time references so build-compare can do its work
|
|
|
|
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M')
|
|
|
|
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
|
|
|
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/vernum.c
|
|
|
|
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/vernum.c
|
2011-04-26 13:15:51 +00:00
|
|
|
|
|
|
|
%build
|
2012-06-11 08:07:33 +00:00
|
|
|
# Regenerate build system because of patches modifying configure.in
|
|
|
|
autoreconf -vif
|
|
|
|
export CFLAGS="%{optflags} -fstack-protector"
|
2011-04-26 13:15:51 +00:00
|
|
|
%configure \
|
2012-06-11 08:07:33 +00:00
|
|
|
--sysconfdir=%{_sysconfdir}/elinks \
|
|
|
|
--enable-bittorrent \
|
2011-04-26 13:15:51 +00:00
|
|
|
--enable-cgi \
|
|
|
|
--enable-finger \
|
2012-06-11 08:07:33 +00:00
|
|
|
--disable-fsp \
|
|
|
|
--enable-gopher \
|
|
|
|
--enable-nntp \
|
|
|
|
--disable-smb \
|
2011-04-26 13:15:51 +00:00
|
|
|
--enable-88-colors \
|
|
|
|
--enable-256-colors \
|
2012-06-11 08:07:33 +00:00
|
|
|
--enable-true-color \
|
|
|
|
--enable-exmode \
|
|
|
|
--enable-html-highlight \
|
|
|
|
--enable-fastmem \
|
|
|
|
--with-xterm \
|
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
--with-gc \
|
|
|
|
%else
|
|
|
|
--without-gc \
|
|
|
|
%endif
|
|
|
|
--without-lzma \
|
|
|
|
--with-gssapi \
|
|
|
|
--without-see \
|
|
|
|
--without-guile \
|
2011-04-26 13:15:51 +00:00
|
|
|
--with-perl \
|
2012-06-11 08:07:33 +00:00
|
|
|
--without-python \
|
|
|
|
--with-lua \
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
|
2011-04-26 13:15:51 +00:00
|
|
|
--with-ruby \
|
2012-06-11 08:07:33 +00:00
|
|
|
%else
|
|
|
|
--without-ruby \
|
|
|
|
%endif
|
|
|
|
--without-gnutls \
|
|
|
|
--without-x
|
|
|
|
make %{?_smp_mflags}
|
2011-04-26 13:15:51 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2012-06-11 08:07:33 +00:00
|
|
|
|
|
|
|
# Remove unneeded file
|
2011-04-26 13:15:51 +00:00
|
|
|
rm -f %{buildroot}%{_datadir}/locale/locale.alias
|
2012-06-11 08:07:33 +00:00
|
|
|
|
2011-04-26 13:15:51 +00:00
|
|
|
%find_lang %{name}
|
2012-06-11 08:07:33 +00:00
|
|
|
|
|
|
|
# Install documentation
|
2011-04-26 13:15:51 +00:00
|
|
|
%define _pkgdocdir %{buildroot}%{_docdir}/%{name}
|
2012-06-11 08:07:33 +00:00
|
|
|
install -Dd -m 0755 %{_pkgdocdir}
|
|
|
|
install -pm 0644 AUTHORS BUGS COPYING ChangeLog NEWS README SITES THANKS TODO features.conf %{_pkgdocdir}
|
|
|
|
cp -a doc/ %{_pkgdocdir}
|
|
|
|
rm -rf %{_pkgdocdir}/doc/{.deps/,.gitignore,Doxyfile.in,Makefile,man/,tools/}
|
|
|
|
install -Dd -m 0755 %{_pkgdocdir}/contrib/
|
|
|
|
install -pm 0644 contrib/*.conf contrib/*.vim contrib/*.css contrib/TIPS-AND-TRICKS %{_pkgdocdir}/contrib/
|
|
|
|
install -Dd -m 0755 %{_pkgdocdir}/scripts/
|
|
|
|
install -pm 0644 contrib/wipe-out-ssl* contrib/conv/* %{_pkgdocdir}/scripts/
|
|
|
|
rm -f %{_pkgdocdir}/scripts/conv/.gitignore
|
|
|
|
# Install only the languages that are compiled
|
|
|
|
for lang in lua perl smjs; do
|
|
|
|
install -Dd -m 0755 %{_pkgdocdir}/${lang}
|
|
|
|
install -pm 0644 contrib/${lang}/* %{_pkgdocdir}/${lang}
|
2011-04-26 13:15:51 +00:00
|
|
|
done
|
2012-06-11 08:07:33 +00:00
|
|
|
rm -f %{_pkgdocdir}/lua/.gitignore
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
|
|
|
|
cp -a contrib/ruby %{_pkgdocdir}/
|
|
|
|
%endif
|
2011-04-26 13:15:51 +00:00
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2012-06-11 08:07:33 +00:00
|
|
|
%defattr(-,root,root,-)
|
2011-04-26 13:15:51 +00:00
|
|
|
%{_bindir}/%{name}
|
2012-06-11 08:07:33 +00:00
|
|
|
%doc %{_docdir}/%{name}/
|
|
|
|
%{_mandir}/man1/%{name}.1%{ext_man}
|
|
|
|
%{_mandir}/man5/%{name}*.5%{ext_man}
|
2011-04-26 13:15:51 +00:00
|
|
|
|
|
|
|
%changelog
|