From dd442f3c26e0ee115704d6158311b08c7be41355931d0b0942efc9b77112392f Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Mon, 23 Jan 2017 00:41:33 +0000 Subject: [PATCH] Accepting request 451855 from home:bmwiedemann:branches:multimedia:libs Add reproducible.patch to allow for reproducible builds OBS-URL: https://build.opensuse.org/request/show/451855 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/quvi?expand=0&rev=10 --- quvi.changes | 5 +++++ quvi.spec | 5 ++++- reproducible.patch | 26 ++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 reproducible.patch diff --git a/quvi.changes b/quvi.changes index 47df042..ae85b0d 100644 --- a/quvi.changes +++ b/quvi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jan 22 19:09:11 UTC 2017 - bwiedemann@suse.com + +- Add reproducible.patch to allow for reproducible builds + ------------------------------------------------------------------- Mon Feb 10 19:28:55 UTC 2014 - dimstar@opensuse.org diff --git a/quvi.spec b/quvi.spec index d2b1c89..c3627dc 100644 --- a/quvi.spec +++ b/quvi.spec @@ -1,7 +1,7 @@ # # spec file for package quvi # -# Copyright (c) 2014 SUSE LINUX Products 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 @@ -24,6 +24,8 @@ License: LGPL-2.1+ Group: Productivity/Multimedia/Other Url: http://quvi.sourceforge.net/ Source: http://sourceforge.net/projects/quvi/files/0.9/quvi/quvi-0.9.5.tar.xz +# PATCH-FIX-OPENSUSE +Patch0: reproducible.patch BuildRequires: pkg-config BuildRequires: pkgconfig(glib-2.0) >= 2.24 BuildRequires: pkgconfig(gobject-2.0) >= 2.24 @@ -39,6 +41,7 @@ It supports many websites including YouTube and Dailymotion. %prep %setup -q +%patch0 -p1 %build %configure \ diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..befb690 --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,26 @@ +Index: quvi-0.9.5/configure.ac +=================================================================== +--- quvi-0.9.5.orig/configure.ac ++++ quvi-0.9.5/configure.ac +@@ -47,7 +47,7 @@ AC_DEFINE_UNQUOTED([CFLAGS], "$CFLAGS", + AC_DEFINE_UNQUOTED([CC], "$CC", [Define to compiler]) + + AC_PATH_PROG([DATE], [date], [no]) +-AS_IF([test x"$DATE" != "xno"], [build_time=`$DATE +"%F %T %z"`]) ++AS_IF([test x"$DATE" != "xno"], [build_time='see rpm -qi quvi']) + AC_DEFINE_UNQUOTED([BUILD_TIME], ["$build_time"], [We have build time]) + + AC_PATH_PROG([A2X], [a2x], [no]) +Index: quvi-0.9.5/configure +=================================================================== +--- quvi-0.9.5.orig/configure ++++ quvi-0.9.5/configure +@@ -14580,7 +14580,7 @@ fi + + + if test x"$DATE" != "xno"; then : +- build_time=`$DATE +"%F %T %z"` ++ build_time='see rpm -qi quvi' + fi + + cat >>confdefs.h <<_ACEOF