SHA256
1
0
forked from pool/elinks

Accepting request 146359 from home:scarabeus_iv

Update to 0.12pre6.

OBS-URL: https://build.opensuse.org/request/show/146359
OBS-URL: https://build.opensuse.org/package/show/network/elinks?expand=0&rev=4
This commit is contained in:
2013-01-03 10:31:04 +00:00
committed by Git OBS Bridge
parent e8f0ff71e3
commit c8dd862afd
8 changed files with 208 additions and 2363 deletions

View File

@@ -15,27 +15,22 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define pkg_version 0.12pre5
%define pkg_version 0.12pre6
Name: elinks
Version: 0.11.995
Version: 0.11.996
Release: 0
License: GPL-2.0
Summary: An advanced and well-established feature-rich text mode web browser
Url: http://elinks.or.cz/
Group: Productivity/Networking/Web/Browsers
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
Patch0: 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
Patch1: use_lua-5.1.patch
# PATCH-FIX-UPSTREAM build-with-ruby-1.9.patch dabbot@gentoo.org -- Support for ruby-1.9 (patch taken from Gentoo)
Patch2: build-with-ruby-1.9.patch
%if 0%{?suse_version} > 1140
BuildRequires: gc-devel
%endif
@@ -54,11 +49,10 @@ BuildRequires: lua-devel
%endif
BuildRequires: openssl-devel
BuildRequires: pkg-config
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
BuildRequires: ruby-devel
%endif
BuildRequires: tre-devel
BuildRequires: zlib-devel
BuildRequires: automake autoconf libtool
Provides: web_browser
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -72,10 +66,8 @@ description.
%prep
%setup -q -n %{name}-%{pkg_version}
%patch0 -p1
%patch1 -p1
%patch1
%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')
@@ -84,8 +76,8 @@ sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/vernum.c
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/vernum.c
%build
# Regenerate build system because of patches modifying configure.in
autoreconf -vif
# required for ruby patch
sh ./autogen.sh
export CFLAGS="%{optflags} -fstack-protector"
%configure \
--sysconfdir=%{_sysconfdir}/elinks \
@@ -110,16 +102,11 @@ export CFLAGS="%{optflags} -fstack-protector"
%endif
--without-lzma \
--with-gssapi \
--without-see \
--without-guile \
--with-perl \
--without-python \
--with-lua \
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
--with-ruby \
%else
--without-ruby \
%endif
--without-gnutls \
--without-x
make %{?_smp_mflags}
@@ -144,14 +131,11 @@ 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
for lang in lua perl smjs ruby; do
install -Dd -m 0755 %{_pkgdocdir}/${lang}
install -pm 0644 contrib/${lang}/* %{_pkgdocdir}/${lang}
done
rm -f %{_pkgdocdir}/lua/.gitignore
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
cp -a contrib/ruby %{_pkgdocdir}/
%endif
%files -f %{name}.lang
%defattr(-,root,root,-)