2007-01-08 12:23:18 +01:00
|
|
|
#
|
2010-11-30 15:35:52 +01:00
|
|
|
# spec file for package MozillaFirefox (Version 4.0b)
|
2007-01-08 12:23:18 +01:00
|
|
|
#
|
2011-01-07 12:27:04 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-01-08 01:32:43 +01:00
|
|
|
# 2006-2010 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
|
2010-11-30 15:35:52 +01:00
|
|
|
%define use_xulrunner 1
|
|
|
|
%define xulrunner mozilla-xulrunner20
|
2010-12-28 23:52:30 +01:00
|
|
|
BuildRequires: Mesa-devel autoconf213 fdupes gcc-c++ libcurl-devel libgnomeui-devel libidl-devel libnotify-devel python unzip update-desktop-files yasm zip
|
2010-01-08 01:32:43 +01:00
|
|
|
%if %suse_version > 1110
|
|
|
|
BuildRequires: libiw-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: wireless-tools
|
|
|
|
%endif
|
2010-11-30 15:35:52 +01:00
|
|
|
%if 0%{?use_xulrunner}
|
|
|
|
BuildRequires: %{xulrunner}-devel = 2.0b
|
|
|
|
%endif
|
2009-12-21 14:04:16 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
|
2010-11-30 15:35:52 +01:00
|
|
|
Version: 4.0b
|
2011-01-07 12:27:04 +01:00
|
|
|
Release: 3
|
2007-01-08 12:23:18 +01:00
|
|
|
Provides: web_browser
|
2010-11-30 15:35:52 +01:00
|
|
|
Provides: firefox = %{version}
|
2010-12-20 16:42:41 +01:00
|
|
|
%define releasedate 2010121400
|
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
|
2010-11-30 15:35:52 +01:00
|
|
|
Source2: MozillaFirefox-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
|
|
|
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
|
2010-01-07 12:54:48 +01:00
|
|
|
Source9: firefox-lockdown.js
|
2010-11-30 15:35:52 +01:00
|
|
|
Source10: compare-locales.tar.bz2
|
|
|
|
Source11: firefox.1
|
2010-12-20 16:42:41 +01:00
|
|
|
Patch0: mozilla-firefox-sync.patch
|
2010-11-30 15:35:52 +01:00
|
|
|
Patch1: toolkit-download-folder.patch
|
|
|
|
Patch2: firefox-linkorder.patch
|
|
|
|
Patch3: firefox-browser-css.patch
|
|
|
|
Patch4: firefox-cross-desktop.patch
|
|
|
|
Patch5: firefox-appname.patch
|
|
|
|
Patch6: firefox-kde.patch
|
2010-12-01 17:34:10 +01:00
|
|
|
Patch7: firefox-ui-lockdown.patch
|
|
|
|
Patch8: firefox-no-sync-l10n.patch
|
|
|
|
Patch9: firefox-libxulsdk-locales.patch
|
2010-11-30 15:35:52 +01:00
|
|
|
Patch10: firefox-no-default-ualocale.patch
|
|
|
|
Patch11: firefox-multilocale-chrome.patch
|
2007-01-08 12:23:18 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-08 01:32:43 +01:00
|
|
|
Requires(post): coreutils shared-mime-info desktop-file-utils
|
|
|
|
Requires(postun): shared-mime-info desktop-file-utils
|
2010-11-30 15:35:52 +01:00
|
|
|
%if 0%{?use_xulrunner}
|
2010-01-08 01:32:43 +01:00
|
|
|
Requires: %{xulrunner} >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' %{xulrunner})
|
|
|
|
%requires_eq %{xulrunner}
|
2008-11-03 12:28:00 +01:00
|
|
|
%ifarch %ix86
|
2010-01-08 01:32:43 +01:00
|
|
|
Requires: %{xulrunner}-32bit >= %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' %{xulrunner})
|
|
|
|
Requires: %{xulrunner}-32bit = %(rpm -q --queryformat '%{VERSION}' %{xulrunner})
|
2008-11-03 12:28:00 +01:00
|
|
|
%endif
|
2010-11-30 15:35:52 +01:00
|
|
|
%endif
|
|
|
|
Requires: %{name}-branding >= 4.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
|
2007-01-08 12:23:18 +01:00
|
|
|
%define progname firefox
|
2008-09-26 16:53:00 +02:00
|
|
|
%define progdir %{_prefix}/%_lib/%{progname}
|
2007-01-26 00:57:56 +01:00
|
|
|
%define gnome_dir %{_prefix}
|
2007-01-08 12:23:18 +01:00
|
|
|
### build options
|
2008-09-26 16:53:00 +02:00
|
|
|
%define branding 1
|
2010-11-30 15:35:52 +01:00
|
|
|
%define localize 1
|
2010-08-01 17:17:34 +02:00
|
|
|
%ifarch ppc ppc64 s390 s390x ia64
|
|
|
|
%define crashreporter 0
|
|
|
|
%else
|
|
|
|
%define crashreporter 1
|
|
|
|
%endif
|
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
|
2010-12-28 23:52:30 +01:00
|
|
|
|
2009-08-10 23:34:51 +02:00
|
|
|
%package translations-common
|
|
|
|
Summary: Common translations for MozillaFirefox
|
2009-12-21 14:04:16 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
|
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
|
2010-01-08 01:32:43 +01:00
|
|
|
Requires: %{name} = %{version}
|
2009-08-10 23:34:51 +02:00
|
|
|
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:16 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
|
2010-01-08 01:32:43 +01: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;mr;nn_NO;oc;or;pa_IN;rm;ro;si;sk;sl;sq;sr;ta;ta_LK;te;th;tr;uk;vi)
|
2009-08-10 23:34:51 +02:00
|
|
|
Group: System/Localization
|
2010-01-08 01:32:43 +01:00
|
|
|
Requires: %{name} = %{version}
|
2009-08-10 23:34:51 +02:00
|
|
|
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:16 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+ ; MPLv1.1+
|
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
|
2010-11-30 15:35:52 +01:00
|
|
|
Provides: %{name}-branding = 4.0
|
2009-05-04 18:28:41 +02:00
|
|
|
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
|
2010-11-30 15:35:52 +01:00
|
|
|
%setup -q -n mozilla -b 7 -b 10
|
2007-01-08 12:23:18 +01:00
|
|
|
cd $RPM_BUILD_DIR/mozilla
|
2010-12-20 16:42:41 +01:00
|
|
|
%patch0 -p1
|
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-12-21 14:04:16 +01:00
|
|
|
%patch5 -p1
|
2010-01-08 01:32:43 +01:00
|
|
|
%if %suse_version >= 1110
|
2010-11-30 15:35:52 +01:00
|
|
|
%patch6 -p1
|
2009-10-28 07:18:17 +01:00
|
|
|
# install kde.js
|
|
|
|
install -m 644 %{SOURCE6} browser/app/profile/kde.js
|
|
|
|
%endif
|
2010-11-30 15:35:52 +01:00
|
|
|
#%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
2009-10-06 02:17:29 +02:00
|
|
|
%patch10 -p1
|
2010-01-08 01:32:43 +01:00
|
|
|
%patch11 -p1
|
2007-01-08 12:23:18 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export MOZ_BUILD_DATE=%{releasedate}
|
|
|
|
export MOZILLA_OFFICIAL=1
|
|
|
|
export BUILD_OFFICIAL=1
|
2010-11-30 15:35:52 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -Os -fno-strict-aliasing"
|
2007-01-08 12:23:18 +01:00
|
|
|
export CXXFLAGS="$CFLAGS"
|
|
|
|
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}
|
2010-11-30 15:35:52 +01:00
|
|
|
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
|
2007-01-08 12:23:18 +01:00
|
|
|
. \$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
|
2010-11-30 15:35:52 +01:00
|
|
|
ac_add_options --with-l10n-base=$RPM_BUILD_DIR/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
|
2010-01-08 01:32:43 +01:00
|
|
|
ac_add_options --disable-updater
|
2007-01-08 12:23:18 +01:00
|
|
|
ac_add_options --disable-tests
|
|
|
|
ac_add_options --disable-debug
|
2010-11-30 15:35:52 +01:00
|
|
|
ac_add_options --enable-update-channel=beta
|
2007-01-08 12:23:18 +01:00
|
|
|
EOF
|
2010-11-30 15:35:52 +01:00
|
|
|
%if 0%{?use_xulrunner}
|
|
|
|
cat << EOF >> $MOZCONFIG
|
|
|
|
ac_add_options --with-libxul-sdk=$SDKDIR
|
|
|
|
ac_add_options --enable-chrome-format=jar
|
|
|
|
EOF
|
|
|
|
%endif
|
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
|
2011-01-03 17:59:30 +01:00
|
|
|
%ifarch ppc ppc64 s390 s390x
|
|
|
|
cat << EOF >> $MOZCONFIG
|
|
|
|
ac_add_options --disable-ipc
|
|
|
|
EOF
|
|
|
|
%endif
|
2007-01-08 12:23:18 +01:00
|
|
|
make -f client.mk build
|
|
|
|
|
|
|
|
%install
|
2010-11-30 15:35:52 +01:00
|
|
|
cd $RPM_BUILD_DIR/obj
|
|
|
|
# FIXME (will be needed once lockdown is integrated; needs omni.jar adoption)
|
|
|
|
#cp %{SOURCE9} dist/bin/defaults/preferences/lockdown.js
|
|
|
|
rm dist/bin/defaults/preferences/firefox-l10n.js
|
2007-01-08 12:23:18 +01:00
|
|
|
make -C browser/installer STRIP=/bin/true
|
|
|
|
# copy tree into RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{progdir}
|
2010-11-30 15:35:52 +01:00
|
|
|
cp -rf $RPM_BUILD_DIR/obj/dist/firefox/* $RPM_BUILD_ROOT/%{progdir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{progdir}/searchplugins
|
2007-01-08 12:23:18 +01:00
|
|
|
# install additional locales
|
|
|
|
%if %localize
|
2009-08-10 23:34:51 +02:00
|
|
|
rm -f %{_tmppath}/translations.*
|
2010-11-30 15:35:52 +01:00
|
|
|
touch %{_tmppath}/translations.{common,other}
|
|
|
|
for locale in $(awk '{ print $1; }' ../mozilla/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
|
|
|
;;
|
|
|
|
*)
|
2010-11-30 15:35:52 +01:00
|
|
|
pushd $RPM_BUILD_DIR/compare-locales
|
|
|
|
PYTHONPATH=lib \
|
|
|
|
scripts/compare-locales -m ../l10n-merged/$locale \
|
|
|
|
../mozilla/browser/locales/l10n.ini ../l10n $locale
|
|
|
|
popd
|
|
|
|
LOCALE_MERGEDIR=$RPM_BUILD_DIR/l10n-merged/$locale \
|
|
|
|
make -C browser/locales langpack-$locale
|
|
|
|
cp -r dist/xpi-stage/locale-$locale \
|
|
|
|
$RPM_BUILD_ROOT%{progdir}/extensions/langpack-$locale@firefox.mozilla.org
|
|
|
|
# remove prefs and profile defaults from langpack
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{progdir}/extensions/langpack-$locale@firefox.mozilla.org/defaults
|
2009-08-10 23:34:51 +02:00
|
|
|
# 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
|
2010-11-30 15:35:52 +01:00
|
|
|
echo %{progdir}/extensions/langpack-$locale@firefox.mozilla.org \
|
|
|
|
>> %{_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
|
2010-11-30 15:35:52 +01:00
|
|
|
s:%%APPNAME:firefox:g
|
2007-01-08 12:23:18 +01:00
|
|
|
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/
|
2010-11-30 15:35:52 +01:00
|
|
|
cp %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man1/%{progname}.1
|
2007-01-08 12:23:18 +01:00
|
|
|
##########
|
|
|
|
# ADDONS
|
|
|
|
#
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
|
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
|
2010-01-08 01:32:43 +01:00
|
|
|
%if %branding
|
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
|
|
|
%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
|
2010-01-08 01:32:43 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT%{progdir}/LICENSE
|
2009-07-29 14:51:51 +02:00
|
|
|
# fdupes
|
2008-03-26 16:01:54 +01:00
|
|
|
%fdupes $RPM_BUILD_ROOT%{progdir}
|
|
|
|
%fdupes $RPM_BUILD_ROOT%{_datadir}
|
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
|
|
|
|
2010-01-08 01:32:43 +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.*
|
2010-11-30 15:35:52 +01:00
|
|
|
%{progdir}/chrome/localized.manifest
|
|
|
|
%{progdir}/chrome/nonlocalized.manifest
|
2007-01-08 12:23:18 +01:00
|
|
|
%{progdir}/chrome/en-US.*
|
|
|
|
%{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/
|
2010-11-30 15:35:52 +01:00
|
|
|
%dir %{progdir}/extensions/
|
|
|
|
%{progdir}/extensions/testpilot@labs.mozilla.com
|
|
|
|
%{progdir}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
|
2007-01-08 12:23:18 +01:00
|
|
|
%{progdir}/icons/
|
2008-03-26 16:01:54 +01:00
|
|
|
%{progdir}/modules/
|
2010-11-30 15:35:52 +01:00
|
|
|
%{progdir}/searchplugins/
|
2007-01-08 12:23:18 +01:00
|
|
|
%attr(755,root,root) %{progdir}/%{progname}.sh
|
2010-11-30 15:35:52 +01:00
|
|
|
%{progdir}/firefox
|
2008-03-26 16:01:54 +01:00
|
|
|
%{progdir}/application.ini
|
2008-04-03 02:56:06 +02:00
|
|
|
%{progdir}/blocklist.xml
|
2010-08-01 17:17:34 +02:00
|
|
|
%if %crashreporter
|
2010-01-08 01:32:43 +01:00
|
|
|
%{progdir}/crashreporter-override.ini
|
2010-08-01 17:17:34 +02:00
|
|
|
%endif
|
2010-11-30 15:35:52 +01:00
|
|
|
%{progdir}/chrome.manifest
|
2008-04-03 02:56:06 +02:00
|
|
|
%{_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
|
2010-03-26 02:09:50 +01:00
|
|
|
|
2010-03-23 21:19:58 +01:00
|
|
|
%if %localize
|
2010-03-26 02:09:49 +01:00
|
|
|
|
2009-08-10 23:34:51 +02:00
|
|
|
%files translations-common -f %{_tmppath}/translations.common
|
|
|
|
%defattr(-,root,root)
|
2010-01-08 01:32:43 +01:00
|
|
|
%dir %{progdir}
|
2010-11-30 15:35:52 +01:00
|
|
|
%dir %{progdir}/extensions/
|
2009-08-10 23:34:51 +02:00
|
|
|
|
|
|
|
%files translations-other -f %{_tmppath}/translations.other
|
2007-01-08 12:23:18 +01:00
|
|
|
%defattr(-,root,root)
|
2010-01-08 01:32:43 +01:00
|
|
|
%dir %{progdir}
|
2010-11-30 15:35:52 +01:00
|
|
|
%dir %{progdir}/extensions/
|
2007-01-08 12:23:18 +01:00
|
|
|
%endif
|
2009-12-21 14:04:16 +01:00
|
|
|
|
2010-11-30 15:35:52 +01:00
|
|
|
%files branding-upstream
|
|
|
|
%defattr(-,root,root)
|
2010-01-08 01:32:43 +01:00
|
|
|
%dir %{progdir}
|
|
|
|
%dir %{progdir}/defaults/
|
2008-08-22 00:53:39 +02:00
|
|
|
%{progdir}/defaults/profile/bookmarks.html
|
2009-07-04 13:30:11 +02:00
|
|
|
|
2007-02-25 23:32:56 +01:00
|
|
|
%changelog
|