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
|
|
|
#
|
2019-04-23 11:16:31 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-01-31 09:28:47 +01:00
|
|
|
# Copyright (c) 2008-2013 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.
|
|
|
|
|
2019-04-23 11:16:31 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-09-03 04:25:26 +02:00
|
|
|
#
|
|
|
|
|
2011-12-21 14:19:24 +01:00
|
|
|
|
2008-09-03 04:25:26 +02:00
|
|
|
Name: MozillaFirefox-branding-openSUSE
|
2012-03-16 13:18:19 +01:00
|
|
|
BuildRequires: bc
|
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: zip
|
2019-04-23 11:16:31 +02:00
|
|
|
Version: 60
|
2011-12-21 14:17:34 +01:00
|
|
|
Release: 0
|
2008-09-03 04:25:26 +02:00
|
|
|
Summary: openSUSE branding of MozillaFirefox
|
2018-04-01 11:35:25 +02:00
|
|
|
License: BSD-3-Clause AND GPL-2.0-or-later
|
2008-09-03 04:25:26 +02:00
|
|
|
Group: Productivity/Networking/Web/Browsers
|
2016-12-23 14:46:17 +01:00
|
|
|
Url: http://www.opensuse.org
|
2012-06-26 23:32:11 +02:00
|
|
|
Source: susefox-20120626.tar.bz2
|
2011-12-21 14:17:34 +01:00
|
|
|
Source1: opensuse-software.xml.in
|
2016-12-23 14:46:17 +01:00
|
|
|
Source2: all-openSUSE.js
|
2008-09-03 04:25:26 +02:00
|
|
|
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-10-20 22:47:12 +02:00
|
|
|
Supplements: packageand(MozillaFirefox:branding-openSUSE)
|
2012-03-16 13:18:19 +01:00
|
|
|
Supplements: packageand(firefox-esr:branding-openSUSE)
|
2008-09-03 04:25:26 +02:00
|
|
|
Provides: MozillaFirefox-branding = %{version}
|
2012-03-16 13:18:19 +01:00
|
|
|
Provides: firefox-esr-branding = %{version}
|
2008-10-22 18:24:28 +02:00
|
|
|
Conflicts: otherproviders(MozillaFirefox-branding)
|
2012-03-16 13:18:19 +01:00
|
|
|
Conflicts: otherproviders(firefox-esr-branding)
|
2008-09-03 04:25:26 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-12-23 14:46:17 +01:00
|
|
|
|
|
|
|
%global progdir %{_libdir}/firefox
|
|
|
|
%global libgssapi libgssapi_krb5.so.2
|
|
|
|
|
2015-07-27 12:02:16 +02:00
|
|
|
%if %suse_version == 1315
|
2019-05-05 09:32:29 +02:00
|
|
|
# Leap 42
|
|
|
|
%if %sle_version == 120100
|
|
|
|
%global suseversion 42.1
|
|
|
|
%else
|
|
|
|
%if %sle_version == 120200
|
|
|
|
%global suseversion 42.2
|
|
|
|
%else
|
|
|
|
%if %sle_version == 120300
|
|
|
|
%global suseversion 42.3
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
2017-04-28 08:28:59 +02:00
|
|
|
%endif
|
2019-05-05 09:32:29 +02:00
|
|
|
%if %suse_version == 1500
|
|
|
|
# Leap 15
|
|
|
|
%if %sle_version == 150000
|
|
|
|
%global suseversion 15.0
|
|
|
|
%else
|
|
|
|
%if %sle_version == 150100
|
|
|
|
%global suseversion 15.1
|
|
|
|
%endif
|
|
|
|
%endif
|
2016-07-11 12:03:08 +02:00
|
|
|
%endif
|
2019-05-05 09:32:29 +02:00
|
|
|
|
2018-04-01 11:35:25 +02:00
|
|
|
%if %suse_version >= 1550
|
2019-05-05 09:32:29 +02:00
|
|
|
# Tumbleweed
|
|
|
|
%global suseversion Tumbleweed
|
2015-12-12 11:21:15 +01:00
|
|
|
%else
|
2019-05-05 09:32:29 +02:00
|
|
|
%global suseversion %(echo -e "scale=1\\n%{suse_version}/100" | bc 2>/dev/null)
|
2018-04-01 11:35:25 +02:00
|
|
|
%endif
|
2019-05-05 09:32:29 +02:00
|
|
|
|
2018-04-01 11:35:25 +02:00
|
|
|
# Leap or not
|
|
|
|
%if 0%{?sle_version}
|
2019-05-05 09:32:29 +02:00
|
|
|
%global prjname Leap:%{suseversion}
|
|
|
|
%global distname openSUSE Leap
|
2018-04-01 11:35:25 +02:00
|
|
|
%else
|
2019-05-05 09:32:29 +02:00
|
|
|
%global prjname %{suseversion}
|
|
|
|
%global distname openSUSE
|
2015-12-12 11:21:15 +01:00
|
|
|
%endif
|
2016-12-23 14:46:17 +01:00
|
|
|
|
|
|
|
%global homepage https://www.opensuse.org/searchPage/
|
|
|
|
%global susefox 0
|
|
|
|
%global susefox_guid {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
2008-09-03 04:25:26 +02:00
|
|
|
|
|
|
|
%description
|
2016-12-23 14:46:17 +01:00
|
|
|
This package provides openSUSE look and feel for Firefox.
|
2008-09-03 04:25:26 +02:00
|
|
|
|
|
|
|
%prep
|
2009-07-04 13:31:18 +02:00
|
|
|
cp -a %{SOURCE6} COPYING
|
2015-07-27 12:02:16 +02:00
|
|
|
%if %susefox
|
2010-10-26 09:45:16 +02:00
|
|
|
%setup -n susefox -q
|
2009-07-04 13:31:18 +02:00
|
|
|
mv COPYING COPYING.susefox
|
2015-07-27 12:02:16 +02:00
|
|
|
%endif
|
2008-09-03 04:25:26 +02:00
|
|
|
|
|
|
|
%build
|
2015-07-27 12:02:16 +02:00
|
|
|
%if %susefox
|
2009-07-04 13:31:18 +02:00
|
|
|
./build.sh
|
2015-07-27 12:02:16 +02:00
|
|
|
%endif
|
2008-09-03 04:25:26 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
# apply SUSE defaults
|
|
|
|
sed -e 's,GSSAPI,%{libgssapi},g' \
|
2016-12-23 14:46:17 +01:00
|
|
|
%{SOURCE3} > firefox-openSUSE.js
|
|
|
|
|
|
|
|
install -d %{buildroot}%{progdir}/browser/defaults/preferences/
|
|
|
|
install -m 0644 firefox-openSUSE.js %{buildroot}%{progdir}/browser/defaults/preferences/
|
|
|
|
|
|
|
|
install -d %{buildroot}%{progdir}/defaults/pref/
|
2017-06-05 09:20:33 +02:00
|
|
|
install -m 0644 %{SOURCE2} %{buildroot}%{progdir}/defaults/pref/
|
2016-12-23 14:46:17 +01:00
|
|
|
|
|
|
|
# distribution.ini -- openSUSE bookmarks, homepage and Mozilla partner info
|
|
|
|
sed -e 's,%%VERSION%%,%{suseversion},g
|
|
|
|
s,%%HOMEPAGE%%,%{homepage},g
|
|
|
|
s,%%DIST%%,%{distname},g' \
|
|
|
|
%{SOURCE5} > distribution.ini
|
|
|
|
|
|
|
|
install -d %{buildroot}%{progdir}/distribution/
|
|
|
|
install -m 0644 distribution.ini %{buildroot}%{progdir}/distribution/
|
|
|
|
|
|
|
|
# openSUSE software search plugin
|
|
|
|
sed -e 's,%%PRJNAME%%,%{prjname},g' \
|
|
|
|
%{SOURCE1} > opensuse-software.xml
|
|
|
|
|
|
|
|
install -d %{buildroot}%{progdir}/distribution/searchplugins/common/
|
|
|
|
install -m 0644 opensuse-software.xml %{buildroot}%{progdir}/distribution/searchplugins/common/
|
|
|
|
|
2015-07-27 12:02:16 +02:00
|
|
|
%if %susefox
|
2009-07-04 13:31:18 +02:00
|
|
|
# install the system extension
|
2016-12-23 14:46:17 +01:00
|
|
|
unzip -u susefox\@opensuse.org ../susefox.xpi
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/mozilla/extensions/%{susefox_guid}/
|
2009-07-04 13:31:18 +02:00
|
|
|
cp -r susefox\@opensuse.org \
|
2016-12-23 14:46:17 +01:00
|
|
|
%{buildroot}%{_datadir}/mozilla/extensions/%{susefox_guid}/
|
2015-07-27 12:02:16 +02:00
|
|
|
%endif
|
2008-09-03 04:25:26 +02:00
|
|
|
|
2011-06-01 08:06:38 +02:00
|
|
|
%files
|
2008-11-10 00:33:36 +01:00
|
|
|
%defattr(-,root,root)
|
2015-07-27 12:02:16 +02:00
|
|
|
%if %susefox
|
2009-07-04 13:31:18 +02:00
|
|
|
%doc COPYING.susefox
|
|
|
|
%doc ../COPYING
|
2015-07-27 12:02:16 +02:00
|
|
|
%{_datadir}/mozilla
|
|
|
|
%endif
|
2016-12-23 14:46:17 +01:00
|
|
|
|
|
|
|
%{progdir}
|
2009-05-22 15:37:08 +02:00
|
|
|
|
2008-09-03 04:25:26 +02:00
|
|
|
%changelog
|