Accepting request 1042491 from home:dirkmueller:Factory
- add reproducible.patch to avoid timestamp patching in the build section and allowing it to build with -Werror=date-time OBS-URL: https://build.opensuse.org/request/show/1042491 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/giflib?expand=0&rev=57
This commit is contained in:
parent
2f1fcaa033
commit
43b67ac04f
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 12 21:29:29 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- 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
|
||||
|
||||
|
24
giflib.spec
24
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}"
|
||||
|
132
reproducible.patch
Normal file
132
reproducible.patch
Normal file
@ -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 =
|
Loading…
Reference in New Issue
Block a user