SHA256
1
0
forked from pool/elinks

Accepting request 717992 from home:sbrabec:branches:network

- Update to 20190723 snapshot of version 0.13:
  * no changes
- Use pre-version tag, as the current snapshot is a pre-release.
- Remove volatile URL from Source0.
- Compile without strict aliasing to prevent breakage with new gcc.

OBS-URL: https://build.opensuse.org/request/show/717992
OBS-URL: https://build.opensuse.org/package/show/network/elinks?expand=0&rev=13
This commit is contained in:
2019-07-23 20:02:35 +00:00
committed by Git OBS Bridge
parent 4592a83a27
commit a7b9be939a
3 changed files with 18 additions and 6 deletions

View File

@@ -16,18 +16,20 @@
#
%define pkg_version 0.13-20190401
%define tar_version 0.13
%define snapshot 20190723
%bcond_with js
Name: elinks
Version: 0.13
Version: %{tar_version}~0.%{snapshot}
Release: 0
Summary: An advanced and well-established feature-rich text mode web browser
License: GPL-2.0-or-later
Group: Productivity/Networking/Web/Browsers
Url: http://elinks.or.cz/
Source0: http://elinks.or.cz/download/%{name}-current-%{version}.tar.bz2
# Volatile download URL http://elinks.or.cz/download/%{name}-current-%{tar_version}.tar.bz2
Source0: %{name}-current-%{tar_version}.tar.bz2
Patch0: build-with-new-ruby.patch
%if 0%{?suse_version} > 1140
BuildRequires: gc-devel
@@ -66,7 +68,7 @@ and runs on a variety of platforms. Check the about page for a more complete
description.
%prep
%setup -q -n %{name}-%{pkg_version}
%setup -q -n %{name}-%{tar_version}-%{snapshot}
%patch0 -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')
@@ -77,6 +79,7 @@ sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/vernum.c
%build
# required for ruby patch
sh ./autogen.sh
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure \
--sysconfdir=%{_sysconfdir}/elinks \
--enable-bittorrent \