2007-01-08 12:23:18 +01:00
|
|
|
#
|
2009-12-16 12:12:23 +01:00
|
|
|
# spec file for package MozillaFirefox (Version 3.5.6)
|
2007-01-08 12:23:18 +01:00
|
|
|
#
|
2009-01-23 02:27:31 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-06-09 17:44:44 +02:00
|
|
|
# Copyright (c) 2006-2009 Wolfgang Rosenauer
|
2007-01-08 12:23:18 +01:00
|
|
|
#
|
2008-08-22 00:53:39 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-08 12:23:18 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-15 01:45:38 +01:00
|
|
|
|
2007-01-08 12:23:18 +01:00
|
|
|
Name: MozillaFirefox
|
2009-06-09 17:44:44 +02:00
|
|
|
BuildRequires: autoconf213 gcc-c++ libgnomeui-devel libidl-devel orbit-devel python unzip update-desktop-files zip
|
2009-12-16 12:12:23 +01:00
|
|
|
BuildRequires: mozilla-xulrunner191-devel = 1.9.1.6
|
2007-08-27 17:11:41 +02:00
|
|
|
%if %suse_version > 1020
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
2009-12-21 14:04:13 +01:00
|
|
|
License: GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
|
2007-01-08 12:23:18 +01:00
|
|
|
Provides: web_browser
|
|
|
|
Provides: firefox
|
2009-12-16 12:12:23 +01:00
|
|
|
Version: 3.5.6
|
|
|
|
Release: 1
|
2007-01-08 12:23:18 +01:00
|
|
|
Summary: Mozilla Firefox Web Browser
|
2007-09-15 12:06:01 +02:00
|
|
|
Url: http://www.mozilla.org/
|
2007-01-08 12:23:18 +01:00
|
|
|
Group: Productivity/Networking/Web/Browsers
|
|
|
|
Source: firefox-%{version}-source.tar.bz2
|
|
|
|
Source1: MozillaFirefox.desktop
|
2008-09-26 16:53:00 +02:00
|
|
|
Source2: %{name}-rpmlintrc
|
2007-01-08 12:23:18 +01:00
|
|
|
Source3: mozilla.sh.in
|
2008-03-26 16:01:54 +01:00
|
|
|
Source4: find-external-requires.sh
|
2009-06-09 17:44:44 +02:00
|
|
|
# this needs to be shipped when lockdown changes are back
|
|
|
|
Source5: firefox.schemas
|
2009-09-17 00:40:05 +02:00
|
|
|
Source6: kde.js
|
2007-06-05 10:01:24 +02:00
|
|
|
Source7: l10n-%{version}.tar.bz2
|
2008-03-26 16:01:54 +01:00
|
|
|
Source8: firefox-mimeinfo.xml
|
2007-01-08 12:23:18 +01:00
|
|
|
Source16: firefox.1
|
|
|
|
Source17: firefox-suse-default-prefs.js
|
2008-03-26 16:01:54 +01:00
|
|
|
Patch1: firefox-libxul-sdk.patch
|
|
|
|
Patch2: firefox-no-update.patch
|
2009-05-22 15:35:15 +02:00
|
|
|
Patch3: toolkit-download-folder.patch
|
2009-07-08 23:04:16 +02:00
|
|
|
Patch4: mozilla-linkorder.patch
|
2009-08-21 17:38:41 +02:00
|
|
|
Patch6: firefox-cross-desktop.patch
|
2009-09-17 00:40:05 +02:00
|
|
|
Patch7: firefox-kde.patch
|
|
|
|
Patch8: firefox-no-gnomevfs.patch
|
2009-10-06 02:17:29 +02:00
|
|
|
Patch9: firefox-browser-css.patch
|
|
|
|
Patch10: mozilla-abi.patch
|
2007-01-08 12:23:18 +01:00
|
|
|
Patch14: credits.patch
|
|
|
|
Patch17: firefox-appname.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-09-26 16:53:00 +02:00
|
|
|
PreReq: coreutils /bin/sh gconf2 shared-mime-info desktop-file-utils
|
2009-05-04 18:28:41 +02:00
|
|
|
Requires: mozilla-xulrunner191 >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' mozilla-xulrunner191)
|
2009-06-09 17:44:44 +02:00
|
|
|
%requires_eq mozilla-xulrunner191
|
2008-11-03 12:28:00 +01:00
|
|
|
%ifarch %ix86
|
2009-05-04 18:28:41 +02:00
|
|
|
Requires: mozilla-xulrunner191-32bit >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' mozilla-xulrunner191)
|
2009-06-09 17:44:44 +02:00
|
|
|
Requires: mozilla-xulrunner191-32bit = %(rpm -q --queryformat '%{VERSION}' mozilla-xulrunner191)
|
2008-11-03 12:28:00 +01:00
|
|
|
%endif
|
2009-05-04 18:28:41 +02:00
|
|
|
Requires: %{name}-branding = 3.5
|
2007-01-08 12:23:18 +01:00
|
|
|
%define _unpackaged_files_terminate_build 0
|
2008-03-26 16:01:54 +01:00
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires sh %{SOURCE4}
|
2009-04-02 18:30:36 +02:00
|
|
|
%global provfind sh -c "grep -v '.so' | %__find_provides"
|
|
|
|
%global __find_provides %provfind
|
2009-12-16 12:12:23 +01:00
|
|
|
%define releasedate 2009120100
|
2007-01-08 12:23:18 +01:00
|
|
|
%define progname firefox
|
2008-09-26 16:53:00 +02:00
|
|
|
%define progdir %{_prefix}/%_lib/%{progname}
|
2009-12-21 14:04:13 +01:00
|
|
|
%if %suse_version > 1020
|
2007-01-26 00:57:56 +01:00
|
|
|
%define gnome_dir %{_prefix}
|
2009-12-21 14:04:13 +01:00
|
|
|
%else
|
|
|
|
%define gnome_dir /opt/gnome
|
|
|
|
%endif
|
2007-01-08 12:23:18 +01:00
|
|
|
### build options
|
2008-09-26 16:53:00 +02:00
|
|
|
%define branding 1
|
2009-05-04 18:28:41 +02:00
|
|
|
%define localize 1
|
2007-01-08 12:23:18 +01:00
|
|
|
### build options end
|
|
|
|
|
|
|
|
%description
|
2008-10-06 17:34:24 +02:00
|
|
|
Mozilla Firefox is a standalone web browser, designed for standards
|
|
|
|
compliance and performance. Its functionality can be enhanced via a
|
|
|
|
plethora of extensions.
|
2007-01-08 12:23:18 +01:00
|
|
|
|
|
|
|
|
2008-09-26 16:53:00 +02:00
|
|
|
%if %localize
|
2009-12-21 14:04:13 +01:00
|
|
|
|
2009-08-10 23:34:51 +02:00
|
|
|
%package translations-common
|
|
|
|
Summary: Common translations for MozillaFirefox
|
2009-12-21 14:04:13 +01:00
|
|
|
License: GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
|
2009-08-10 23:34:51 +02:00
|
|
|
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)
|
2008-10-06 17:34:24 +02:00
|
|
|
Group: System/Localization
|
2007-01-08 12:23:18 +01:00
|
|
|
PreReq: %{name} = %{version}
|
2009-08-10 23:34:51 +02:00
|
|
|
Requires: mozilla-xulrunner191-translations-common
|
|
|
|
Obsoletes: %{name}-translations < %{version}-%{release}
|
2007-01-08 12:23:18 +01:00
|
|
|
|
2009-08-10 23:34:51 +02:00
|
|
|
%description translations-common
|
|
|
|
This package contains several common languages for the user interface
|
|
|
|
of MozillaFirefox.
|
|
|
|
|
|
|
|
%package translations-other
|
|
|
|
Summary: Extra translations for MozillaFirefox
|
2009-12-21 14:04:13 +01:00
|
|
|
License: GPL v2 or later ; LGPL v2.1 or later ; MPL 1.1 or later
|
2009-08-10 23:34:51 +02:00
|
|
|
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}
|
|
|
|
Requires: mozilla-xulrunner191-translations-other
|
|
|
|
Obsoletes: %{name}-translations < %{version}-%{release}
|
|
|
|
|
|
|
|
%description translations-other
|
|
|
|
This package contains rarely used languages for the user interface
|
2007-01-08 12:23:18 +01:00
|
|
|
of MozillaFirefox.
|
|
|
|
|
2008-09-26 16:53:00 +02:00
|
|
|
%endif
|
|
|
|
|
2009-05-04 18:28:41 +02:00
|
|
|
%package branding-upstream
|
2009-12-21 14:04:13 +01:00
|
|
|
License: GPL v2 or later ; LGPL v2.1 or later ; MPL
|
2008-10-06 17:34:24 +02:00
|
|
|
Summary: Upstream branding for MozillaFirefox
|
2008-08-22 00:53:39 +02:00
|
|
|
Group: Productivity/Networking/Web/Browsers
|
2009-05-04 18:28:41 +02:00
|
|
|
Provides: %{name}-branding = 3.5
|
|
|
|
Conflicts: otherproviders(%{name}-branding)
|
|
|
|
Supplements: packageand(%{name}:branding-upstream)
|
2008-11-10 00:34:00 +01:00
|
|
|
#BRAND: Provide three files -
|
2008-10-06 17:34:24 +02:00
|
|
|
#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
|
2008-11-10 00:34:00 +01:00
|
|
|
#BRAND: /etc/gconf/schemas/firefox.schemas
|
|
|
|
#BRAND: for mapping some Firefox prefs to gconf
|
2008-10-06 17:34:24 +02:00
|
|
|
#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
|
2008-08-22 00:53:39 +02:00
|
|
|
|
2009-05-04 18:28:41 +02:00
|
|
|
%description branding-upstream
|
2008-10-06 17:34:24 +02:00
|
|
|
This package provides upstream look and feel for MozillaFirefox.
|
2008-08-22 00:53:39 +02:00
|
|
|
|
|
|
|
|
2007-01-08 12:23:18 +01:00
|
|
|
%prep
|
2008-03-26 16:01:54 +01:00
|
|
|
%setup -q -n mozilla -b 7
|
2007-01-08 12:23:18 +01:00
|
|
|
cd $RPM_BUILD_DIR/mozilla
|
2009-05-04 18:28:41 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2009-05-22 15:35:15 +02:00
|
|
|
%patch3 -p1
|
2009-07-08 23:04:16 +02:00
|
|
|
%patch4 -p1
|
2009-08-10 23:34:51 +02:00
|
|
|
%patch6 -p1
|
2009-10-28 07:18:17 +01:00
|
|
|
%if %suse_version >= 1110
|
2009-10-12 12:23:44 +02:00
|
|
|
# copy current files and patch them later to keep them in sync
|
|
|
|
cp browser/base/content/browser.xul browser/base/content/browser-kde.xul
|
2009-09-17 00:40:05 +02:00
|
|
|
%patch7 -p1
|
2009-10-28 07:18:17 +01:00
|
|
|
# install kde.js
|
|
|
|
install -m 644 %{SOURCE6} browser/app/profile/kde.js
|
|
|
|
%endif
|
2009-09-17 00:40:05 +02:00
|
|
|
%patch8 -p1
|
2009-10-06 02:17:29 +02:00
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
2009-11-25 14:59:34 +01:00
|
|
|
%patch14 -p1
|
|
|
|
%patch17 -p1
|
2007-01-08 12:23:18 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export MOZ_BUILD_DATE=%{releasedate}
|
|
|
|
export MOZILLA_OFFICIAL=1
|
|
|
|
export BUILD_OFFICIAL=1
|
2008-09-26 16:53:00 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
|
2007-01-08 12:23:18 +01:00
|
|
|
export CXXFLAGS="$CFLAGS"
|
2009-05-04 18:28:41 +02:00
|
|
|
# 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
|
2007-01-08 12:23:18 +01:00
|
|
|
export MOZCONFIG=$RPM_BUILD_DIR/mozconfig
|
2008-03-26 16:01:54 +01:00
|
|
|
SDKDIR=$(pkg-config --variable=sdkdir libxul)
|
2007-01-08 12:23:18 +01:00
|
|
|
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}
|
2008-03-26 16:01:54 +01:00
|
|
|
ac_add_options --with-system-nspr
|
|
|
|
ac_add_options --with-system-nss
|
|
|
|
ac_add_options --with-libxul-sdk=$SDKDIR
|
2009-05-04 18:28:41 +02:00
|
|
|
ac_add_options --with-l10n-base=../l10n
|
2007-01-08 12:23:18 +01:00
|
|
|
ac_add_options --with-system-jpeg
|
2008-03-26 16:01:54 +01:00
|
|
|
#ac_add_options --with-system-png # doesn't work because of missing APNG support
|
2007-01-08 12:23:18 +01:00
|
|
|
ac_add_options --with-system-zlib
|
|
|
|
ac_add_options --disable-installer
|
|
|
|
ac_add_options --disable-tests
|
|
|
|
ac_add_options --disable-debug
|
2008-03-26 16:01:54 +01:00
|
|
|
ac_add_options --disable-crashreporter
|
2007-01-08 12:23:18 +01:00
|
|
|
EOF
|
2008-09-26 16:53:00 +02:00
|
|
|
%if %branding
|
2007-01-08 12:23:18 +01:00
|
|
|
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
|
2009-08-10 23:34:51 +02:00
|
|
|
rm -f %{_tmppath}/translations.*
|
2007-08-28 19:15:52 +02:00
|
|
|
for locale in $(awk '{ print $1; }' browser/locales/shipped-locales); do
|
2007-01-08 12:23:18 +01:00
|
|
|
case $locale in
|
2008-09-26 16:53:00 +02:00
|
|
|
ja-JP-mac|en-US)
|
2007-01-08 12:23:18 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
make -C browser/locales libs-$locale
|
|
|
|
cp dist/xpi-stage/locale-$locale/chrome/$locale.jar \
|
2009-08-10 23:34:51 +02:00
|
|
|
$RPM_BUILD_ROOT%{progdir}/chrome
|
2007-01-08 12:23:18 +01:00
|
|
|
cp dist/xpi-stage/locale-$locale/chrome/$locale.manifest \
|
2009-08-10 23:34:51 +02:00
|
|
|
$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
|
2007-01-08 12:23:18 +01:00
|
|
|
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
|
2009-08-10 23:34:51 +02:00
|
|
|
ln -sf ../..%{progdir}/%{progname}.sh $RPM_BUILD_ROOT%{_bindir}/%{progname}
|
2007-01-08 12:23:18 +01:00
|
|
|
# desktop definition
|
2008-08-22 00:53:39 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
2007-01-08 12:23:18 +01:00
|
|
|
install -m 644 %{SOURCE1} \
|
2008-09-26 16:53:00 +02:00
|
|
|
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
|
2008-03-26 16:01:54 +01:00
|
|
|
# additional mime-types
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mime/packages
|
2008-09-26 16:53:00 +02:00
|
|
|
cp %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/mime/packages/%{progname}.xml
|
2007-01-08 12:23:18 +01:00
|
|
|
# install man-page
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
|
2008-09-26 16:53:00 +02:00
|
|
|
cp %{SOURCE16} $RPM_BUILD_ROOT%{_mandir}/man1/%{progname}.1
|
2007-01-08 12:23:18 +01:00
|
|
|
# apply SUSE defaults
|
2008-08-22 00:53:39 +02:00
|
|
|
sed -e 's,RPM_VERSION,%{version}-%{release},g' \
|
2007-01-08 12:23:18 +01:00
|
|
|
%{SOURCE17} > suse-default-prefs
|
2009-09-17 00:40:05 +02:00
|
|
|
cp suse-default-prefs $RPM_BUILD_ROOT%{progdir}/defaults/preferences/firefox-build.js
|
2007-01-08 12:23:18 +01:00
|
|
|
rm suse-default-prefs
|
|
|
|
# use correct locale for useragent
|
2008-03-26 16:01:54 +01:00
|
|
|
cat > $RPM_BUILD_ROOT%{progdir}/defaults/preferences/firefox-l10n.js << EOF
|
2007-01-08 12:23:18 +01:00
|
|
|
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
|
|
|
|
EOF
|
|
|
|
##########
|
|
|
|
# ADDONS
|
|
|
|
#
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
|
2008-09-26 16:53:00 +02:00
|
|
|
%if %branding
|
2009-06-20 03:02:24 +02:00
|
|
|
ln -sf %{progdir}/icons/mozicon128.png $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}.png
|
2009-06-24 10:20:46 +02:00
|
|
|
ln -sf %{progdir}/icons/mozicon128.png $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}-gnome.png
|
2009-06-20 03:02:24 +02:00
|
|
|
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
|
2007-01-08 12:23:18 +01:00
|
|
|
%else
|
2008-09-26 16:53:00 +02:00
|
|
|
cp -f $RPM_BUILD_ROOT%{progdir}/icons/mozicon50.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/%{progname}.xpm
|
2007-01-08 12:23:18 +01:00
|
|
|
%endif
|
2007-06-05 16:31:41 +02:00
|
|
|
%suse_update_desktop_file %{name} Network WebBrowser X-Ximian-Main X-Ximian-Toplevel GTK
|
2009-07-29 14:51:51 +02:00
|
|
|
# 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
|
|
|
|
# fdupes
|
2007-08-27 17:11:41 +02:00
|
|
|
%if %suse_version > 1020
|
2008-03-26 16:01:54 +01:00
|
|
|
%fdupes $RPM_BUILD_ROOT%{progdir}
|
|
|
|
%fdupes $RPM_BUILD_ROOT%{_datadir}
|
|
|
|
%endif
|
2007-01-08 12:23:18 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2009-08-10 23:34:51 +02:00
|
|
|
%if %localize
|
|
|
|
rm -rf %{_tmppath}/translations.*
|
|
|
|
%endif
|
2007-03-13 00:58:50 +01:00
|
|
|
|
2007-01-08 12:23:18 +01:00
|
|
|
%post
|
2008-03-26 16:01:54 +01:00
|
|
|
# update mime and desktop database
|
2008-02-15 01:45:38 +01:00
|
|
|
if [ -f usr/bin/update-mime-database ] ; then
|
2008-03-26 16:01:54 +01:00
|
|
|
usr/bin/update-mime-database %{_datadir}/mime > /dev/null || :
|
2008-02-15 01:45:38 +01:00
|
|
|
fi
|
|
|
|
%if %suse_version >= 1030
|
|
|
|
if [ -f usr/bin/update-desktop-database ] ; then
|
2008-03-26 16:01:54 +01:00
|
|
|
usr/bin/update-desktop-database > /dev/null || :
|
2008-02-15 01:45:38 +01:00
|
|
|
fi
|
|
|
|
%else
|
|
|
|
if [ -f opt/gnome/bin/update-mime-database ] ; then
|
2008-03-26 16:01:54 +01:00
|
|
|
opt/gnome/bin/update-mime-database > /dev/null || :
|
2008-02-15 01:45:38 +01:00
|
|
|
fi
|
|
|
|
%endif
|
2007-01-08 12:23:18 +01:00
|
|
|
# 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
|
2007-03-13 00:58:50 +01:00
|
|
|
|
2008-02-15 01:45:38 +01:00
|
|
|
%postun
|
|
|
|
if [ -f usr/bin/update-mime-database ] ; then
|
2008-03-26 16:01:54 +01:00
|
|
|
usr/bin/update-mime-database %{_datadir}/mime > /dev/null || :
|
2008-02-15 01:45:38 +01:00
|
|
|
fi
|
|
|
|
%if %suse_version >= 1030
|
|
|
|
if [ -f usr/bin/update-desktop-database ] ; then
|
2008-03-26 16:01:54 +01:00
|
|
|
usr/bin/update-desktop-database > /dev/null || :
|
2008-02-15 01:45:38 +01:00
|
|
|
fi
|
|
|
|
%else
|
|
|
|
if [ -f opt/gnome/bin/update-mime-database ] ; then
|
2008-03-26 16:01:54 +01:00
|
|
|
opt/gnome/bin/update-mime-database > /dev/null || :
|
2008-02-15 01:45:38 +01:00
|
|
|
fi
|
|
|
|
%endif
|
2008-03-26 16:01:54 +01:00
|
|
|
|
2009-12-21 14:04:13 +01:00
|
|
|
%files
|
2008-03-26 16:01:54 +01:00
|
|
|
%defattr(-,root,root)
|
2007-01-08 12:23:18 +01:00
|
|
|
%dir %{progdir}
|
|
|
|
%dir %{progdir}/chrome/
|
|
|
|
%{progdir}/chrome/browser.*
|
|
|
|
%{progdir}/chrome/classic.*
|
|
|
|
%{progdir}/chrome/en-US.*
|
|
|
|
%{progdir}/chrome/reporter.*
|
|
|
|
%{progdir}/chrome/icons
|
|
|
|
%{progdir}/components/
|
2008-08-22 00:53:39 +02:00
|
|
|
%exclude %{progdir}/defaults/profile/bookmarks.html
|
2007-01-08 12:23:18 +01:00
|
|
|
%{progdir}/defaults/
|
|
|
|
%{progdir}/extensions/
|
|
|
|
%{progdir}/icons/
|
|
|
|
%{progdir}/searchplugins/
|
2008-03-26 16:01:54 +01:00
|
|
|
%{progdir}/modules/
|
2007-01-08 12:23:18 +01:00
|
|
|
%attr(755,root,root) %{progdir}/%{progname}.sh
|
2009-05-04 18:28:41 +02:00
|
|
|
%{progdir}/%{progname}
|
2008-03-26 16:01:54 +01:00
|
|
|
%{progdir}/application.ini
|
2008-04-03 02:56:06 +02:00
|
|
|
%{progdir}/blocklist.xml
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2008-09-26 16:53:00 +02:00
|
|
|
%{_datadir}/mime/packages/%{progname}.xml
|
2008-06-23 23:39:45 +02:00
|
|
|
%{_datadir}/pixmaps/firefox*
|
2008-09-26 16:53:00 +02:00
|
|
|
%if %branding
|
2007-01-26 00:57:56 +01:00
|
|
|
%{gnome_dir}/share/icons/hicolor/
|
2007-01-08 12:23:18 +01:00
|
|
|
%endif
|
2008-06-23 23:39:45 +02:00
|
|
|
%{_bindir}/%{progname}
|
2008-09-26 16:53:00 +02:00
|
|
|
%doc %{_mandir}/man1/%{progname}.1.gz
|
2007-01-08 12:23:18 +01:00
|
|
|
%if %localize
|
|
|
|
|
2009-08-10 23:34:51 +02:00
|
|
|
%files translations-common -f %{_tmppath}/translations.common
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%files translations-other -f %{_tmppath}/translations.other
|
2007-01-08 12:23:18 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%endif
|
2008-04-03 02:56:06 +02:00
|
|
|
|
2009-12-21 14:04:13 +01:00
|
|
|
%files branding-upstream
|
2008-08-22 00:53:39 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{progdir}/browserconfig.properties
|
|
|
|
%{progdir}/defaults/profile/bookmarks.html
|
2009-07-04 13:30:11 +02:00
|
|
|
|
2007-02-25 23:32:56 +01:00
|
|
|
%changelog
|