From 9877f79b8a1ca5aa2e56d1f47fe1e33f55a48558f65035df0a28c7a2c18bf221 Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Fri, 6 Mar 2015 23:09:06 +0000
Subject: [PATCH 1/3] 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
---
rrdtool.changes | 7 +++++++
rrdtool.spec | 6 +++++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/rrdtool.changes b/rrdtool.changes
index 23b0e3f..d40b2b2 100644
--- a/rrdtool.changes
+++ b/rrdtool.changes
@@ -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
diff --git a/rrdtool.spec b/rrdtool.spec
index 1ad4b9e..785f8bc 100644
--- a/rrdtool.spec
+++ b/rrdtool.spec
@@ -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
From 2089290402779d88b9bd6908a0a626f61324b94729d8959a0ff559bbaca266a3 Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Tue, 10 Mar 2015 11:25:57 +0000
Subject: [PATCH 2/3] OBS-URL:
https://build.opensuse.org/package/show/devel:languages:python/rrdtool?expand=0&rev=63
---
rrdtool.spec | 1 +
1 file changed, 1 insertion(+)
diff --git a/rrdtool.spec b/rrdtool.spec
index 785f8bc..38cebb5 100644
--- a/rrdtool.spec
+++ b/rrdtool.spec
@@ -55,6 +55,7 @@ Patch12: rrdtool-zero_vs_nothing.patch
Source2: sysconfig.rrdcached
Source4: rrdcached-systemd-pre
Source5: rrdcached.service
+Source99: %{name}.changes
Url: http://oss.oetiker.ch/rrdtool/
Summary: A tool for data logging and analysis
License: GPL-2.0+
From 27f8f1a94eb77ee34a1fb4546618d8ff08190943cba6f0826eee0c906bfd13f8 Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Tue, 10 Mar 2015 11:26:19 +0000
Subject: [PATCH 3/3] OBS-URL:
https://build.opensuse.org/package/show/devel:languages:python/rrdtool?expand=0&rev=64
---
rrdtool.changes | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/rrdtool.changes b/rrdtool.changes
index d40b2b2..594d719 100644
--- a/rrdtool.changes
+++ b/rrdtool.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Tue Mar 10 11:26:06 UTC 2015 - p.drouand@gmail.com
+
+- add rddtool.changes to sources list
+
-------------------------------------------------------------------
Wed Mar 4 15:35:01 UTC 2015 - kstreitova@suse.com