diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index 2114596..f958f79 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Tue Jan 11 06:13:40 UTC 2011 - wr@rosenauer.org + +- update to version 4.0b9 +- added x-scheme-handler for http and https to desktop file for + newer Gnome environments +- fixed default browser check/set for GIO (bmo#611953) + (mozilla-shellservice.patch) +- removed obsolete firefox-appname.patch (integrated into + shellservice patch) +- renamed desktop file to firefox.desktop for 11.4 and newer + (bnc#664211) +- removed support for 10.3 and older from the spec file +- removed obsolete "Ximian" categories from desktop file + ------------------------------------------------------------------- Mon Jan 3 17:35:46 CET 2011 - meissner@suse.de diff --git a/MozillaFirefox.desktop b/MozillaFirefox.desktop index 62fae64..19393b5 100644 --- a/MozillaFirefox.desktop +++ b/MozillaFirefox.desktop @@ -8,5 +8,5 @@ Exec=firefox %u Icon=firefox Terminal=false StartupNotify=true -MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;application/x-xpinstall; +MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;application/x-xpinstall;x-scheme-handler/http;x-scheme-handler/https; Type=Application diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index 0a29417..47239b6 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -1,8 +1,8 @@ # -# spec file for package MozillaFirefox (Version 4.0b) +# spec file for package MozillaFirefox (Version 4.0b9) # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. -# 2006-2010 Wolfgang Rosenauer +# 2006-2011 Wolfgang Rosenauer # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,21 +22,21 @@ Name: MozillaFirefox %define use_xulrunner 1 %define xulrunner mozilla-xulrunner20 -BuildRequires: Mesa-devel autoconf213 fdupes gcc-c++ libcurl-devel libgnomeui-devel libidl-devel libnotify-devel python unzip update-desktop-files yasm zip +BuildRequires: autoconf213 gcc-c++ libcurl-devel libgnomeui-devel libidl-devel libnotify-devel python unzip update-desktop-files zip fdupes Mesa-devel yasm %if %suse_version > 1110 BuildRequires: libiw-devel %else BuildRequires: wireless-tools %endif %if 0%{?use_xulrunner} -BuildRequires: %{xulrunner}-devel = 2.0b +BuildRequires: %{xulrunner}-devel = 2.0b9 %endif License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ -Version: 4.0b -Release: 3 +Version: 4.0b9 Provides: web_browser Provides: firefox = %{version} -%define releasedate 2010121400 +Release: 1 +%define releasedate 2011011000 Summary: Mozilla Firefox Web Browser Url: http://www.mozilla.org/ Group: Productivity/Networking/Web/Browsers @@ -52,18 +52,18 @@ Source8: firefox-mimeinfo.xml Source9: firefox-lockdown.js Source10: compare-locales.tar.bz2 Source11: firefox.1 -Patch0: mozilla-firefox-sync.patch Patch1: toolkit-download-folder.patch Patch2: firefox-linkorder.patch Patch3: firefox-browser-css.patch Patch4: firefox-cross-desktop.patch -Patch5: firefox-appname.patch -Patch6: firefox-kde.patch -Patch7: firefox-ui-lockdown.patch -Patch8: firefox-no-sync-l10n.patch -Patch9: firefox-libxulsdk-locales.patch -Patch10: firefox-no-default-ualocale.patch -Patch11: firefox-multilocale-chrome.patch +Patch5: firefox-kde.patch +Patch6: firefox-ui-lockdown.patch +Patch7: firefox-no-sync-l10n.patch +Patch8: firefox-libxulsdk-locales.patch +Patch9: firefox-no-default-ualocale.patch +Patch10: firefox-multilocale-chrome.patch +Patch11: firefox-shell-bmo624267.patch +Patch12: firefox-shellservice.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires(post): coreutils shared-mime-info desktop-file-utils Requires(postun): shared-mime-info desktop-file-utils @@ -83,6 +83,11 @@ Requires: %{name}-branding >= 4.0 %define progname firefox %define progdir %{_prefix}/%_lib/%{progname} %define gnome_dir %{_prefix} +%if %suse_version > 1130 +%define desktop_file_name firefox +%else +%define desktop_file_name %{name} +%endif ### build options %define branding 1 %define localize 1 @@ -100,7 +105,6 @@ plethora of extensions. %if %localize - %package translations-common Summary: Common translations for MozillaFirefox License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ @@ -153,22 +157,22 @@ This package provides upstream look and feel for MozillaFirefox. %prep %setup -q -n mozilla -b 7 -b 10 cd $RPM_BUILD_DIR/mozilla -%patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 -%patch5 -p1 %if %suse_version >= 1110 -%patch6 -p1 +%patch5 -p1 # install kde.js install -m 644 %{SOURCE6} browser/app/profile/kde.js %endif -#%patch7 -p1 +#%patch6 -p1 +%patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 +%patch12 -p1 %build export MOZ_BUILD_DATE=%{releasedate} @@ -227,7 +231,10 @@ rm dist/bin/defaults/preferences/firefox-l10n.js make -C browser/installer STRIP=/bin/true # copy tree into RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{progdir} -cp -rf $RPM_BUILD_DIR/obj/dist/firefox/* $RPM_BUILD_ROOT/%{progdir} +cp -rf $RPM_BUILD_DIR/obj/dist/firefox/* $RPM_BUILD_ROOT%{progdir} +# remove some executable permissions +find $RPM_BUILD_ROOT%{progdir} \ + -name "*.js" -o -name "*.jsm" -o -name "*.rdf" | xargs chmod a-x mkdir -p $RPM_BUILD_ROOT%{progdir}/searchplugins # install additional locales %if %localize @@ -272,7 +279,7 @@ ln -sf ../..%{progdir}/%{progname}.sh $RPM_BUILD_ROOT%{_bindir}/%{progname} # desktop definition mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications install -m 644 %{SOURCE1} \ - $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop + $RPM_BUILD_ROOT%{_datadir}/applications/%{desktop_file_name}.desktop # additional mime-types mkdir -p $RPM_BUILD_ROOT%{_datadir}/mime/packages cp %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/mime/packages/%{progname}.xml @@ -292,7 +299,7 @@ for size in 16 32 48; do $RPM_BUILD_ROOT%{gnome_dir}/share/icons/hicolor/${size}x${size}/apps/%{progname}.png done %endif -%suse_update_desktop_file %{name} Network WebBrowser X-Ximian-Main X-Ximian-Toplevel GTK +%suse_update_desktop_file %{desktop_file_name} Network WebBrowser GTK # excludes rm -f $RPM_BUILD_ROOT%{progdir}/updater.ini rm -f $RPM_BUILD_ROOT%{progdir}/removed-files @@ -315,38 +322,18 @@ rm -rf %{_tmppath}/translations.* if [ -f usr/bin/update-mime-database ] ; then usr/bin/update-mime-database %{_datadir}/mime > /dev/null || : fi -%if %suse_version >= 1030 if [ -f usr/bin/update-desktop-database ] ; then usr/bin/update-desktop-database > /dev/null || : fi -%else -if [ -f opt/gnome/bin/update-mime-database ] ; then - opt/gnome/bin/update-mime-database > /dev/null || : -fi -%endif -# move plugins to new location -if [ "$1" = "2" ]; then - if [ -d /opt/MozillaFirefox/%{_lib}/plugins ]; then - rm -rf /opt/MozillaFirefox/%{_lib}/plugins/libnullplugin.so - cp -fud /opt/MozillaFirefox/%{_lib}/plugins/* %{progdir}/plugins - rm -rf /opt/MozillaFirefox/%{_lib}/plugins - fi -fi exit 0 %postun if [ -f usr/bin/update-mime-database ] ; then usr/bin/update-mime-database %{_datadir}/mime > /dev/null || : fi -%if %suse_version >= 1030 if [ -f usr/bin/update-desktop-database ] ; then usr/bin/update-desktop-database > /dev/null || : fi -%else -if [ -f opt/gnome/bin/update-mime-database ] ; then - opt/gnome/bin/update-mime-database > /dev/null || : -fi -%endif %files %defattr(-,root,root) @@ -374,7 +361,7 @@ fi %{progdir}/crashreporter-override.ini %endif %{progdir}/chrome.manifest -%{_datadir}/applications/%{name}.desktop +%{_datadir}/applications/%{desktop_file_name}.desktop %{_datadir}/mime/packages/%{progname}.xml %{_datadir}/pixmaps/firefox* %if %branding diff --git a/compare-locales.tar.bz2 b/compare-locales.tar.bz2 index 9ec2af4..b71ba95 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:47a1baf950c41532733eb79e0d375a6e5b9936498ce88cc2fd0d8edaa92db465 -size 23407 +oid sha256:ac0cc69db526ffba2445d7d75927641e3be89667d1d8f5cd7d6966406d1fb6e1 +size 23421 diff --git a/firefox-4.0b-source.tar.bz2 b/firefox-4.0b-source.tar.bz2 deleted file mode 100644 index d93dbdb..0000000 --- a/firefox-4.0b-source.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4ab65679521bb96e45bb0f21916a3fa9cc41df4e44c4c85d7f3f833242d8ba64 -size 63741253 diff --git a/firefox-4.0b9-source.tar.bz2 b/firefox-4.0b9-source.tar.bz2 new file mode 100644 index 0000000..8bb6510 --- /dev/null +++ b/firefox-4.0b9-source.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5aeed5bfa6bcb4743d69d1ffc7efa511840df819b8106df39b914c8e7ba961f8 +size 63999667 diff --git a/firefox-appname.patch b/firefox-appname.patch deleted file mode 100644 index bc90fa0..0000000 --- a/firefox-appname.patch +++ /dev/null @@ -1,36 +0,0 @@ -From: Wolfgang Rosenauer -Subject: Hardcode app starter for default check - -diff --git a/browser/components/shell/src/nsGNOMEShellService.cpp b/browser/components/shell/src/nsGNOMEShellService.cpp ---- a/browser/components/shell/src/nsGNOMEShellService.cpp -+++ b/browser/components/shell/src/nsGNOMEShellService.cpp -@@ -105,22 +105,26 @@ nsresult - nsGNOMEShellService::Init() - { - nsresult rv; - - // GConf _must_ be available, or we do not allow - // CreateInstance to succeed. - - nsCOMPtr gconf = do_GetService(NS_GCONFSERVICE_CONTRACTID); -+ if (!gconf) -+ return NS_ERROR_NOT_AVAILABLE; -+ -+ /* This path to firefox is hardcoded for the default path setting */ -+ mAppPath.Assign("/usr/bin/firefox"); -+ return NS_OK; -+ - nsCOMPtr giovfs = - do_GetService(NS_GIOSERVICE_CONTRACTID); - -- if (!gconf) -- return NS_ERROR_NOT_AVAILABLE; -- - // Check G_BROKEN_FILENAMES. If it's set, then filenames in glib use - // the locale encoding. If it's not set, they use UTF-8. - mUseLocaleFilenames = PR_GetEnv("G_BROKEN_FILENAMES") != nsnull; - - nsCOMPtr dirSvc - (do_GetService("@mozilla.org/file/directory_service;1")); - NS_ENSURE_TRUE(dirSvc, NS_ERROR_NOT_AVAILABLE); - diff --git a/firefox-kde.patch b/firefox-kde.patch index 062969e..f591bfb 100644 --- a/firefox-kde.patch +++ b/firefox-kde.patch @@ -23,7 +23,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,1042 @@ +@@ -0,0 +1,1058 @@ +#filter substitution + +# -*- Mode: HTML -*- @@ -329,7 +329,8 @@ new file mode 100644 + + + ++ onpopupshowing="gPopupBlockerObserver.fillPopupList(event);" ++ onpopuphiding="gPopupBlockerObserver.onPopupHiding(event);"> + + + @@ -398,7 +399,7 @@ new file mode 100644 + class="identity-popup-description"/> + + -+ ++ +