diff --git a/giflib.changes b/giflib.changes index d461e8a..bdc9f77 100644 --- a/giflib.changes +++ b/giflib.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 12 21:29:29 UTC 2022 - Dirk Müller + +- add reproducible.patch to avoid timestamp patching in the build + section and allowing it to build with -Werror=date-time + ------------------------------------------------------------------- Thu Apr 15 15:15:15 UTC 2021 - olaf@aepfle.de diff --git a/giflib.spec b/giflib.spec index 2ac0016..d1e238d 100644 --- a/giflib.spec +++ b/giflib.spec @@ -1,7 +1,7 @@ # # spec file for package giflib # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,10 +22,11 @@ Version: 5.2.1 Release: 0 Summary: A Library for Working with GIF Images License: MIT -URL: http://giflib.sf.net/ -Source: http://downloads.sf.net/giflib/%{name}-%{version}.tar.gz +URL: https://giflib.sourceforge.net/ +Source: https://downloads.sf.net/giflib/%{name}-%{version}.tar.gz Source2: baselibs.conf Patch1: PIE.patch +Patch2: reproducible.patch BuildRequires: libtool >= 2 %description @@ -59,21 +60,8 @@ have expired, giflib can again be used instead of libungif. %autosetup -p1 %build -for file in `find util -name "*.c"`; do - touch -r $file $file.stamp -done - -# USE __TIMESTAMP__ instead of __DATE__ , __TIME__ -# this change is pointless unless we preserve the original -# file modification time -for file in `find util -name "*.c"`; do - sed -i -e s@'__DATE__ ", " __TIME__'@__TIMESTAMP__@g $file; - touch -r $file.stamp $file; - rm -v $file.stamp -done - -export CFLAGS="%optflags" -make %{?_smp_mflags} +export CFLAGS="%{optflags}" +%make_build %install %make_install PREFIX="%{_prefix}" LIBDIR="%{_libdir}" diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..3ff1758 --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,132 @@ +Index: giflib-5.2.1/gif2rgb.c +=================================================================== +--- giflib-5.2.1.orig/gif2rgb.c ++++ giflib-5.2.1/gif2rgb.c +@@ -43,7 +43,6 @@ static char + PROGRAM_NAME + VERSION_COOKIE + " Gershon Elber, " +- __DATE__ ", " __TIME__ "\n" + "(C) Copyright 1989 Gershon Elber.\n"; + static char + *CtrlStr = +Index: giflib-5.2.1/gifbg.c +=================================================================== +--- giflib-5.2.1.orig/gifbg.c ++++ giflib-5.2.1/gifbg.c +@@ -46,7 +46,6 @@ static char + PROGRAM_NAME + VERSION_COOKIE + " Gershon Elber, " +- __DATE__ ", " __TIME__ "\n" + "(C) Copyright 1989 Gershon Elber.\n"; + static char + *CtrlStr = +Index: giflib-5.2.1/gifbuild.c +=================================================================== +--- giflib-5.2.1.orig/gifbuild.c ++++ giflib-5.2.1/gifbuild.c +@@ -23,7 +23,6 @@ static char + PROGRAM_NAME + VERSION_COOKIE + " Eric Raymond, " +- __DATE__ ", " __TIME__ "\n" + "(C) Copyright 1992 Eric Raymond.\n"; + static char + *CtrlStr = +Index: giflib-5.2.1/gifclrmp.c +=================================================================== +--- giflib-5.2.1.orig/gifclrmp.c ++++ giflib-5.2.1/gifclrmp.c +@@ -24,7 +24,6 @@ static char + PROGRAM_NAME + VERSION_COOKIE + " Gershon Elber, " +- __DATE__ ", " __TIME__ "\n" + "(C) Copyright 1989 Gershon Elber.\n"; + static char + *CtrlStr = +Index: giflib-5.2.1/gifcolor.c +=================================================================== +--- giflib-5.2.1.orig/gifcolor.c ++++ giflib-5.2.1/gifcolor.c +@@ -25,7 +25,6 @@ static char + PROGRAM_NAME + VERSION_COOKIE + " Gershon Elber, " +- __DATE__ ", " __TIME__ "\n" + "(C) Copyright 1989 Gershon Elber.\n"; + static char + *CtrlStr = PROGRAM_NAME " v%- b%-Background!d h%-"; +Index: giflib-5.2.1/gifecho.c +=================================================================== +--- giflib-5.2.1.orig/gifecho.c ++++ giflib-5.2.1/gifecho.c +@@ -32,7 +32,6 @@ static char + PROGRAM_NAME + VERSION_COOKIE + " Gershon Elber, " +- __DATE__ ", " __TIME__ "\n" + "(C) Copyright 1989 Gershon Elber.\n"; + static char + *CtrlStr = +Index: giflib-5.2.1/giffix.c +=================================================================== +--- giflib-5.2.1.orig/giffix.c ++++ giflib-5.2.1/giffix.c +@@ -22,7 +22,6 @@ static char + PROGRAM_NAME + VERSION_COOKIE + " Gershon Elber, " +- __DATE__ ", " __TIME__ "\n" + "(C) Copyright 1989 Gershon Elber.\n"; + static char + *CtrlStr = +Index: giflib-5.2.1/gifhisto.c +=================================================================== +--- giflib-5.2.1.orig/gifhisto.c ++++ giflib-5.2.1/gifhisto.c +@@ -26,7 +26,6 @@ static char + PROGRAM_NAME + VERSION_COOKIE + " Gershon Elber, " +- __DATE__ ", " __TIME__ "\n" + "(C) Copyright 1989 Gershon Elber.\n"; + static char + *CtrlStr = +Index: giflib-5.2.1/gifinto.c +=================================================================== +--- giflib-5.2.1.orig/gifinto.c ++++ giflib-5.2.1/gifinto.c +@@ -35,7 +35,6 @@ static char + PROGRAM_NAME + VERSION_COOKIE + " Gershon Elber, " +- __DATE__ ", " __TIME__ "\n" + "(C) Copyright 1989 Gershon Elber.\n"; + static char + *CtrlStr = +Index: giflib-5.2.1/giftext.c +=================================================================== +--- giflib-5.2.1.orig/giftext.c ++++ giflib-5.2.1/giftext.c +@@ -28,7 +28,6 @@ static char + PROGRAM_NAME + VERSION_COOKIE + " Gershon Elber, " +- __DATE__ ", " __TIME__ "\n" + "(C) Copyright 1989 Gershon Elber.\n"; + static char + *CtrlStr = +Index: giflib-5.2.1/gifwedge.c +=================================================================== +--- giflib-5.2.1.orig/gifwedge.c ++++ giflib-5.2.1/gifwedge.c +@@ -27,7 +27,6 @@ static char + PROGRAM_NAME + VERSION_COOKIE + " Gershon Elber, " +- __DATE__ ", " __TIME__ "\n" + "(C) Copyright 1989 Gershon Elber.\n"; + static char + *CtrlStr =