SHA256
1
0
forked from pool/elinks

Accepting request 391673 from home:sleep_walker:branches:network

- disable JS support until someone fix it
- refresh patches
- fix indentation

OBS-URL: https://build.opensuse.org/request/show/391673
OBS-URL: https://build.opensuse.org/package/show/network/elinks?expand=0&rev=5
This commit is contained in:
2016-04-26 14:40:55 +00:00
committed by Git OBS Bridge
parent c8dd862afd
commit d6311d124e
4 changed files with 38 additions and 16 deletions

View File

@@ -17,6 +17,8 @@
%define pkg_version 0.12pre6
%bcond_with js
Name: elinks
Version: 0.11.996
Release: 0
@@ -26,17 +28,18 @@ 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-compilation-fix.patch asterios.dramis@gmail.com -- Fix compilation with gc (patch taken from Gentoo)
Patch0: 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)
Patch1: use_lua-5.1.patch
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
Patch2: build-with-ruby-1.9.patch
%if 0%{?suse_version} > 1140
BuildRequires: gc-devel
%endif
BuildRequires: gpm-devel
%if 0%{?suse_version} > 1140
BuildRequires: js-devel
%if %{with js}
BuildRequires: mozjs24-devel
BuildRequires: gcc-c++
%endif
BuildRequires: krb5-devel
BuildRequires: libbz2-devel
@@ -99,6 +102,11 @@ export CFLAGS="%{optflags} -fstack-protector"
--with-gc \
%else
--without-gc \
%endif
%if %{without js}
--without-spidermonkey \
%else
--with-spidermonkey=%{_includedir}/mozjs-24 \
%endif
--without-lzma \
--with-gssapi \