Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2
MozillaFirefox-branding-openSUSE
MozillaFirefox-branding-openSUSE.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File MozillaFirefox-branding-openSUSE.spec of Package MozillaFirefox-branding-openSUSE
# # spec file for package MozillaFirefox-branding-openSUSE # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2008-2013 Wolfgang Rosenauer # # 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/ # Name: MozillaFirefox-branding-openSUSE BuildRequires: bc BuildRequires: unzip BuildRequires: zip Version: 40 Release: 0 Summary: openSUSE branding of MozillaFirefox License: BSD-3-Clause and GPL-2.0+ Group: Productivity/Networking/Web/Browsers Url: http://www.opensuse.org/ Source: susefox-20120626.tar.bz2 Source1: opensuse-software.xml.in Source2: bookmarks.html.suse Source3: firefox-suse-default-prefs.js Source4: firefox.schemas Source5: distribution.ini.in Source6: %{name}-COPYING Source7: all-openSUSE.js Source8: duckduckgo.xml Supplements: packageand(MozillaFirefox:branding-openSUSE) Supplements: packageand(firefox-esr:branding-openSUSE) Provides: MozillaFirefox-branding = %{version} Provides: firefox-esr-branding = %{version} Conflicts: otherproviders(MozillaFirefox-branding) Conflicts: otherproviders(firefox-esr-branding) BuildRoot: %{_tmppath}/%{name}-%{version}-build %define progdir %{_libdir}/firefox %define libgssapi libgssapi_krb5.so.2 %if %suse_version == 1315 # Leap 42 %define distname openSUSE Leap %if %sle_version == 120100 %define suseversion 42.1 %else %if %sle_version == 120200 %define suseversion 42.2 %endif %endif %else %define distname openSUSE %if %suse_version >= 1330 # Tumbleweed %define suseversion Tumbleweed %else %define suseversion %(echo -e "scale=1\\n%{suse_version}/100" | bc 2>/dev/null) %endif %endif %define homepage https://www.opensuse.org/searchPage/ %define susefox 0 %description This package provides openSUSE Look and Feel for Firefox. %prep cp -a %{SOURCE6} COPYING %if %susefox %setup -n susefox -q mv COPYING COPYING.susefox %endif %build %if %susefox ./build.sh %endif %install install -d $RPM_BUILD_ROOT%{progdir} install -d $RPM_BUILD_ROOT%{progdir}/browser # custom bookmarks install -d $RPM_BUILD_ROOT%{progdir}/browser/defaults/profile install -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{progdir}/browser/defaults/profile/bookmarks.html # apply SUSE defaults install -d $RPM_BUILD_ROOT%{progdir}/defaults/pref install -d $RPM_BUILD_ROOT%{progdir}/browser/defaults/preferences sed -e 's,GSSAPI,%{libgssapi},g' \ %{SOURCE3} > suse-default-prefs install -m0644 suse-default-prefs $RPM_BUILD_ROOT%{progdir}/browser/defaults/preferences/firefox-openSUSE.js rm suse-default-prefs install -m0644 %{SOURCE7} $RPM_BUILD_ROOT%{progdir}/defaults/pref/ # distribution.ini install -d $RPM_BUILD_ROOT%{progdir}/distribution sed -e 's,%VERSION%,%{suseversion},g s,%HOMEPAGE%,%{homepage},g s,%DIST%,%{distname},g' \ %{SOURCE5} > distribution.ini install -m 0644 distribution.ini $RPM_BUILD_ROOT%{progdir}/distribution/ # search plugins install -d $RPM_BUILD_ROOT%{progdir}/distribution/searchplugins/common/ sed -e 's,%VERSION%,%{suseversion},g' \ %{SOURCE1} > $RPM_BUILD_ROOT%{progdir}/distribution/searchplugins/common/opensuse-software.xml cp %{SOURCE8} $RPM_BUILD_ROOT%{progdir}/distribution/searchplugins/common/ %if %susefox # 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}/ %endif %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %if %susefox %doc COPYING.susefox %doc ../COPYING %{_datadir}/mozilla %endif %dir %{progdir} %dir %{progdir}/defaults/ %dir %{progdir}/defaults/pref %{progdir}/defaults/pref/all-openSUSE.js %dir %{progdir}/browser/ %dir %{progdir}/browser/defaults %dir %{progdir}/browser/defaults/preferences %dir %{progdir}/browser/defaults/profile/ %{progdir}/browser/defaults/preferences/firefox-openSUSE.js %{progdir}/browser/defaults/profile/bookmarks.html %{progdir}/distribution %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor