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..6b36223 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -25,11 +25,11 @@ 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 -Release: 1 +Release: 2 Summary: Mozilla Firefox Web Browser Url: http://www.mozilla.org/ Group: Productivity/Networking/Web/Browsers @@ -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 @@ -93,7 +91,7 @@ plethora of extensions. %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 +104,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 +118,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 +150,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 +281,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 @@ -296,6 +305,14 @@ rm -rf $RPM_BUILD_ROOT %if %localize 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 @@ -335,7 +352,7 @@ if [ -f opt/gnome/bin/update-mime-database ] ; then fi %endif -%files +%files %defattr(-,root,root) %dir %{progdir} %dir %{progdir}/chrome/ @@ -371,8 +388,13 @@ fi %files translations-other -f %{_tmppath}/translations.other %defattr(-,root,root) %endif +%if %suse_version > 1020 -%files branding-upstream +%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 @@ +