SHA256
1
0
forked from pool/elinks

Accepting request 560438 from home:elvigia:branches:network

- build.with-openssl-1_1.patch: fix build with openssl 1.1.

OBS-URL: https://build.opensuse.org/request/show/560438
OBS-URL: https://build.opensuse.org/package/show/network/elinks?expand=0&rev=9
This commit is contained in:
OBS User mrdocs
2017-12-30 05:46:15 +00:00
committed by Git OBS Bridge
parent 28bcc67091
commit ed2dc0e1a3
3 changed files with 59 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package elinks
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -34,6 +34,7 @@ Patch0: elinks-0.12_pre5-compilation-fix.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
Patch3: build.with-openssl-1_1.patch
%if 0%{?suse_version} > 1140
BuildRequires: gc-devel
%endif
@@ -75,7 +76,7 @@ description.
%patch0 -p1
%patch1
%patch2 -p1
%patch3 -p1
# 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')
@@ -85,7 +86,6 @@ sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/vernum.c
%build
# required for ruby patch
sh ./autogen.sh
export CFLAGS="%{optflags} -fstack-protector"
%configure \
--sysconfdir=%{_sysconfdir}/elinks \
--enable-bittorrent \