From 8618978223adc5b141a0a449434d92ca02f0f0d2bae6c0875cf1bb3ce585e4fd Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Mon, 23 May 2011 18:44:21 +0000 Subject: [PATCH] Accepting request 71086 from home:elvigia:branches:mozilla:Factory - Do not include build dates in binaries, messes up build compare OBS-URL: https://build.opensuse.org/request/show/71086 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/mozilla-nss?expand=0&rev=70 --- mozilla-nss.changes | 6 ++++++ mozilla-nss.spec | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/mozilla-nss.changes b/mozilla-nss.changes index a7e4aab..c501fe6 100644 --- a/mozilla-nss.changes +++ b/mozilla-nss.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 23 17:37:34 UTC 2011 - crrodriguez@opensuse.org + +- Do not include build dates in binaries, messes up + build compare + ------------------------------------------------------------------- Thu May 19 05:37:02 UTC 2011 - wr@rosenauer.org diff --git a/mozilla-nss.spec b/mozilla-nss.spec index 8b0021d..9cffe6a 100644 --- a/mozilla-nss.spec +++ b/mozilla-nss.spec @@ -179,6 +179,11 @@ cd mozilla #make generate %build +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]' -print -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + + cd mozilla/security/nss #cp %SOURCE10 tests/libpkix/certs/PayPalEE.cert export FREEBL_NO_DEPEND=1