From be9c1bfbbb868b2d36117961839119468251dd894c0aedcd7c86b6df9bdf5dcd Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sun, 9 Nov 2008 23:33:36 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MozillaFirefox-branding-openSUSE?expand=0&rev=5 --- MozillaFirefox-branding-openSUSE.changes | 11 + MozillaFirefox-branding-openSUSE.spec | 47 +++- firefox.schemas | 299 +++++++++++++++++++++++ 3 files changed, 355 insertions(+), 2 deletions(-) create mode 100644 firefox.schemas diff --git a/MozillaFirefox-branding-openSUSE.changes b/MozillaFirefox-branding-openSUSE.changes index 0b3775e..72df3ab 100644 --- a/MozillaFirefox-branding-openSUSE.changes +++ b/MozillaFirefox-branding-openSUSE.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Fri Nov 7 15:42:55 CST 2008 - maw@suse.de + +- Review and approve changes. + +------------------------------------------------------------------- +Tue Nov 4 23:50:03 CET 2008 - wr@rosenauer.org + +- added the Firefox Gconf schema for system prefs and + changed the homepage URL to http://www.opensuse.org/ (bnc#441646) + ------------------------------------------------------------------- Mon Oct 20 18:16:42 CDT 2008 - maw@suse.de diff --git a/MozillaFirefox-branding-openSUSE.spec b/MozillaFirefox-branding-openSUSE.spec index b32e8d3..60b0945 100644 --- a/MozillaFirefox-branding-openSUSE.spec +++ b/MozillaFirefox-branding-openSUSE.spec @@ -22,20 +22,28 @@ BuildRequires: MozillaFirefox MozillaFirefox-branding-upstream Name: MozillaFirefox-branding-openSUSE License: BSD 3-Clause Version: 3.0.3 -Release: 1 +Release: 2 Summary: openSUSE branding of MozillaFirefox Group: Productivity/Networking/Web/Browsers Source0: %{name}-COPYING Source1: search-addons.tar.bz2 Source2: bookmarks.html.suse Source3: firefox-suse-default-prefs.js +Source4: firefox.schemas Provides: MozillaFirefox-branding = %{version} -Supplements: packageand(MozillaFirefox:branding-openSUSE) Conflicts: otherproviders(MozillaFirefox-branding) +Supplements: packageand(MozillaFirefox:branding-openSUSE) BuildRoot: %{_tmppath}/%{name}-%{version}-build %define default_home_page http://www.opensuse.org/ %define progdir %{_prefix}/%_lib/firefox %define libgssapi libgssapi_krb5.so.2 +%if %suse_version > 1020 +%define gnome_confdir %{_sysconfdir} +%gconf_schemas_prereq +%else +%define gnome_confdir %{_sysconfdir}/opt/gnome +%define gnome_dir /opt/gnome +%endif %description This package provides openSUSE Look and Feel for MozillaFirefox. @@ -74,18 +82,53 @@ startup.homepage_override_url=%{default_home_page} EOF install -m0644 suse-browserconfig.properties $RPM_BUILD_ROOT%{progdir}/browserconfig.properties rm suse-browserconfig.properties +# SCHEMA File +mkdir -p $RPM_BUILD_ROOT%{gnome_confdir}/gconf/schemas +install -m 644 %{SOURCE4} \ + $RPM_BUILD_ROOT/%{gnome_confdir}/gconf/schemas/ +%if %suse_version > 1020 +%find_gconf_schemas +%endif %clean rm -rf $RPM_BUILD_ROOT +%if %suse_version > 1020 + +%pre -f %{name}.schemas_pre + +%preun -f %{name}.schemas_preun +%posttrans -f %{name}.schemas_posttrans +%endif +%if %suse_version <= 1020 + +%post +if [ ! -f /.buildenv ]; then + export GCONF_CONFIG_SOURCE=`%{gnome_dir}/bin/gconftool-2 --get-default-source` + %{gnome_dir}bin/gconftool-2 --makefile-install-rule %{gnome_confdir}/gconf/schemas/firefox.schemas > /dev/null 2>&1 +fi +%endif +%if %suse_version > 1020 + +%files -f %{name}.schemas_list +%defattr(-,root,root) +%else %files %defattr(-,root,root) +%{gnome_confdir}/gconf/schemas/firefox.schemas +%endif %doc COPYING %{progdir}/defaults/preferences/firefox-openSUSE.js %{progdir}/defaults/profile/bookmarks.html %{progdir}/browserconfig.properties %{progdir}/searchplugins/* + %changelog +* Fri Nov 07 2008 maw@suse.de +- Review and approve changes. +* Tue Nov 04 2008 wr@rosenauer.org +- added the Firefox Gconf schema for system prefs and + changed the homepage URL to http://www.opensuse.org/ (bnc#441646) * Mon Oct 20 2008 maw@suse.de - Review and approve changes. * Tue Oct 07 2008 wr@rosenauer.org diff --git a/firefox.schemas b/firefox.schemas new file mode 100644 index 0000000..1ed5329 --- /dev/null +++ b/firefox.schemas @@ -0,0 +1,299 @@ + + + + /schemas/apps/firefox/lockdown/disable_history + /apps/firefox/lockdown/disable_history + firefox + bool + false + + To disable the History. + To disable the histroy. + + + + /schemas/apps/firefox/lockdown/disable_toolbar_editing + /apps/firefox/lockdown/disable_toolbar_editing + firefox + bool + false + + Disable toolbar editing. + Disable ToolBar Editing. + + + + + /schemas/apps/firefox/lockdown/disable_themes + /apps/firefox/lockdown/disable_themes + firefox + bool + false + + Disable installing themes + Disable installing theme + + + + + /schemas/apps/firefox/lockdown/disable_extensions + /apps/firefox/lockdown/disable_extensions + firefox + bool + false + + Disable installing extensions + Disable installing extensions + + + + + /schemas/apps/firefox/lockdown/disable_show_passwords + /apps/firefox/lockdown/disable_show_passwords + firefox + bool + false + + Disable showing passwords + Disable showing passwords in the password manager. + + + + + /schemas/apps/firefox/web/disable_popups + /apps/firefox/web/disable_popups + firefox + bool + false + + Allow Popups. + Allow Popups. + + + + + /schemas/apps/firefox/web/java_enabled + /apps/firefox/web/java_enabled + firefox + bool + true + + Enable java. + Enable java. + + + + + /schemas/apps/firefox/web/javascript_enabled + /apps/firefox/web/javascript_enabled + firefox + bool + true + + Enable javascript. + Enable javascript. + + + + + /schemas/apps/firefox/lockdown/disable_url_bar + /apps/firefox/lockdown/disable_url_bar + firefox + bool + false + + Disable URL bar. + Disable URL bar. + + + + + /schemas/apps/firefox/lockdown/disable_searchbar + /apps/firefox/lockdown/disable_searchbar + firefox + bool + false + + Disable search bar. + Disable search bar. + + + + + /schemas/apps/firefox/web/disable_cookies + /apps/firefox/web/disable_cookies + firefox + bool + false + + Disable Cookies. + Disable Cookies. + + + + + /schemas/apps/firefox/web/disable_save_password + /apps/firefox/web/disable_save_password + firefox + bool + false + + Disable Save Password. + Disable Save Password. + + + + + /schemas/apps/firefox/web/cache_size + /apps/firefox/web/cache_size + firefox + int + 50000 + + Cache Size. + Cache Size. + + + + + /schemas/apps/firefox/general/homepage_url + /apps/firefox/general/homepage_url + firefox + string + http://www.opensuse.org/ + + Home Page URL. + Home Page URL. + + + + + /schemas/apps/firefox/web/download_defaultfolder + /apps/firefox/web/download_defaultfolder + firefox + string + Desktop + + Default downloadfolder location. + This is the default download folder location. + + + + + /schemas/apps/firefox/lockdown/disable_unsafe_protocol + /apps/firefox/lockdown/disable_unsafe_protocol + firefox + bool + false + + Disable Unsafe Protocol. + Disable Unsafe Protocol. + + + + + /schemas/apps/firefox/lockdown/disable_bookmark_editing + /apps/firefox/lockdown/disable_bookmark_editing + firefox + bool + false + + disable_bookmark_editing. + disable_bookmark_editing. + + + + + /schemas/apps/firefox/lockdown/hide_bookmark + /apps/firefox/lockdown/hide_bookmark + firefox + bool + false + + Hide Bookmarks + Hide Bookmarks. + + + + + /schemas/apps/firefox/lockdown/disable_javascript_chrome + /apps/firefox/lockdown/disable_javascript_chrome + firefox + bool + false + + Disable Javascript Chrome. + Disable Javascript Chrome. + + + + + /schemas/apps/firefox/web/cookie_accept + /apps/firefox/web/cookie_accept + firefox + int + 0 + + Setting Cookies. + Setting Cookies. + + + + + /schemas/apps/firefox/web/images_load + /apps/firefox/web/images_load + firefox + int + 0 + + Setting Loadimages. + Setting Loadimages. + + + + + + /schemas/apps/firefox/lockdown/additional_safe_protocols + /apps/firefox/lockdown/additional_safe_protocols + firefox + string + + + Additional Safe Protocols. + Additional Safe Protocols. + + + + + + /schemas/apps/firefox/general/trusted_URIs + /apps/firefox/general/trusted_URIs + firefox + list + string + [] + + List of URIs for which Kerberos/NTLM is enabled + A comma-separated list of URI keys, of the form + [scheme "://"] [host [":" port]], for which login should be allowed + via SPNEGO Kerberos or NTLM authentication. + + + + + /schemas/apps/firefox/general/delegated_URIs + /apps/firefox/general/delegated_URIs + firefox + list + string + [] + + List of URIs for which Kerberos/NTLM delegation is enabled + A comma-separated list of URI keys, of the form + [scheme "://"] [host [":" port]], for which delegation should be allowed + using SPNEGO Kerberos or NTLM authentication. + + + + +