From 04d5f5aea3b8a3f4fed2c9b4a6cf842c7d76fc9ca0a6bd3c308a357a9c9da3e0 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Wed, 4 Feb 2015 20:27:44 +0000 Subject: [PATCH 1/2] Accepting request 284085 from home:coolo:branches:openSUSE:Factory - add the changes file as source so the .src.rpm builds (used for fake build time) OBS-URL: https://build.opensuse.org/request/show/284085 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/mozilla-nspr?expand=0&rev=73 --- mozilla-nspr.changes | 6 ++++++ mozilla-nspr.spec | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/mozilla-nspr.changes b/mozilla-nspr.changes index fcacc9e..3232230 100644 --- a/mozilla-nspr.changes +++ b/mozilla-nspr.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 4 16:29:31 UTC 2015 - coolo@suse.com + +- add the changes file as source so the .src.rpm builds (used for + fake build time) + ------------------------------------------------------------------- Thu Jan 29 09:06:29 UTC 2015 - wr@rosenauer.org diff --git a/mozilla-nspr.spec b/mozilla-nspr.spec index baffad5..becc0b6 100644 --- a/mozilla-nspr.spec +++ b/mozilla-nspr.spec @@ -34,6 +34,7 @@ Obsoletes: mozilla-nspr-64bit #Source: ftp://ftp.mozilla.org/pub/nspr/releases/v%{version}/src/nspr-%{version}.tar.gz Source: nspr-%{version}.tar.gz Source1: baselibs.conf +Source99: %{name}.changes BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -66,7 +67,7 @@ memory management (malloc and free), and shared library linking. %build pushd nspr # set buildtime to "last-modification-time" -modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" +modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{S:99)" BUILD_STRING="$(date -u -d "${modified}" "+%%F %%T")" BUILD_TIME="$(date -u -d "${modified}" "+%%s000000")" # From 8cbf49de34d4a6d7f146dc0ba15c71f7412935cb5f2218bcaaf1eebdad9f1295 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Wed, 4 Feb 2015 20:28:24 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/mozilla-nspr?expand=0&rev=74 --- mozilla-nspr.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla-nspr.spec b/mozilla-nspr.spec index becc0b6..c7f89ed 100644 --- a/mozilla-nspr.spec +++ b/mozilla-nspr.spec @@ -67,7 +67,7 @@ memory management (malloc and free), and shared library linking. %build pushd nspr # set buildtime to "last-modification-time" -modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{S:99)" +modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{S:99}")" BUILD_STRING="$(date -u -d "${modified}" "+%%F %%T")" BUILD_TIME="$(date -u -d "${modified}" "+%%s000000")" #