forked from pool/rrdtool
Accepting request 289246 from home:kstreitova:branches:devel:languages:python
- modify a %prep phase to replace all timestamps in *.c and *.h with the date and time obtained from the last changelog entry bnc#915946 OBS-URL: https://build.opensuse.org/request/show/289246 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/rrdtool?expand=0&rev=62
This commit is contained in:
parent
1910e5c917
commit
9877f79b8a
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 4 15:35:01 UTC 2015 - kstreitova@suse.com
|
||||
|
||||
- modify a %prep phase to replace all timestamps in *.c and *.h
|
||||
with the date and time obtained from the last changelog entry
|
||||
bnc#915946
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 4 16:40:33 UTC 2014 - kstreitova@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package rrdtool
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 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
|
||||
@ -161,6 +161,10 @@ pushd "cgilib-%{cgilib_version}"
|
||||
%patch11
|
||||
popd #cgilib
|
||||
%patch12 -p1
|
||||
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
|
||||
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
|
||||
TIME="\"$(date -d "${modified}" "+%%R")\""
|
||||
find . -name '*.[ch]' | xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g"
|
||||
|
||||
%build
|
||||
# first prepare cgilib
|
||||
|
Loading…
Reference in New Issue
Block a user