--- a/MozillaFirefox/MozillaFirefox.changes Thu May 19 08:07:57 2011 +0200
+++ b/MozillaFirefox/MozillaFirefox.changes Sun May 29 13:23:11 2011 +0200
@@ -1,8 +1,7 @@
-------------------------------------------------------------------
-Thu Apr 28 05:37:36 UTC 2011 - wr@rosenauer.org
-
-- update to 5.0a-20110427
-- set unofficial branding for Aurora
+Thu May 19 06:42:32 UTC 2011 - wr@rosenauer.org
+
+- update to 5.0b2
- transformed to standalone Firefox (not xulrunner based)
(with new Firefox rapid release cycle it makes no sense anymore)
* imported all relevant xulrunner patches
--- a/MozillaFirefox/MozillaFirefox.spec Thu May 19 08:07:57 2011 +0200
+++ b/MozillaFirefox/MozillaFirefox.spec Sun May 29 13:23:11 2011 +0200
@@ -102,7 +102,7 @@
%define desktop_file_name %{name}
%endif
### build options
-%define branding 0
+%define branding 1
%define localize 1
%ifarch ppc ppc64 s390 s390x ia64
%define crashreporter 0
@@ -220,6 +220,12 @@
%patch41 -p1
%build
+# no need to add build time to binaries
+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