# HG changeset patch # User Wolfgang Rosenauer # Date 1306668191 -7200 # Node ID c9f36db0c1cac9b00c0ac3e2b894e58997f95ce8 # Parent adc2b9141ad53929dc4694cb1f81127475aa792d 5.0b2 diff -r adc2b9141ad5 -r c9f36db0c1ca MozillaFirefox/MozillaFirefox.changes --- 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 diff -r adc2b9141ad5 -r c9f36db0c1ca MozillaFirefox/MozillaFirefox.spec --- 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