91 lines
3.1 KiB
RPMSpec
91 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package MozillaFirefox-branding-openSUSE (Version 3.0.1)
|
|
#
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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
|
|
|
|
BuildRequires: MozillaFirefox-branding-upstream
|
|
BuildRequires: MozillaFirefox
|
|
|
|
Name: MozillaFirefox-branding-openSUSE
|
|
License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
|
|
Version: 3.0.1
|
|
Release: 2
|
|
Summary: openSUSE branding of MozillaFirefox
|
|
Group: Productivity/Networking/Web/Browsers
|
|
Source1: search-addons.tar.bz2
|
|
Source2: bookmarks.html.suse
|
|
Source3: firefox-suse-default-prefs.js
|
|
Provides: MozillaFirefox-branding = %{version}
|
|
Supplements: packageand(MozillaFirefox:branding-openSUSE)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%define default_home_page http://www.opensuse.org/
|
|
%define progdir %{_prefix}/%_lib/firefox
|
|
%define libgssapi libgssapi_krb5.so.2
|
|
|
|
%description
|
|
This package provides openSUSE Look and Feel for MozillaFirefox.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Wolfgang Rosenauer <wr@rosenauer.org>
|
|
|
|
%prep
|
|
|
|
%build
|
|
|
|
%install
|
|
install -d $RPM_BUILD_ROOT/%{progdir}
|
|
# custom bookmarks
|
|
install -d $RPM_BUILD_ROOT/%{progdir}/defaults/profile
|
|
install -m0644 %{SOURCE2} $RPM_BUILD_ROOT/%{progdir}/defaults/profile/bookmarks.html
|
|
# apply SUSE defaults
|
|
install -d $RPM_BUILD_ROOT/%{progdir}/defaults/preferences
|
|
sed -e 's,GSSAPI,%{libgssapi},g' \
|
|
%{SOURCE3} > suse-default-prefs
|
|
install -m0644 suse-default-prefs $RPM_BUILD_ROOT/%{progdir}/defaults/preferences/firefox-openSUSE.js
|
|
rm suse-default-prefs
|
|
# search plugins
|
|
install -d $RPM_BUILD_ROOT/%{progdir}/searchplugins
|
|
(cd $RPM_BUILD_ROOT%{progdir}/searchplugins ; tar xjf %{SOURCE1})
|
|
# browserconfig.properties
|
|
sed "s;browser.startup.homepage=.*;browser.startup.homepage=%{default_home_page};g
|
|
s;browser.startup.homepage_reset=.*;browser.startup.homepage_reset=%{default_home_page};g" \
|
|
%{progdir}/browserconfig.properties > suse-browserconfig.properties
|
|
cat << EOF >> suse-browserconfig.properties
|
|
startup.homepage_override_url=%{default_home_page}
|
|
EOF
|
|
install -m0644 suse-browserconfig.properties $RPM_BUILD_ROOT%{progdir}/browserconfig.properties
|
|
rm suse-browserconfig.properties
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{progdir}/defaults/preferences/firefox-openSUSE.js
|
|
%{progdir}/defaults/profile/bookmarks.html
|
|
%{progdir}/browserconfig.properties
|
|
%{progdir}/searchplugins/*
|
|
|
|
%changelog
|
|
* Mon Aug 04 2008 wr@rosenauer.org
|
|
- some polishing and minor changes
|
|
* Tue Jul 29 2008 vuntz@novell.com
|
|
- New package (bnc#390752).
|