From 3dcefa43db58470b0752f8a5e0245cc1f633e4e88efa3df899f3d323c145ce4b Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Thu, 1 Mar 2012 09:09:12 +0000 Subject: [PATCH] - update to version 11.0b5 - ported and reenabled KDE integration (bnc#746591) - explicitely build-require X libs - better plugin directory resolution (bnc#747320) OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=264 --- MozillaFirefox.changes | 11 +- MozillaFirefox.spec | 45 ++- compare-locales.tar.bz2 | 4 +- create-tar.sh | 6 +- firefox-10.0.2-source.tar.bz2 | 3 - firefox-10.99-source.tar.bz2 | 3 + firefox-branded-icons.patch | 8 +- firefox-browser-css.patch | 12 +- firefox-kde.patch | 166 +++++++--- l10n-10.0.2.tar.bz2 | 3 - l10n-10.99.tar.bz2 | 3 + mozilla-a11y.patch | 415 ------------------------ mozilla-bmo703534.patch | 29 -- mozilla-disable-neon-option.patch | 118 +++---- mozilla-dump_syms-static.patch | 6 +- mozilla-kde.patch | 158 ++++++--- mozilla-nongnome-proxies.patch | 7 +- mozilla-repo.patch | 32 +- mozilla-shared-nss-db.patch | 46 +-- mozilla-sle11.patch | 2 +- mozilla-yarr-pcre.patch | 520 +++++++++++++++++++++++------- mozilla.sh.in | 2 +- source-stamp.txt | 4 +- 23 files changed, 778 insertions(+), 825 deletions(-) delete mode 100644 firefox-10.0.2-source.tar.bz2 create mode 100644 firefox-10.99-source.tar.bz2 delete mode 100644 l10n-10.0.2.tar.bz2 create mode 100644 l10n-10.99.tar.bz2 delete mode 100644 mozilla-a11y.patch delete mode 100644 mozilla-bmo703534.patch diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index eed054cb..3793e62e 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -1,7 +1,14 @@ ------------------------------------------------------------------- -Sun Feb 26 21:29:14 CET 2012 - dmueller@suse.de +Tue Feb 28 07:25:08 UTC 2012 - wr@rosenauer.org -- fix buildrequires for Factory +- update to version 11.0b5 +- ported and reenabled KDE integration (bnc#746591) +- explicitely build-require X libs + +------------------------------------------------------------------- +Fri Feb 17 17:41:11 UTC 2012 - pcerny@suse.com + +- better plugin directory resolution (bnc#747320) ------------------------------------------------------------------- Thu Feb 16 08:47:31 UTC 2012 - wr@rosenauer.org diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index 466290ff..842f7bef 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -16,8 +16,9 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + %define major 10 -%define mainver %major.0.2 +%define mainver %major.99 Name: MozillaFirefox BuildRequires: Mesa-devel @@ -25,7 +26,6 @@ BuildRequires: autoconf213 BuildRequires: dbus-1-glib-devel BuildRequires: fdupes BuildRequires: gcc-c++ -BuildRequires: libXt-devel BuildRequires: libcurl-devel BuildRequires: libgnomeui-devel BuildRequires: libidl-devel @@ -34,6 +34,7 @@ BuildRequires: python BuildRequires: startup-notification-devel BuildRequires: unzip BuildRequires: update-desktop-files +BuildRequires: xorg-x11-libXt-devel BuildRequires: yasm BuildRequires: zip %if %suse_version > 1110 @@ -42,15 +43,15 @@ BuildRequires: libproxy-devel %else BuildRequires: wireless-tools %endif -BuildRequires: mozilla-nspr-devel >= 4.8.9 -BuildRequires: mozilla-nss-devel >= 3.13.1 +BuildRequires: mozilla-nspr-devel >= 4.9.0 +BuildRequires: mozilla-nss-devel >= 3.13.2 BuildRequires: nss-shared-helper-devel Version: %{mainver} Release: 0 -%define releasedate 2012021500 -Provides: web_browser -Provides: firefox = %{version}-%{release} +%define releasedate 2012022900 Provides: firefox = %{mainver} +Provides: firefox = %{version}-%{release} +Provides: web_browser # this is needed to match this package with the kde4 helper package without the main package # having a hard requirement on the kde4 package %define kde_helper_version 6 @@ -86,10 +87,8 @@ Patch9: mozilla-repo.patch Patch10: mozilla-dump_syms-static.patch Patch11: mozilla-sle11.patch Patch12: mozilla-linux3.patch -Patch13: mozilla-a11y.patch Patch14: mozilla-disable-neon-option.patch -Patch15: mozilla-bmo703534.patch -Patch16: mozilla-yarr-pcre.patch +Patch15: mozilla-yarr-pcre.patch # Firefox/browser Patch31: firefox-browser-css.patch Patch32: firefox-cross-desktop.patch @@ -101,9 +100,9 @@ Patch41: firefox-branded-icons.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires(post): coreutils shared-mime-info desktop-file-utils Requires(postun): shared-mime-info desktop-file-utils +Requires: %{name}-branding > 4.0 Requires: mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr) Requires: mozilla-nss >= %(rpm -q --queryformat '%{VERSION}' mozilla-nss) -Requires: %{name}-branding > 4.0 %define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\} %define _use_internal_dependency_generator 0 %define __find_requires sh %{SOURCE4} @@ -137,8 +136,8 @@ Summary: Devel package for Firefox Group: Development/Tools/Other Provides: firefox-devel = %{version}-%{release} Requires: %{name} = %{version} -Requires: perl(XML::Simple) Requires: perl(Archive::Zip) +Requires: perl(XML::Simple) %description devel Development files for Firefox to make packaging of addons easier. @@ -206,7 +205,7 @@ cd $RPM_BUILD_DIR/mozilla %patch2 -p1 %patch3 -p1 %patch4 -p1 -#%patch5 -p1 +%patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 @@ -216,18 +215,16 @@ cd $RPM_BUILD_DIR/mozilla %patch11 -p1 %endif %patch12 -p1 -%patch13 -p1 %patch14 -p1 -%patch15 -p1 -%patch16 -p1 +#%patch15 -p1 # %patch31 -p1 %patch32 -p1 %if %suse_version >= 1110 -#%patch33 -p1 +%patch33 -p1 %endif %if %suse_version >= 1140 -#%patch34 -p1 +%patch34 -p1 %endif %patch38 -p1 %patch39 -p1 @@ -240,11 +237,11 @@ 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 -# exit 1 -#fi +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 + exit 1 +fi source %{SOURCE5} export MOZ_SOURCE_STAMP=$REV export SOURCE_REPO=$REPO @@ -282,7 +279,7 @@ ac_add_options --disable-tests ac_add_options --disable-debug ac_add_options --enable-startup-notification #ac_add_options --enable-chrome-format=jar -ac_add_options --enable-update-channel=release +ac_add_options --enable-update-channel=beta EOF %if %suse_version > 1130 cat << EOF >> $MOZCONFIG diff --git a/compare-locales.tar.bz2 b/compare-locales.tar.bz2 index e945208d..c9141806 100644 --- a/compare-locales.tar.bz2 +++ b/compare-locales.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9ef03e912b119f21ce100c4423cac0303339b344fe2d6d0a2f1aa1f4a9bf5e24 -size 25686 +oid sha256:ed6f2335b5fb457f70d9d30566b2546f2f513514f620e35cfa86523762da6208 +size 29353 diff --git a/create-tar.sh b/create-tar.sh index 620cd432..1e72d3d7 100644 --- a/create-tar.sh +++ b/create-tar.sh @@ -1,9 +1,9 @@ #!/bin/bash -CHANNEL="release" +CHANNEL="beta" BRANCH="releases/mozilla-$CHANNEL" -RELEASE_TAG="FIREFOX_10_0_2_RELEASE" -VERSION="10.0.2" +RELEASE_TAG="FIREFOX_11_0b5_RELEASE" +VERSION="10.99" # mozilla hg clone http://hg.mozilla.org/$BRANCH mozilla diff --git a/firefox-10.0.2-source.tar.bz2 b/firefox-10.0.2-source.tar.bz2 deleted file mode 100644 index bcfe1c86..00000000 --- a/firefox-10.0.2-source.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e3f32a41ec22fa4dce633d512ec68f52fcabcfacbef90c58cdfb7557b7bc6b49 -size 75330039 diff --git a/firefox-10.99-source.tar.bz2 b/firefox-10.99-source.tar.bz2 new file mode 100644 index 00000000..0506eee6 --- /dev/null +++ b/firefox-10.99-source.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50e0b4c51464c73710095176a6c01902c9321b4b12736173d14ced822461ce2d +size 78218358 diff --git a/firefox-branded-icons.patch b/firefox-branded-icons.patch index 83ecc402..9836780b 100644 --- a/firefox-branded-icons.patch +++ b/firefox-branded-icons.patch @@ -1,11 +1,11 @@ # HG changeset patch -# Parent 87462739809ad0f41fd335f9a68203fd70f9883c +# Parent efffa19fa0b2530d2aca1ebd5b885a6fc68e51de diff --git a/browser/app/Makefile.in b/browser/app/Makefile.in --- a/browser/app/Makefile.in +++ b/browser/app/Makefile.in -@@ -194,16 +194,21 @@ DEFINES += -DMOZILLA_OFFICIAL - endif +@@ -169,16 +169,21 @@ endif # LIBXUL_SDK + DEFINES += -DFIREFOX_ICO=\"$(DIST)/branding/firefox.ico\" -DDOCUMENT_ICO=\"$(DIST)/branding/document.ico\" ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2) libs:: @@ -54,7 +54,7 @@ diff --git a/browser/branding/official/Makefile.in b/browser/branding/official/M diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in --- a/browser/installer/package-manifest.in +++ b/browser/installer/package-manifest.in -@@ -415,18 +415,21 @@ +@@ -424,18 +424,21 @@ #ifdef SHIP_FEEDBACK @BINPATH@/distribution/extensions/testpilot@labs.mozilla.com.xpi #endif diff --git a/firefox-browser-css.patch b/firefox-browser-css.patch index c7d960b5..6fc31191 100644 --- a/firefox-browser-css.patch +++ b/firefox-browser-css.patch @@ -6,10 +6,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=478632 wr: changed because of https://bugzilla.novell.com/show_bug.cgi?id=561027 -diff --git a/browser/themes/gnomestripe/browser/browser.css b/browser/themes/gnomestripe/browser/browser.css ---- a/browser/themes/gnomestripe/browser/browser.css -+++ b/browser/themes/gnomestripe/browser/browser.css -@@ -954,16 +954,30 @@ toolbar[iconsize="small"] #feed-button { +diff --git a/browser/themes/gnomestripe/browser.css b/browser/themes/gnomestripe/browser.css +--- a/browser/themes/gnomestripe/browser.css ++++ b/browser/themes/gnomestripe/browser.css +@@ -1018,16 +1018,30 @@ toolbar[iconsize="small"] #feed-button { } #urlbar-display { @@ -33,10 +33,10 @@ diff --git a/browser/themes/gnomestripe/browser/browser.css b/browser/themes/gno +} + /* Favicon */ - #page-proxy-favicon, - #urlbar-throbber { + #page-proxy-favicon { width: 16px; height: 16px; } #page-proxy-stack { + width: 24px; diff --git a/firefox-kde.patch b/firefox-kde.patch index 4be9e24a..dec4d11a 100644 --- a/firefox-kde.patch +++ b/firefox-kde.patch @@ -2,7 +2,7 @@ diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser new file mode 100644 --- /dev/null +++ b/browser/base/content/browser-kde.xul -@@ -0,0 +1,1111 @@ +@@ -0,0 +1,1125 @@ +#filter substitution + +# -*- Mode: HTML -*- @@ -42,6 +42,7 @@ new file mode 100644 +# Patrick Walton +# David Dahl +# Frank Yan ++# Victor Porof +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 2 or later (the "GPL"), or @@ -59,7 +60,8 @@ new file mode 100644 + + + -+ ++ ++ + + + @@ -284,7 +286,11 @@ new file mode 100644 + if (gContextMenu.shouldDisplay) + updateEditUIVisibility(); + return gContextMenu.shouldDisplay;" -+ onpopuphiding="if (event.target == this) { gContextMenu = null; updateEditUIVisibility(); }"> ++ onpopuphiding="if (event.target != this) ++ return; ++ gContextMenu.hiding(); ++ gContextMenu = null; ++ updateEditUIVisibility();"> +#include browser-context.inc + + @@ -517,8 +523,6 @@ new file mode 100644 + ontextentered="this.handleCommand(param);" + ontextreverted="return this.handleRevert();" + pageproxystate="invalid" -+ onsearchbegin="LocationBarHelpers._searchBegin();" -+ onsearchcomplete="LocationBarHelpers._searchComplete();" + onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'" + onblur="setTimeout(function() document.getElementById('identity-box').style.MozUserFocus = '', 0);"> +