Accepting request 508238 from home:bmwiedemann:branches:devel:libraries:c_c++

Keep timestamps before patch updates them to fix build-compare

OBS-URL: https://build.opensuse.org/request/show/508238
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/giflib?expand=0&rev=45
This commit is contained in:
Dirk Mueller 2017-07-05 11:39:02 +00:00 committed by Git OBS Bridge
parent 48dcef1b25
commit 5b8aac1e24
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 5 05:38:23 UTC 2017 - bwiedemann@suse.com
- Keep timestamps before patch updates them to fix build-compare
-------------------------------------------------------------------
Fri May 13 15:50:28 UTC 2016 - rpm@fthiessen.de

View File

@ -74,6 +74,9 @@ have expired, giflib can again be used instead of libungif.
%prep
%setup -q
for file in `find util -name "*.c"`; do
touch -r $file $file.stamp
done
%patch1 -p1
%patch2 -p1
%patch3 -p1
@ -85,7 +88,6 @@ have expired, giflib can again be used instead of libungif.
# this change is pointless unless we preserve the original
# file modification time
for file in `find util -name "*.c"`; do
touch -r $file $file.stamp;
sed -i -e s@'__DATE__ ", " __TIME__'@__TIMESTAMP__@g $file;
touch -r $file.stamp $file;
rm -v $file.stamp