2008-09-03 04:25:26 +02:00
|
|
|
#
|
2009-05-04 18:28:50 +02:00
|
|
|
# spec file for package MozillaFirefox-branding-openSUSE (Version 3.5)
|
2008-09-03 04:25:26 +02:00
|
|
|
#
|
2009-05-04 18:28:50 +02:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-07-04 13:31:18 +02:00
|
|
|
# Copyright (c) 2008-2009 Wolfgang Rosenauer
|
2008-09-03 04:25:26 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-07-04 13:31:18 +02:00
|
|
|
BuildRequires: MozillaFirefox bc unzip zip
|
2008-09-03 04:25:26 +02:00
|
|
|
Name: MozillaFirefox-branding-openSUSE
|
2009-07-04 13:31:18 +02:00
|
|
|
License: BSD 3-clause (or similar) ; GPL v2 or later
|
2009-05-04 18:28:50 +02:00
|
|
|
Version: 3.5
|
2009-11-07 10:14:23 +01:00
|
|
|
Release: 8
|
2008-09-03 04:25:26 +02:00
|
|
|
Summary: openSUSE branding of MozillaFirefox
|
|
|
|
Group: Productivity/Networking/Web/Browsers
|
2009-11-07 10:14:23 +01:00
|
|
|
Source: susefox-20091023.tar.bz2
|
2008-09-03 04:25:26 +02:00
|
|
|
Source1: search-addons.tar.bz2
|
|
|
|
Source2: bookmarks.html.suse
|
|
|
|
Source3: firefox-suse-default-prefs.js
|
2008-11-10 00:33:36 +01:00
|
|
|
Source4: firefox.schemas
|
2009-07-04 13:31:18 +02:00
|
|
|
Source5: distribution.ini.in
|
|
|
|
Source6: %{name}-COPYING
|
2008-09-03 04:25:26 +02:00
|
|
|
Provides: MozillaFirefox-branding = %{version}
|
2009-05-04 18:28:50 +02:00
|
|
|
PreReq: MozillaFirefox >= 3.5
|
2008-10-22 18:24:28 +02:00
|
|
|
Conflicts: otherproviders(MozillaFirefox-branding)
|
2008-11-10 00:33:36 +01:00
|
|
|
Supplements: packageand(MozillaFirefox:branding-openSUSE)
|
2008-09-03 04:25:26 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%define default_home_page http://www.opensuse.org/
|
|
|
|
%define progdir %{_prefix}/%_lib/firefox
|
|
|
|
%define libgssapi libgssapi_krb5.so.2
|
2008-11-10 00:33:36 +01:00
|
|
|
%define gnome_confdir %{_sysconfdir}
|
2009-07-04 13:31:18 +02:00
|
|
|
%define suseversion %(echo -e "scale=1\\n%{suse_version}/100" | bc 2>/dev/null)
|
2008-11-10 00:33:36 +01:00
|
|
|
%gconf_schemas_prereq
|
2008-09-03 04:25:26 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides openSUSE Look and Feel for MozillaFirefox.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2009-07-04 13:31:18 +02:00
|
|
|
cp -a %{SOURCE6} COPYING
|
|
|
|
%setup -n susefox -q
|
|
|
|
mv COPYING COPYING.susefox
|
2008-09-03 04:25:26 +02:00
|
|
|
|
|
|
|
%build
|
2009-07-04 13:31:18 +02:00
|
|
|
./build.sh
|
2008-09-03 04:25:26 +02:00
|
|
|
|
|
|
|
%install
|
2009-07-04 13:31:18 +02:00
|
|
|
install -d $RPM_BUILD_ROOT%{progdir}
|
2008-09-03 04:25:26 +02:00
|
|
|
# custom bookmarks
|
2009-07-04 13:31:18 +02:00
|
|
|
install -d $RPM_BUILD_ROOT%{progdir}/defaults/profile
|
|
|
|
install -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{progdir}/defaults/profile/bookmarks.html
|
2008-09-03 04:25:26 +02:00
|
|
|
# apply SUSE defaults
|
2009-07-04 13:31:18 +02:00
|
|
|
install -d $RPM_BUILD_ROOT%{progdir}/defaults/preferences
|
2008-09-03 04:25:26 +02:00
|
|
|
sed -e 's,GSSAPI,%{libgssapi},g' \
|
|
|
|
%{SOURCE3} > suse-default-prefs
|
2009-07-04 13:31:18 +02:00
|
|
|
install -m0644 suse-default-prefs $RPM_BUILD_ROOT%{progdir}/defaults/preferences/firefox-openSUSE.js
|
2008-09-03 04:25:26 +02:00
|
|
|
rm suse-default-prefs
|
2009-07-04 13:31:18 +02:00
|
|
|
# distribution.ini
|
|
|
|
install -d $RPM_BUILD_ROOT%{progdir}/distribution
|
|
|
|
sed -e 's,%VERSION%,%{suseversion},g' \
|
|
|
|
%{SOURCE5} > distribution.ini
|
|
|
|
install -m 0644 distribution.ini $RPM_BUILD_ROOT%{progdir}/distribution/
|
2008-09-03 04:25:26 +02:00
|
|
|
# search plugins
|
2009-07-04 13:31:18 +02:00
|
|
|
install -d $RPM_BUILD_ROOT%{progdir}/searchplugins
|
2008-09-03 04:25:26 +02:00
|
|
|
(cd $RPM_BUILD_ROOT%{progdir}/searchplugins ; tar xjf %{SOURCE1})
|
|
|
|
# browserconfig.properties
|
|
|
|
cat << EOF >> suse-browserconfig.properties
|
2009-05-04 18:28:50 +02:00
|
|
|
browser.startup.homepage=%{default_home_page}
|
|
|
|
browser.startup.homepage_reset=%{default_home_page}
|
2008-09-03 04:25:26 +02:00
|
|
|
EOF
|
|
|
|
install -m0644 suse-browserconfig.properties $RPM_BUILD_ROOT%{progdir}/browserconfig.properties
|
|
|
|
rm suse-browserconfig.properties
|
2008-11-10 00:33:36 +01:00
|
|
|
# SCHEMA File
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{gnome_confdir}/gconf/schemas
|
|
|
|
install -m 644 %{SOURCE4} \
|
2009-07-04 13:31:18 +02:00
|
|
|
$RPM_BUILD_ROOT%{gnome_confdir}/gconf/schemas/
|
2008-11-10 00:33:36 +01:00
|
|
|
%find_gconf_schemas
|
2009-07-04 13:31:18 +02:00
|
|
|
# install the system extension
|
|
|
|
mkdir susefox\@opensuse.org
|
|
|
|
(cd susefox\@opensuse.org; unzip ../susefox.xpi)
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/
|
|
|
|
cp -r susefox\@opensuse.org \
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/
|
2008-09-03 04:25:26 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2008-11-10 00:33:36 +01:00
|
|
|
|
|
|
|
%pre -f %{name}.schemas_pre
|
|
|
|
|
|
|
|
%preun -f %{name}.schemas_preun
|
2009-07-04 13:31:18 +02:00
|
|
|
|
2008-11-10 00:33:36 +01:00
|
|
|
%posttrans -f %{name}.schemas_posttrans
|
|
|
|
|
|
|
|
%files -f %{name}.schemas_list
|
|
|
|
%defattr(-,root,root)
|
2009-07-04 13:31:18 +02:00
|
|
|
%doc COPYING.susefox
|
|
|
|
%doc ../COPYING
|
2008-09-03 04:25:26 +02:00
|
|
|
%{progdir}/defaults/preferences/firefox-openSUSE.js
|
|
|
|
%{progdir}/defaults/profile/bookmarks.html
|
|
|
|
%{progdir}/browserconfig.properties
|
|
|
|
%{progdir}/searchplugins/*
|
2009-07-04 13:31:18 +02:00
|
|
|
%{progdir}/distribution
|
|
|
|
%{_datadir}/mozilla
|
2009-05-22 15:37:08 +02:00
|
|
|
|
2008-09-03 04:25:26 +02:00
|
|
|
%changelog
|