Do not include build dates in binaries mozilla-2.0
authorCristian Rodr?guez <crrodriguez@opensuse.org>
Sun, 29 May 2011 13:18:05 +0200
branchmozilla-2.0
changeset 275 60783c01d7ff
parent 267 7d9f9229a57d
Do not include build dates in binaries
mozilla-xulrunner20/mozilla-xulrunner20.changes
mozilla-xulrunner20/mozilla-xulrunner20.spec
--- a/mozilla-xulrunner20/mozilla-xulrunner20.changes	Fri Apr 15 09:16:12 2011 +0200
+++ b/mozilla-xulrunner20/mozilla-xulrunner20.changes	Sun May 29 13:18:05 2011 +0200
@@ -1,7 +1,19 @@
+-------------------------------------------------------------------
+Mon May 23 19:01:46 UTC 2011 - crrodriguez@opensuse.org
+
+- Do not include build dates in binaries
+
 -------------------------------------------------------------------
 Fri Apr 15 07:07:01 UTC 2011 - wr@rosenauer.org
 
-- security update to 2.0.1
+- security update to 2.0.1 (bnc#689281)
+  * MFSA 2011-12/ CVE-2011-0069 CVE-2011-0070 CVE-2011-0079
+    CVE-2011-0080 CVE-2011-0081
+    Miscellaneous memory safety hazards
+  * MFSA 2011-17/CVE-2011-0068 (bmo#623791)
+    WebGLES vulnerabilities
+  * MFSA 2011-18/CVE-2011-1202 (bmo#640339)
+    XSLT generate-id() function heap address leak
 
 -------------------------------------------------------------------
 Tue Mar 29 11:55:53 UTC 2011 - cfarrell@novell.com
--- a/mozilla-xulrunner20/mozilla-xulrunner20.spec	Fri Apr 15 09:16:12 2011 +0200
+++ b/mozilla-xulrunner20/mozilla-xulrunner20.spec	Sun May 29 13:18:05 2011 +0200
@@ -141,7 +141,6 @@
 Software Development Kit to embed XUL or Gecko into other applications.
 
 %if %localize
-
 %package translations-common
 License:        MPLv1.1 or GPLv2+ or LGPLv2+
 Summary:        Common translations for XULRunner 2.0
@@ -223,6 +222,10 @@
 %patch17 -p1
 
 %build
+modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
+DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
+TIME="\"$(date -d "${modified}" "+%%R")\""
+find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +
 kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3)
 if test "$kdehelperversion" != %{kde_helper_version}; then
   echo fix kde helper version in the .spec file