From 273aed522122b25b747db3de3749ce0d0d689509be4e9a0da4e02df167100c80 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Thu, 17 Dec 2009 19:17:32 +0000 Subject: [PATCH 1/3] fixed/enabled lockdown OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=136 --- MozillaFirefox.changes | 5 + MozillaFirefox.spec | 42 +++-- firefox-ui-lockdown.patch | 387 ++++++++++++++++++++++++++++++++++++++ firefox.schemas | 2 +- 4 files changed, 424 insertions(+), 12 deletions(-) create mode 100644 firefox-ui-lockdown.patch diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index 307db98..2ca7e42 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 17 20:06:38 CET 2009 - wr@rosenauer.org + +- readded firefox-ui-lockdown.patch (bnc#546158) + ------------------------------------------------------------------- Thu Dec 3 21:53:59 CET 2009 - wr@rosenauer.org diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index 76dff0a..cc4abdc 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -25,7 +25,7 @@ BuildRequires: mozilla-xulrunner191-devel = 1.9.1.6 %if %suse_version > 1020 BuildRequires: fdupes %endif -License: GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later +License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ Provides: web_browser Provides: firefox Version: 3.5.6 @@ -49,6 +49,7 @@ Patch1: firefox-libxul-sdk.patch Patch2: firefox-no-update.patch Patch3: toolkit-download-folder.patch Patch4: mozilla-linkorder.patch +Patch5: firefox-ui-lockdown.patch Patch6: firefox-cross-desktop.patch Patch7: firefox-kde.patch Patch8: firefox-no-gnomevfs.patch @@ -73,11 +74,8 @@ Requires: %{name}-branding = 3.5 %define releasedate 2009120100 %define progname firefox %define progdir %{_prefix}/%_lib/%{progname} -%if %suse_version > 1020 %define gnome_dir %{_prefix} -%else -%define gnome_dir /opt/gnome -%endif +%define gconf_confdir %{_sysconfdir}/gconf ### build options %define branding 1 %define localize 1 @@ -90,10 +88,9 @@ plethora of extensions. %if %localize - %package translations-common Summary: Common translations for MozillaFirefox -License: GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later +License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ Provides: locale(%{name}:ar;ca;cs;da;de;en_GB;es_AR;es_CL;es_ES;fi;fr;hu;it;ja;ko;nb_NO;nl;pl;pt_BR;pt_PT;ru;sv_SE;zh_CN;zh_TW) Group: System/Localization PreReq: %{name} = %{version} @@ -106,7 +103,7 @@ of MozillaFirefox. %package translations-other Summary: Extra translations for MozillaFirefox -License: GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later +License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ Provides: locale(%{name}:af;as;be;bg;bn_BD;bn_IN;cy;el;eo;es_MX;et;eu;fa;fy_NL;ga_IE;gl;gu_IN;he;hi_IN;hr;id;is;ka;kk;kn;ku;lt;lv;mk;ml;mn;mr;nn_NO;oc;or;pa_IN;rm;ro;si;sk;sl;sq;sr;ta;ta_LK;te;th;tr;uk;vi) Group: System/Localization PreReq: %{name} = %{version} @@ -120,12 +117,15 @@ of MozillaFirefox. %endif %package branding-upstream -License: GPL v2 or later ; LGPL v2.1 or later ; MPL +License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+ Summary: Upstream branding for MozillaFirefox Group: Productivity/Networking/Web/Browsers Provides: %{name}-branding = 3.5 Conflicts: otherproviders(%{name}-branding) Supplements: packageand(%{name}:branding-upstream) +%if %suse_version > 1020 +%gconf_schemas_prereq +%endif #BRAND: Provide three files - #BRAND: /usr/lib/firefox/browserconfig.properties that contains the #BRAND: default homepage and some other default configuration options @@ -149,6 +149,7 @@ cd $RPM_BUILD_DIR/mozilla %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %patch6 -p1 %if %suse_version >= 1110 # copy current files and patch them later to keep them in sync @@ -279,6 +280,13 @@ done cp -f $RPM_BUILD_ROOT%{progdir}/icons/mozicon50.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}.xpm %endif %suse_update_desktop_file %{name} Network WebBrowser X-Ximian-Main X-Ximian-Toplevel GTK +# SCHEMA file +mkdir -p $RPM_BUILD_ROOT%{gconf_confdir}/schemas +install -m 644 %{SOURCE5} \ + $RPM_BUILD_ROOT%{gconf_confdir}/schemas/ +%if %suse_version > 1020 +%find_gconf_schemas +%endif # excludes rm -f $RPM_BUILD_ROOT%{progdir}/updater.ini rm -f $RPM_BUILD_ROOT%{progdir}/removed-files @@ -297,6 +305,14 @@ rm -rf $RPM_BUILD_ROOT rm -rf %{_tmppath}/translations.* %endif +%if %suse_version > 1020 +%pre branding-upstream -f %{name}.schemas_pre + +%preun branding-upstream -f %{name}.schemas_preun + +%posttrans branding-upstream -f %{name}.schemas_posttrans +%endif + %post # update mime and desktop database if [ -f usr/bin/update-mime-database ] ; then @@ -335,7 +351,7 @@ if [ -f opt/gnome/bin/update-mime-database ] ; then fi %endif -%files +%files %defattr(-,root,root) %dir %{progdir} %dir %{progdir}/chrome/ @@ -372,7 +388,11 @@ fi %defattr(-,root,root) %endif -%files branding-upstream +%if %suse_version > 1020 +%files branding-upstream -f %{name}.schemas_list +%else +%files branding-upstream +%endif %defattr(-,root,root) %{progdir}/browserconfig.properties %{progdir}/defaults/profile/bookmarks.html diff --git a/firefox-ui-lockdown.patch b/firefox-ui-lockdown.patch new file mode 100644 index 0000000..0776b0c --- /dev/null +++ b/firefox-ui-lockdown.patch @@ -0,0 +1,387 @@ +diff --git a/browser/base/content/browser-menubar.inc b/browser/base/content/browser-menubar.inc +--- a/browser/base/content/browser-menubar.inc ++++ b/browser/base/content/browser-menubar.inc +@@ -64,21 +64,19 @@ +