Add MozillaFirefox package
authorWolfgang Rosenauer <wr@rosenauer.org>
Sun, 29 Nov 2009 19:46:53 +0100
changeset 5 17b1dd932700
parent 4 523b1d92948c
child 6 19a215169796
Add MozillaFirefox package
MozillaFirefox/MozillaFirefox-rpmlintrc
MozillaFirefox/MozillaFirefox.changes
MozillaFirefox/MozillaFirefox.desktop
MozillaFirefox/MozillaFirefox.spec
MozillaFirefox/find-external-requires.sh
MozillaFirefox/firefox-appname.patch
MozillaFirefox/firefox-browser-css.patch
MozillaFirefox/firefox-credits.patch
MozillaFirefox/firefox-cross-desktop.patch
MozillaFirefox/firefox-libxul-sdk.patch
MozillaFirefox/firefox-linkorder.patch
MozillaFirefox/firefox-mimeinfo.xml
MozillaFirefox/firefox-no-gnomevfs.patch
MozillaFirefox/firefox-suse-default-prefs.js
MozillaFirefox/firefox.1
MozillaFirefox/firefox.schemas
MozillaFirefox/mozilla.sh.in
MozillaFirefox/toolkit-download-folder.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/MozillaFirefox-rpmlintrc	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,1 @@
+addFilter("no-jar-manifest")
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/MozillaFirefox.changes	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,48 @@
+-------------------------------------------------------------------
+Thu Nov 26 22:30:17 CET 2009 - wr@rosenauer.org
+
+- update to 3.6b4
+
+-------------------------------------------------------------------
+Thu Nov 19 07:52:15 CET 2009 - wr@rosenauer.org
+
+- update to 3.6b3
+  * removed upstreamed mozilla-abi.patch
+
+-------------------------------------------------------------------
+Tue Nov 10 15:02:30 CET 2009 - wr@rosenauer.org
+
+- update to 3.6b2
+
+-------------------------------------------------------------------
+Sun Nov  8 19:22:03 CET 2009 - wr@rosenauer.org
+
+- merge patches from 3.5.x
+  * mozilla-abi.patch
+  * firefox-browser-css.patch
+
+-------------------------------------------------------------------
+Thu Nov  5 09:19:22 UTC 2009 - wr@rosenauer.org
+
+- use --disable-updater and remove obsolete UI patch
+
+-------------------------------------------------------------------
+Sun Nov  1 10:35:09 CET 2009 - wr@rosenauer.org
+
+- update to 3.6b1
+
+-------------------------------------------------------------------
+Mon Sep 21 16:45:13 CEST 2009 - wr@rosenauer.org
+
+- BuildRequire libiw-devel instead of wireless-tools from 11.2 on
+
+-------------------------------------------------------------------
+Wed Sep 16 23:58:40 CEST 2009 - wr@rosenauer.org
+
+- new snapshot (20090916)
+
+-------------------------------------------------------------------
+Tue Aug 25 00:00:13 CEST 2009 - wr@rosenauer.org
+
+- initial Firefox 3.6alpha package
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/MozillaFirefox.desktop	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Firefox
+GenericName=Web Browser
+Comment=Web Browser
+TryExec=firefox
+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;
+Type=Application
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/MozillaFirefox.spec	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,372 @@
+#
+# spec file for package MozillaFirefox (Version 3.6b4)
+#
+# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2006-2009 Wolfgang Rosenauer
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+# norootforbuild
+
+
+Name:           MozillaFirefox
+%define xulrunner mozilla-xulrunner192
+BuildRequires:  autoconf213 gcc-c++ libgnomeui-devel libidl-devel libnotify-devel orbit-devel python unzip update-desktop-files zip
+BuildRequires:  %{xulrunner}-devel = 1.9.2b4
+%if %suse_version > 1020
+BuildRequires:  fdupes
+%endif
+%if %suse_version > 1110
+BuildRequires:  libiw-devel
+%else
+BuildRequires:  wireless-tools
+%endif
+License:        GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
+Provides:       web_browser
+Provides:       firefox
+Version:        3.6b4
+Release:        1
+%define         releasedate 2009112600
+Summary:        Mozilla Firefox Web Browser
+Url:            http://www.mozilla.org/
+Group:          Productivity/Networking/Web/Browsers
+Source:         firefox-%{version}-source.tar.bz2
+Source1:        MozillaFirefox.desktop
+Source2:        %{name}-rpmlintrc
+Source3:        mozilla.sh.in
+Source4:        find-external-requires.sh
+# this needs to be shipped when lockdown changes are back
+Source5:        firefox.schemas
+Source7:        l10n-%{version}.tar.bz2
+Source8:        firefox-mimeinfo.xml
+Source16:       firefox.1
+Source17:       firefox-suse-default-prefs.js
+Patch1:         firefox-libxul-sdk.patch
+Patch2:         firefox-credits.patch
+Patch3:         toolkit-download-folder.patch
+Patch4:         firefox-linkorder.patch
+Patch5:         firefox-browser-css.patch
+Patch6:         firefox-cross-desktop.patch
+#Patch7:         firefox-kde.patch
+Patch8:         firefox-no-gnomevfs.patch
+Patch17:        firefox-appname.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+PreReq:         coreutils /bin/sh shared-mime-info desktop-file-utils
+Requires:       %{xulrunner} >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' %{xulrunner})
+%requires_eq    %{xulrunner}
+%ifarch %ix86
+Requires:       %{xulrunner}-32bit >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' %{xulrunner})
+Requires:       %{xulrunner}-32bit = %(rpm -q --queryformat '%{VERSION}' %{xulrunner})
+%endif
+Requires:       %{name}-branding >= 3.5
+%define _use_internal_dependency_generator 0
+%define __find_requires sh %{SOURCE4}
+%global provfind sh -c "grep -v '.so' | %__find_provides"
+%global __find_provides %provfind
+%define progname firefox
+%define progdir %{_prefix}/%_lib/%{progname}
+%if %suse_version > 1020
+%define gnome_dir     %{_prefix}
+%else
+%define gnome_dir     /opt/gnome
+%endif
+### build options
+%define branding 1
+%define localize 1 
+### build options end
+
+%description
+Mozilla Firefox is a standalone web browser, designed for standards
+compliance and performance.  Its functionality can be enhanced via a
+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
+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}
+Requires:       %{xulrunner}-translations-common
+Obsoletes:      %{name}-translations < %{version}-%{release}
+
+%description translations-common
+This package contains several common languages for the user interface
+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
+Provides:       locale(%{name}:be;bn_BD;cy;el;eo;et;eu;fa;fy_NL;ga_IE;gl;gu_IN;he;hi_IN;id;is;kk;kn;lt;lv;mk;ml;mr;nn_NO;or;pa_IN;rm;ro;si;sk;sl;sq;ta;ta_LK;te;tr;uk)
+Group:          System/Localization
+PreReq:         %{name} = %{version}
+Requires:       %{xulrunner}-translations-other
+Obsoletes:      %{name}-translations < %{version}-%{release}
+
+%description translations-other
+This package contains rarely used languages for the user interface
+of MozillaFirefox.
+
+%endif
+
+%package branding-upstream
+License:        GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
+Summary:        Upstream branding for MozillaFirefox
+Group:          Productivity/Networking/Web/Browsers
+Provides:       %{name}-branding = 3.5
+Conflicts:      otherproviders(%{name}-branding)
+Supplements:    packageand(%{name}:branding-upstream)
+#BRAND: Provide three files -
+#BRAND: /usr/lib/firefox/browserconfig.properties that contains the
+#BRAND: default homepage and some other default configuration options
+#BRAND: /usr/lib/firefox/defaults/profile/bookmarks.html that contains
+#BRAND: the list of default bookmarks
+#BRAND: /etc/gconf/schemas/firefox.schemas
+#BRAND: for mapping some Firefox prefs to gconf
+#BRAND: It's also possible to create a file
+#BRAND: /usr/lib/firefox/defaults/preferences/firefox-$vendor.js to set
+#BRAND: custom preference overrides.
+#BRAND: It's also possible to drop files in /usr/lib/firefox/searchplugins
+
+%description branding-upstream
+This package provides upstream look and feel for MozillaFirefox.
+
+
+%prep
+%setup -q -n mozilla -b 7
+cd $RPM_BUILD_DIR/mozilla
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+#%patch5 -p1 # FIXME
+%patch6 -p1
+%patch8 -p1
+%patch17 -p1
+
+%build
+export MOZ_BUILD_DATE=%{releasedate}
+export MOZILLA_OFFICIAL=1
+export BUILD_OFFICIAL=1
+export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"  
+export CXXFLAGS="$CFLAGS"
+# 10.3-x86_64 build fails probably because gcc bug
+%if %suse_version == 1030
+%ifarch x86_64
+export ac_cv_visibility_hidden="no"
+%endif
+%endif
+export MOZCONFIG=$RPM_BUILD_DIR/mozconfig
+SDKDIR=$(pkg-config --variable=sdkdir libxul)
+cat << EOF > $MOZCONFIG
+mk_add_options MOZILLA_OFFICIAL=1
+mk_add_options BUILD_OFFICIAL=1
+mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs}
+. \$topsrcdir/browser/config/mozconfig
+ac_add_options --prefix=%{_prefix}
+ac_add_options --libdir=%{_libdir}
+ac_add_options --sysconfdir=%{_sysconfdir}
+ac_add_options --mandir=%{_mandir}
+ac_add_options --includedir=%{_includedir}
+ac_add_options --with-system-nspr
+ac_add_options --with-system-nss
+ac_add_options --with-libxul-sdk=$SDKDIR
+ac_add_options --with-l10n-base=../l10n
+ac_add_options --with-system-jpeg
+#ac_add_options --with-system-png     # doesn't work because of missing APNG support
+ac_add_options --with-system-zlib
+ac_add_options --disable-installer
+ac_add_options --disable-updater
+ac_add_options --disable-tests
+ac_add_options --disable-debug
+ac_add_options --disable-crashreporter
+EOF
+%if %branding
+cat << EOF >> $MOZCONFIG
+ac_add_options --enable-official-branding
+EOF
+%endif
+make -f client.mk build
+
+%install
+make -C browser/installer STRIP=/bin/true
+# copy tree into RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/%{progdir}
+cp -rf $RPM_BUILD_DIR/mozilla/dist/firefox/* $RPM_BUILD_ROOT/%{progdir}
+# install additional locales
+%if %localize
+rm -f %{_tmppath}/translations.*
+for locale in $(awk '{ print $1; }' browser/locales/shipped-locales); do
+  case $locale in
+   ja-JP-mac|en-US)
+	;;
+   *)
+  	make -C browser/locales libs-$locale
+  	cp dist/xpi-stage/locale-$locale/chrome/$locale.jar \
+    	  $RPM_BUILD_ROOT%{progdir}/chrome
+  	cp dist/xpi-stage/locale-$locale/chrome/$locale.manifest \
+     	  $RPM_BUILD_ROOT%{progdir}/chrome
+	# check against the fixed common list and sort into the right filelist
+	_matched=0
+	for _match in 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; do
+	  [ "$_match" = "$locale" ] && _matched=1
+	done
+	[ $_matched -eq 1 ] && _l10ntarget=common || _l10ntarget=other
+  	echo %{progdir}/chrome/$locale.jar      >> %{_tmppath}/translations.$_l10ntarget
+  	echo %{progdir}/chrome/$locale.manifest >> %{_tmppath}/translations.$_l10ntarget
+  esac
+done
+%endif
+# overwrite the mozilla start-script and link it to /usr/bin
+mkdir --parents $RPM_BUILD_ROOT/usr/bin
+sed "s:%%PREFIX:%{_prefix}:g
+s:%%PROGDIR:%{progdir}:g
+s:%%APPNAME:%{progname}:g
+s:%%PROFILE:.mozilla/firefox:g" \
+  %{SOURCE3} > $RPM_BUILD_ROOT%{progdir}/%{progname}.sh
+chmod 755 $RPM_BUILD_ROOT%{progdir}/%{progname}.sh
+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
+# additional mime-types
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/mime/packages
+cp %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/mime/packages/%{progname}.xml
+# install man-page
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
+cp %{SOURCE16} $RPM_BUILD_ROOT%{_mandir}/man1/%{progname}.1
+# apply SUSE defaults
+sed -e 's,RPM_VERSION,%{version}-%{release},g' \
+   %{SOURCE17} > suse-default-prefs
+cp suse-default-prefs $RPM_BUILD_ROOT%{progdir}/defaults/preferences/firefox-build.js
+rm suse-default-prefs
+# use correct locale for useragent
+cat > $RPM_BUILD_ROOT%{progdir}/defaults/preferences/firefox-l10n.js << EOF
+pref("general.useragent.locale", "chrome://global/locale/intl.properties");
+EOF
+##########
+# ADDONS
+#
+mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
+ln -sf %{progdir}/icons/mozicon128.png $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}.png
+ln -sf %{progdir}/icons/mozicon128.png $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}-gnome.png
+%if %branding
+for size in 16 32 48; do
+  mkdir -p $RPM_BUILD_ROOT%{gnome_dir}/share/icons/hicolor/${size}x${size}/apps/
+  ln -sf %{progdir}/chrome/icons/default/default$size.png \
+         $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
+# excludes
+rm -f $RPM_BUILD_ROOT%{progdir}/updater.ini
+rm -f $RPM_BUILD_ROOT%{progdir}/removed-files
+rm -f $RPM_BUILD_ROOT%{progdir}/README.txt
+rm -f $RPM_BUILD_ROOT%{progdir}/old-homepage-default.properties
+rm -f $RPM_BUILD_ROOT%{progdir}/run-mozilla.sh
+rm -f $RPM_BUILD_ROOT%{progdir}/LICENSE
+# fdupes
+%if %suse_version > 1020
+%fdupes $RPM_BUILD_ROOT%{progdir}
+%fdupes $RPM_BUILD_ROOT%{_datadir}
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+%if %localize
+rm -rf %{_tmppath}/translations.*
+%endif
+
+%post
+# update mime and desktop database
+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)
+%dir %{progdir}
+%dir %{progdir}/chrome/
+%{progdir}/chrome/browser.*
+%{progdir}/chrome/classic.*
+%{progdir}/chrome/en-US.*
+%{progdir}/chrome/reporter.*
+%{progdir}/chrome/icons
+%{progdir}/components/
+%exclude %{progdir}/defaults/profile/bookmarks.html
+%{progdir}/defaults/
+%{progdir}/extensions/
+%{progdir}/icons/
+%{progdir}/searchplugins/
+%{progdir}/modules/
+%attr(755,root,root) %{progdir}/%{progname}.sh
+%{progdir}/%{progname}
+%{progdir}/application.ini
+%{progdir}/blocklist.xml
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/mime/packages/%{progname}.xml
+%{_datadir}/pixmaps/firefox*
+%if %branding
+%{gnome_dir}/share/icons/hicolor/
+%endif
+%{_bindir}/%{progname}
+%doc %{_mandir}/man1/%{progname}.1.gz
+%if %localize
+
+%files translations-common -f %{_tmppath}/translations.common
+%defattr(-,root,root)
+
+%files translations-other -f %{_tmppath}/translations.other
+%defattr(-,root,root)
+%endif
+
+%files branding-upstream  
+%defattr(-,root,root)  
+%{progdir}/browserconfig.properties  
+%{progdir}/defaults/profile/bookmarks.html
+
+%changelog
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/find-external-requires.sh	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# Finds requirements provided outside of the current file set
+
+filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"`
+
+provides=`echo "$filelist" | /usr/lib/rpm/find-provides`
+
+{
+for f in $filelist ; do
+	echo $f | /usr/lib/rpm/find-requires | while read req ; do
+		found=0
+		for p in $provides ; do
+			if [ "$req" = "$p" ]; then
+				found=1
+			fi
+		done
+		if [ "$found" = "0" ]; then
+			echo $req
+		fi
+	done
+done
+} | sort -u
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/firefox-appname.patch	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,1 @@
+../firefox-appname.patch
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/firefox-browser-css.patch	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,1 @@
+../firefox-browser-css.patch
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/firefox-credits.patch	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,1 @@
+../firefox-credits.patch
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/firefox-cross-desktop.patch	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,1 @@
+../firefox-cross-desktop.patch
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/firefox-libxul-sdk.patch	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,1 @@
+../firefox-libxul-sdk.patch
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/firefox-linkorder.patch	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,1 @@
+../firefox-linkorder.patch
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/firefox-mimeinfo.xml	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+  <mime-type type="application/x-xpinstall">
+    <comment xml:lang="en">Mozilla Cross-Platform Installer Module</comment>
+    <glob pattern="*.xpi" />
+  </mime-type>
+</mime-info>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/firefox-no-gnomevfs.patch	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,1 @@
+../firefox-no-gnomevfs.patch
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/firefox-suse-default-prefs.js	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,2 @@
+pref("general.useragent.vendor", "SUSE");
+pref("general.useragent.vendorSub", "RPM_VERSION");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/firefox.1	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,128 @@
+.TH FIREFOX 1 "January 04, 2006" firefox "Linux User's Manual"
+.SH NAME
+firefox \- a Web browser for X11 derived from the Mozilla browser
+
+.SH SYNOPSIS
+.B firefox
+[\fIOPTIONS\fR] [\fIURL\fR]
+
+.SH DESCRIPTION
+\fBMozilla Firefox\fR is an open-source web browser, designed for
+standards compliance, performance and portability.
+
+.SH USAGE
+\fBfirefox\fR is a simple shell script that will set up the
+environment for the actual executable.
+
+.SH OPTIONS
+A summary of the options supported by \fBfirefox\fR is included below.
+
+.SS "GTK options"
+\fB\-\-gdk-debug=\fR\fIFLAGS\fR
+Gdk debugging flags to set
+.TP
+\fB\-\-gdk-no-debug=\fR\fIFLAGS\fR
+Gdk debugging flags to unset
+.TP
+\fB\-\-gtk-debug=\fR\fIFLAGS\fR
+Gtk+ debugging flags to set
+.TP
+\fB\-\-gtk-no-debug=\fR\fIFLAGS\fR
+Gtk+ debugging flags to unset
+.TP
+\fB\-\-gtk-module=\fR\fIMODULE\fR
+Load an additional Gtk module
+
+.SS "X11 options"
+.TP
+.BI \-\-display= DISPLAY
+X display to use
+.TP
+.B \--sync
+Make X calls synchronous
+.TP
+.B \-\-no-xshm
+Don't use X shared memory extension
+.TP
+.BI \-\-xim-preedit= STYLE
+.TP
+.BI \-\-xim-status= STYLE
+.TP
+.B \-\-g-fatal-warnings
+Make all warnings fatal
+
+.SS "Firefox options"
+.TP
+.B \-h, \-help
+Show summary of options.
+.TP
+\fB\-height\fR \fIvalue\fR
+Set height of startup window to \fIvalue\fR.
+.TP
+\fB\-width\fR \fIvalue\fR
+Set width of startup window to \fIvalue\fR.
+.TP
+.B \-v, \-version
+Print \fB/usr/bin/firefox-bin\fR version.
+.TP
+\fB\-CreateProfile\fR \fIprofile\fR
+Create \fIprofile\fR.
+.TP
+\fB\-P\fR \fIprofile\fR
+Start with \fIprofile\fR.
+.TP
+.B \-ProfileManager
+Start with profile manager.
+.TP
+\fB\-UILocale\fR \fIlang-region\fR
+Start with \fIlang-region\fR resources.
+.TP
+\fB\-contentLocale\fR \fIlang-region\fR
+Start with \fIlang-region\fR resources.
+.TP
+\fB\-remote\fR \fIcommand\fR
+Execute \fIcommand\fR in an already running Firefox process.  For more info,
+see: \fIhttp://www.mozilla.org/unix/remote.html\fR
+.TP
+.B \-no-remote
+Don't try to control an already running instance.
+.TP
+.B \-jsconsole
+Start with Javascript Console
+.TP
+\fB\-chrome\fR \fIurl\fR
+Load the specified chrome.
+.TP
+\fB\-new-window\fR \fIurl\fR
+Open URL in a new window if Firefox is already running.
+.TP
+\fB\-new-tab\fR \fIurl\fR
+Open URL in a new tab if Firefox is already running.
+.TP
+\fB\-preferences\fR
+Open Firefox preferences menu.
+.TP
+.B \-safe-mode
+Disables extensions and themes for this session.
+.TP
+
+.SH FILES
+\fI/usr/bin/firefox\fR - shell script wrapping
+\fBfirefox\fR
+.br
+\fI/usr/lib/firefox/firefox\fR - \fBfirefox\fR
+executable
+
+.SH VERSION
+3.0
+
+.SH BUGS
+To report a bug, please visit \fIhttp://bugzilla.mozilla.org/\fR
+
+.SH "SEE ALSO"
+.BR mozilla(1)
+
+.SH AUTHORS
+.TP
+.B The Mozilla Organization
+.I http://www.mozilla.org/about.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/firefox.schemas	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,289 @@
+<gconfschemafile>
+    <schemalist>
+      <schema>
+        <key>/schemas/apps/firefox/lockdown/disable_history</key>
+        <applyto>/apps/firefox/lockdown/disable_history</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Disable the browser history</short>
+        <long>Prevent the browser from keeping a history of visited sites</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/lockdown/disable_toolbar_editing</key>
+        <applyto>/apps/firefox/lockdown/disable_toolbar_editing</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Disable toolbar editing</short>
+        <long>Prevent the user from editing the toolbar</long>
+        </locale>
+      </schema>
+       <schema>
+        <key>/schemas/apps/firefox/lockdown/disable_themes</key>
+        <applyto>/apps/firefox/lockdown/disable_themes</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Disable installing themes</short>
+        <long>To prevent the user from installing themes</long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/firefox/lockdown/disable_extensions</key>
+        <applyto>/apps/firefox/lockdown/disable_extensions</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Disable installing extensions</short>
+        <long>Prevent the user from installing extensions</long>
+        </locale>
+       </schema>
+     <schema>
+        <key>/schemas/apps/firefox/web/disable_popups</key>
+        <applyto>/apps/firefox/web/disable_popups</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Enable popup blocker</short>
+        <long>Enable popup blocker without warning about blocked popups</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/web/java_enabled</key>
+        <applyto>/apps/firefox/web/java_enabled</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>true</default>
+        <locale name="C">
+        <short>Enable java</short>
+        <long>Enable java</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/web/javascript_enabled</key>
+        <applyto>/apps/firefox/web/javascript_enabled</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>true</default>
+        <locale name="C">
+        <short>Enable javascript</short>
+        <long>Enable javascript</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/lockdown/disable_url_bar</key>
+        <applyto>/apps/firefox/lockdown/disable_url_bar</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Disable location bar</short>
+        <long>Prevent the user from entering URLs in the location bar</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/lockdown/disable_searchbar</key>
+        <applyto>/apps/firefox/lockdown/disable_searchbar</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Disable search bar</short>
+        <long>Prevent the user from using the search bar</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/web/disable_cookies</key>
+        <applyto>/apps/firefox/web/disable_cookies</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Disable cookies</short>
+        <long>Prevent the browser from storing cookies</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/web/disable_save_password</key>
+        <applyto>/apps/firefox/web/disable_save_password</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Disable saved passwords</short>
+        <long>Prevent the browser from storing saved passwords</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/web/cache_size</key>
+        <applyto>/apps/firefox/web/cache_size</applyto>
+        <owner>firefox</owner>
+        <type>int</type>
+        <default>50000</default>
+        <locale name="C">
+        <short>Disk cache size in KB</short>
+        <long>Disk cache size in KB</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/general/homepage_url</key>
+        <applyto>/apps/firefox/general/homepage_url</applyto>
+        <owner>firefox</owner>
+        <type>string</type>
+        <default>www.novell.com/linux</default>
+        <locale name="C">
+        <short>Home Page URL</short>
+        <long>Home Page URL</long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/firefox/web/download_defaultfolder</key>
+        <applyto>/apps/firefox/web/download_defaultfolder</applyto>
+        <owner>firefox</owner>
+        <type>string</type>
+        <default>Desktop</default>
+        <locale name="C">
+        <short>Default download location</short>
+        <long>Default download location.  Possible values include: "Desktop", "My Downloads", and "Home"</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/lockdown/disable_unsafe_protocol</key>
+        <applyto>/apps/firefox/lockdown/disable_unsafe_protocol</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Disable unsafe protocols</short>
+        <long>Disable non-builtin protocols not explicitly enabled</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/lockdown/disable_bookmark_editing</key>
+        <applyto>/apps/firefox/lockdown/disable_bookmark_editing</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Disable editing bookmarks</short>
+        <long>Prevent the user from editing browser bookmarks</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/lockdown/hide_bookmark</key>
+        <applyto>/apps/firefox/lockdown/hide_bookmark</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Disable bookmarks feature</short>
+        <long>Prevent the user from editing or viewing bookmarks</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/lockdown/disable_show_passwords</key>
+        <applyto>/apps/firefox/lockdown/disable_show_passwords</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Disable display of stored web passwords</short>
+        <long>Disable plain text display of stored web passwords in Preferences dialog</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/lockdown/disable_javascript_chrome</key>
+        <applyto>/apps/firefox/lockdown/disable_javascript_chrome</applyto>
+        <owner>firefox</owner>
+        <type>bool</type>
+        <default>false</default>
+        <locale name="C">
+        <short>Prevent javascript windows from hiding chrome</short>
+        <long>Prevent windows opened by javascript from hiding window chrome (location bar, status bar, etc.)</long>
+        </locale>
+      </schema>
+	<schema>
+        <key>/schemas/apps/firefox/web/cookie_accept</key>
+        <applyto>/apps/firefox/web/cookie_accept</applyto>
+        <owner>firefox</owner>
+        <type>int</type>
+        <default>0</default>
+        <locale name="C">
+        <short>Cookie Lifetime Policy</short>
+        <long>Cookie Lifetime Policy: 0 = Accept cookies normally; 1 = Prompt for each cookie; 2 = Accept for current session only; 3 = Accept for N days</long>
+        </locale>
+      </schema>
+        <schema>
+        <key>/schemas/apps/firefox/web/images_load</key>
+        <applyto>/apps/firefox/web/images_load</applyto>
+        <owner>firefox</owner>
+        <type>int</type>
+        <default>0</default>
+        <locale name="C">
+        <short>Image loading policy</short>
+        <long>Image loading policy: 0 = load all images; 1 = exclude third-party image loading; 2 = exclude all image loading</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/lockdown/additional_safe_protocols</key>
+        <applyto>/apps/firefox/lockdown/additional_safe_protocols</applyto>
+        <owner>firefox</owner>
+        <type>string</type>
+        <default></default>
+        <locale name="C">
+        <short>Additional Safe Protocols</short>
+        <long>Additional Safe Protocols</long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/general/trusted_URIs</key>
+        <applyto>/apps/firefox/general/trusted_URIs</applyto>
+        <owner>firefox</owner>
+        <type>list</type>
+        <list_type>string</list_type>
+        <default>[]</default>
+        <locale name="C">
+        <short>List of URIs for which Kerberos/NTLM is enabled</short>
+        <long>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.
+        </long>
+        </locale>
+      </schema>
+     <schema>
+        <key>/schemas/apps/firefox/general/delegated_URIs</key>
+        <applyto>/apps/firefox/general/delegated_URIs</applyto>
+        <owner>firefox</owner>
+        <type>list</type>
+        <list_type>string</list_type>
+        <default>[]</default>
+        <locale name="C">
+        <short>List of URIs for which Kerberos/NTLM delegation is enabled</short>
+        <long>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.
+        </long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/firefox/general/allowed_indirect_gnomevfs_loads</key>
+        <applyto>/apps/firefox/general/allowed_indirect_gnomevfs_loads</applyto>
+        <owner>firefox</owner>
+        <type>string</type>
+        <default>""</default>
+        <locale name="C">
+          <short>A list of protocols, handled by gnome-vfs, that are permitted</short>
+          <long>A comma-separated list of protocols, handled by
+          gnome-vfs and of the form [scheme "://"], whose loads are
+          allowed.</long>
+        </locale>
+      </schema>
+    </schemalist>
+</gconfschemafile>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/mozilla.sh.in	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,131 @@
+#!/bin/sh
+#
+# ***** BEGIN LICENSE BLOCK *****
+# Version: MPL 1.1/GPL 2.0/LGPL 2.1
+#
+# The contents of this file are subject to the Mozilla Public License Version
+# 1.1 (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+# http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+#
+# The Original Code is mozilla.org Code.
+#
+# The Initial Developer of the Original Code is
+# Netscape Communications Corporation.
+# Portions created by the Initial Developer are Copyright (C) 1998
+# the Initial Developer. All Rights Reserved.
+#
+# Contributor(s): 
+#    Wolfgang Rosenauer <wolfgang.rosenauer@suse.de>
+#                       <wr@rosenauer.org>
+#
+# 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
+# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+# in which case the provisions of the GPL or the LGPL are applicable instead
+# of those above. If you wish to allow use of your version of this file only
+# under the terms of either the GPL or the LGPL, and not to allow others to
+# use your version of this file under the terms of the MPL, indicate your
+# decision by deleting the provisions above and replace them with the notice
+# and other provisions required by the GPL or the LGPL. If you do not delete
+# the provisions above, a recipient may use your version of this file under
+# the terms of any one of the MPL, the GPL or the LGPL.
+#
+# ***** END LICENSE BLOCK *****
+
+## 
+## Usage:
+##
+## $ mozilla [args]
+##
+## This script is meant to run a mozilla program from the mozilla
+## rpm installation.
+##
+## The script will setup all the environment voodoo needed to make
+## mozilla work.
+
+cmdname=`basename $0`
+
+##
+## Variables
+##
+MOZ_DIST_BIN="%PREFIX"
+MOZ_DIST_LIB="%PROGDIR"
+MOZ_APPNAME="%APPNAME"
+MOZ_PROGRAM="$MOZ_DIST_LIB/$MOZ_APPNAME"
+
+export MOZ_APP_LAUNCHER="$MOZ_DIST_LIB/$MOZ_APPNAME.sh"
+
+mozilla_lib=`file $MOZ_PROGRAM`
+LIB=lib
+echo $mozilla_lib | grep -q -E 'x86-64|s390x|64-bit.PowerPC' && LIB=lib64
+
+BROWSER_PLUGIN_DIR=/usr/$LIB/browser-plugins
+if [ ! -d $BROWSER_PLUGIN_DIR ]; then
+  BROWSER_PLUGIN_DIR=/opt/netscape/plugins
+fi
+
+# ignore composite extension (needed for Flash)
+export XLIB_SKIP_ARGB_VISUALS=1
+
+# needed for SUN Java under Xorg >= 7.2
+export LIBXCB_ALLOW_SLOPPY_LOCK=1
+
+##
+if [ -z "$MOZ_PLUGIN_PATH" ]; then
+  export MOZ_PLUGIN_PATH=$BROWSER_PLUGIN_DIR
+else
+  # make sure that BROWSER_PLUGIN_DIR is in MOZ_PLUGIN_PATH
+  echo "$MOZ_PLUGIN_PATH" | grep "$BROWSER_PLUGIN_DIR" 2>&1 >/dev/null
+  _retval=$?
+  if [ ${_retval} -ne 0 ]; then
+    export MOZ_PLUGIN_PATH=$MOZ_PLUGIN_PATH:$BROWSER_PLUGIN_DIR
+  fi
+fi
+
+# disable Gnome crash dialog (doesn't make sense anyway)
+export GNOME_DISABLE_CRASH_DIALOG=1
+
+moz_debug=0
+script_args=""
+pass_arg_count=0
+while [ $# -gt $pass_arg_count ]
+do
+  case "$1" in
+    -d | --debugger)
+      moz_debugger=$2;
+      if [ "${moz_debugger}" != "" ]; then
+        shift 2
+        moz_debug=1
+      else
+        echo "-d requires an argument"
+        exit 1
+      fi
+      ;;
+    *)
+      # Move the unrecognized argument to the end of the list.
+      arg="$1"
+      shift
+      set -- "$@" "$arg"
+      pass_arg_count=`expr $pass_arg_count + 1`
+      ;;
+  esac
+done
+
+if [ $moz_debug -eq 1 ]; then
+  tmpfile=`mktemp /tmp/mozargs.XXXXXX` || { echo "Cannot create temporary file" >&2; exit 1; }
+  trap " [ -f \"$tmpfile\" ] && /bin/rm -f -- \"$tmpfile\"" 0 1 2 3 13 15
+  echo -e "set args ${1+"$@"}\nrun" > $tmpfile
+  echo "$moz_debugger $MOZ_PROGRAM -x $tmpfile"
+  $moz_debugger "$MOZ_PROGRAM" -x $tmpfile
+else
+  $MOZ_PROGRAM "$@"
+fi
+exitcode=$?
+
+exit $exitcode
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/toolkit-download-folder.patch	Sun Nov 29 19:46:53 2009 +0100
@@ -0,0 +1,1 @@
+../toolkit-download-folder.patch
\ No newline at end of file