Accepting request 532698 from devel:libraries:c_c++
- Add libpgm-5.2.122-reproducible.patch to make build reproducible (boo#1047218) OBS-URL: https://build.opensuse.org/request/show/532698 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openpgm?expand=0&rev=2
This commit is contained in:
commit
66f97b3465
27
libpgm-5.2.122-reproducible.patch
Normal file
27
libpgm-5.2.122-reproducible.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
commit f4debdce3de8da1bd401d8542c5acbfaa0982b76
|
||||||
|
Author: Bernhard M. Wiedemann <githubbmw@lsmod.de>
|
||||||
|
Date: Wed Jan 25 03:52:14 2017 +0000
|
||||||
|
|
||||||
|
allow to override build date
|
||||||
|
|
||||||
|
to enable reproducible builds.
|
||||||
|
See https://reproducible-builds.org/ for why this is good
|
||||||
|
and https://reproducible-builds.org/specs/source-date-epoch/
|
||||||
|
for the definition of this variable.
|
||||||
|
|
||||||
|
Index: pgm/version_generator.py
|
||||||
|
===================================================================
|
||||||
|
--- pgm.orig/version_generator.py
|
||||||
|
+++ pgm/version_generator.py
|
||||||
|
@@ -4,8 +4,9 @@ import os
|
||||||
|
import platform
|
||||||
|
import time
|
||||||
|
|
||||||
|
-build_date = time.strftime ("%Y-%m-%d")
|
||||||
|
-build_time = time.strftime ("%H:%M:%S")
|
||||||
|
+timestamp = time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))
|
||||||
|
+build_date = time.strftime ("%Y-%m-%d", timestamp)
|
||||||
|
+build_time = time.strftime ("%H:%M:%S", timestamp)
|
||||||
|
build_rev = filter (str.isdigit, "$Revision$")
|
||||||
|
|
||||||
|
print """
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2f6fcdad7fcf08368bce100db2598abdd57cb1e55869df68c0032a12ffe86d93
|
|
||||||
size 821143
|
|
BIN
openpgm-release-5-2-122.tar.gz
(Stored with Git LFS)
Normal file
BIN
openpgm-release-5-2-122.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 6 13:22:06 UTC 2017 - bwiedemann@suse.com
|
||||||
|
|
||||||
|
- Add libpgm-5.2.122-reproducible.patch to make build reproducible
|
||||||
|
(boo#1047218)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 3 14:11:33 UTC 2015 - jengelh@inai.de
|
Tue Feb 3 14:11:33 UTC 2015 - jengelh@inai.de
|
||||||
|
|
||||||
|
57
openpgm.spec
57
openpgm.spec
@ -1,5 +1,8 @@
|
|||||||
# vim: set sw=4 ts=4 et nu:
|
# vim: set sw=4 ts=4 et nu:
|
||||||
|
#
|
||||||
|
# spec file for package openpgm
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -11,27 +14,37 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
|
||||||
%define major 5.2
|
%define major 5.2
|
||||||
%define mpkg 5_2
|
%define mpkg 5_2
|
||||||
%define soname 0
|
%define soname 0
|
||||||
|
%define tarball_version 5-2-122
|
||||||
%define libname libpgm-%{mpkg}-%{soname}
|
%define libname libpgm-%{mpkg}-%{soname}
|
||||||
|
|
||||||
Name: openpgm
|
Name: openpgm
|
||||||
Version: 5.2.122
|
Version: 5.2.122
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: OpenPGM implementation of the Reliable Multicast Protocol
|
Summary: OpenPGM implementation of the Reliable Multicast Protocol
|
||||||
URL: https://code.google.com/p/openpgm/
|
License: LGPL-2.1+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
License: LGPL-2.1+
|
Url: https://github.com/steve-o/openpgm
|
||||||
Source: https://openpgm.googlecode.com/files/libpgm-%{version}.tar.bz2
|
Source: https://github.com/steve-o/openpgm/archive/release-5-2-122.tar.gz#/openpgm-release-%{tarball_version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
# PATCH-FIX-UPSTREAM bmwiedemann https://github.com/steve-o/openpgm/pull/48
|
||||||
BuildRequires: python-devel
|
Patch0: libpgm-5.2.122-reproducible.patch
|
||||||
BuildRequires: gcc-c++
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: make
|
BuildRequires: autoconf
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: automake
|
||||||
BuildRequires: pkg-config
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: python-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
OpenPGM is an implementation of the Pragmatic General Multicast (PGM)
|
OpenPGM is an implementation of the Pragmatic General Multicast (PGM)
|
||||||
@ -40,8 +53,8 @@ that enables receivers to detect loss, request retransmission of lost data, or
|
|||||||
notify an application of unrecoverable loss.
|
notify an application of unrecoverable loss.
|
||||||
|
|
||||||
%package -n %{libname}
|
%package -n %{libname}
|
||||||
Summary: PGM Reliable Multicast Protocol library
|
Summary: PGM Reliable Multicast Protocol library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %{libname}
|
%description -n %{libname}
|
||||||
OpenPGM is an implementation of the Pragmatic General Multicast (PGM)
|
OpenPGM is an implementation of the Pragmatic General Multicast (PGM)
|
||||||
@ -50,9 +63,9 @@ that enables receivers to detect loss, request retransmission of lost data, or
|
|||||||
notify an application of unrecoverable loss.
|
notify an application of unrecoverable loss.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for the OpenPGM Reliable Multicast Protocol library
|
Summary: Development files for the OpenPGM Reliable Multicast Protocol library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{libname} = %{version}
|
Requires: %{libname} = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
OpenPGM is an implementation of the Pragmatic General Multicast (PGM)
|
OpenPGM is an implementation of the Pragmatic General Multicast (PGM)
|
||||||
@ -63,9 +76,11 @@ notify an application of unrecoverable loss.
|
|||||||
This subpackage contains the header files for OpenPGM.
|
This subpackage contains the header files for OpenPGM.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "libpgm-%{version}/openpgm/pgm"
|
%setup -q -n "%{name}-release-%{tarball_version}/openpgm/pgm"
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
autoreconf -fi
|
||||||
%{configure} \
|
%{configure} \
|
||||||
--disable-static
|
--disable-static
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user