2008-09-03 04:25:26 +02:00
|
|
|
#
|
2011-06-01 08:06:38 +02:00
|
|
|
# spec file for package MozillaFirefox-branding-openSUSE
|
2008-09-03 04:25:26 +02:00
|
|
|
#
|
2011-06-06 14:07:55 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-06-01 08:06:38 +02:00
|
|
|
# Copyright (c) 2008-2011 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
|
|
|
|
|
2011-06-01 08:06:38 +02:00
|
|
|
BuildRequires: MozillaFirefox bc unzip zip
|
2011-10-20 22:33:48 +02:00
|
|
|
BuildRequires: bc unzip zip
|
2011-06-06 14:07:55 +02:00
|
|
|
|
2008-09-03 04:25:26 +02:00
|
|
|
Name: MozillaFirefox-branding-openSUSE
|
2009-12-16 13:30:13 +01:00
|
|
|
License: BSD3c(or similar) ; GPLv2+
|
2011-06-01 08:06:38 +02:00
|
|
|
Version: 5.0
|
2011-10-20 22:33:48 +02:00
|
|
|
Release: 3
|
2008-09-03 04:25:26 +02:00
|
|
|
Summary: openSUSE branding of MozillaFirefox
|
|
|
|
Group: Productivity/Networking/Web/Browsers
|
2011-10-20 22:33:48 +02:00
|
|
|
Source: susefox-20111020.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
|
2009-12-15 11:33:22 +01:00
|
|
|
Source4: firefox.schemas
|
2009-07-04 13:31:18 +02:00
|
|
|
Source5: distribution.ini.in
|
|
|
|
Source6: %{name}-COPYING
|
2011-06-01 08:06:38 +02:00
|
|
|
Source7: all-openSUSE.js
|
2008-09-03 04:25:26 +02:00
|
|
|
Provides: MozillaFirefox-branding = %{version}
|
2011-06-01 08:06:38 +02:00
|
|
|
PreReq: MozillaFirefox >= 4.99
|
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 progdir %{_prefix}/%_lib/firefox
|
|
|
|
%define libgssapi libgssapi_krb5.so.2
|
2009-07-04 13:31:18 +02:00
|
|
|
%define suseversion %(echo -e "scale=1\\n%{suse_version}/100" | bc 2>/dev/null)
|
2011-10-20 22:33:48 +02:00
|
|
|
# HINT: default homepage is a property now included in susefox
|
2011-06-01 08:06:38 +02:00
|
|
|
#%define gconf_confdir %{_sysconfdir}/gconf
|
|
|
|
#%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
|
2010-10-26 09:45:16 +02:00
|
|
|
%setup -n susefox -q
|
2009-07-04 13:31:18 +02:00
|
|
|
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
|
2011-06-01 08:06:38 +02:00
|
|
|
install -d $RPM_BUILD_ROOT%{progdir}/defaults/pref
|
2008-09-03 04:25:26 +02:00
|
|
|
sed -e 's,GSSAPI,%{libgssapi},g' \
|
|
|
|
%{SOURCE3} > suse-default-prefs
|
2011-06-01 08:06:38 +02:00
|
|
|
install -m0644 suse-default-prefs $RPM_BUILD_ROOT%{progdir}/defaults/pref/firefox-openSUSE.js
|
2008-09-03 04:25:26 +02:00
|
|
|
rm suse-default-prefs
|
2011-06-01 08:06:38 +02:00
|
|
|
install -m0644 %{SOURCE7} $RPM_BUILD_ROOT%{progdir}/defaults/pref/
|
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})
|
2009-12-16 13:30:13 +01:00
|
|
|
# SCHEMA file
|
2011-06-01 08:06:38 +02:00
|
|
|
#mkdir -p $RPM_BUILD_ROOT%{gconf_confdir}/schemas
|
|
|
|
#install -m 644 %{SOURCE4} \
|
|
|
|
# $RPM_BUILD_ROOT%{gconf_confdir}/schemas/
|
|
|
|
#%%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
|
|
|
|
2011-06-01 08:06:38 +02:00
|
|
|
#%pre -f %{name}.schemas_pre
|
2009-12-15 11:33:22 +01:00
|
|
|
|
2011-06-01 08:06:38 +02:00
|
|
|
#%preun -f %{name}.schemas_preun
|
2009-12-15 11:33:22 +01:00
|
|
|
|
2011-06-01 08:06:38 +02:00
|
|
|
#%posttrans -f %{name}.schemas_posttrans
|
2009-12-15 11:33:22 +01:00
|
|
|
|
2011-06-01 08:06:38 +02:00
|
|
|
#%files -f %{name}.schemas_list
|
2011-06-06 14:07:55 +02:00
|
|
|
|
2011-06-01 08:06:38 +02:00
|
|
|
%files
|
2008-11-10 00:33:36 +01:00
|
|
|
%defattr(-,root,root)
|
2009-07-04 13:31:18 +02:00
|
|
|
%doc COPYING.susefox
|
|
|
|
%doc ../COPYING
|
2011-06-27 16:37:27 +02:00
|
|
|
%dir %{progdir}/defaults/pref
|
2011-06-01 08:06:38 +02:00
|
|
|
%{progdir}/defaults/pref/all-openSUSE.js
|
|
|
|
%{progdir}/defaults/pref/firefox-openSUSE.js
|
|
|
|
%dir %{progdir}/defaults/profile/
|
2008-09-03 04:25:26 +02:00
|
|
|
%{progdir}/defaults/profile/bookmarks.html
|
|
|
|
%{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
|