2010-02-19 16:28:44 +01:00
|
|
|
#
|
2012-05-16 09:02:28 +02:00
|
|
|
# spec file for package epiphany-branding-%{branding_name}
|
2010-02-19 16:28:44 +01:00
|
|
|
#
|
2012-05-16 09:02:28 +02:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-02-19 16:28:44 +01: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/
|
|
|
|
#
|
|
|
|
|
2010-10-11 10:09:17 +02:00
|
|
|
|
2010-02-19 16:28:44 +01:00
|
|
|
%define build_openSUSE 0
|
|
|
|
%define build_SLED 0
|
|
|
|
|
|
|
|
Name: epiphany-branding-%{branding_name}
|
2012-05-23 16:28:13 +02:00
|
|
|
Version: 12.2
|
|
|
|
Release: 0
|
2011-07-06 19:06:16 +02:00
|
|
|
Summary: GNOME Web Browser -- %{branding_name} default bookmarks and user agent string
|
2012-05-23 16:28:13 +02:00
|
|
|
License: GPL-2.0+
|
2010-02-19 16:28:44 +01:00
|
|
|
Group: Productivity/Networking/Web/Browsers
|
2011-07-06 19:06:16 +02:00
|
|
|
Url: http://www.gnome.org/projects/epiphany/
|
2010-02-19 16:28:44 +01:00
|
|
|
Source0: COPYING
|
|
|
|
Source1: branding.conf.in
|
|
|
|
# PATCH-FEATURE-OPENSUSE opensuse-bookmarks.patch vuntz@novell.com -- Add openSUSE bookmarks
|
|
|
|
Patch0: opensuse-bookmarks.patch
|
|
|
|
# PATCH-FEATURE-SLED sled-bookmarks.patch vuntz@novell.com -- Add SLED bookmarks
|
|
|
|
Patch1: sled-bookmarks.patch
|
2013-09-08 00:17:46 +02:00
|
|
|
BuildRequires: epiphany >= 3.9.90
|
2010-02-19 16:28:44 +01:00
|
|
|
# To be in sync with upstream defaults, do branding as a patch for upstream file.
|
|
|
|
# WARNING: As this package conflicts with epiphany-branding-%{branding_name}, you cannot
|
|
|
|
# reuse build root. You have to build in a clean build root every time!
|
|
|
|
BuildRequires: epiphany-branding-upstream
|
|
|
|
%if 0%{suse_version} > 1110
|
|
|
|
BuildRequires: lsb-release
|
|
|
|
%else
|
|
|
|
BuildRequires: lsb
|
|
|
|
%endif
|
|
|
|
BuildRequires: suse-release
|
|
|
|
%define distro_version %(lsb_release -r -s)
|
2011-10-13 15:27:05 +02:00
|
|
|
%define epiphany_version %(rpm -q --qf '%%{version}' epiphany)
|
2011-07-06 19:06:16 +02:00
|
|
|
Requires: epiphany = %{epiphany_version}
|
2010-02-19 16:28:44 +01:00
|
|
|
Provides: epiphany-branding = %{epiphany_version}
|
|
|
|
Conflicts: otherproviders(epiphany-branding)
|
|
|
|
Supplements: packageand(epiphany:branding-%{branding_name})
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
2011-07-06 19:06:16 +02:00
|
|
|
Epiphany is a Web Browser for the GNOME Desktop. Its principles are
|
|
|
|
simplicity and standards compliance.
|
|
|
|
|
|
|
|
This package provides the %{branding_name} default bookmarks and user
|
|
|
|
agent string.
|
2010-02-19 16:28:44 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
cp -a %{_datadir}/epiphany/default-bookmarks.rdf .
|
|
|
|
%if %build_openSUSE
|
|
|
|
%patch0
|
|
|
|
%endif
|
|
|
|
%if %build_SLED
|
|
|
|
%patch1
|
|
|
|
%endif
|
|
|
|
cp -a %{SOURCE0} .
|
|
|
|
|
|
|
|
%build
|
|
|
|
sed "s,@distroversion@,%{distro_version},g;s,@pkgversion@,%{epiphany_version},g" %{SOURCE1} > branding.conf
|
|
|
|
|
|
|
|
%install
|
|
|
|
# custom bookmarks
|
|
|
|
install -D -m0644 default-bookmarks.rdf %{buildroot}%{_datadir}/epiphany/default-bookmarks.rdf
|
|
|
|
# user agent
|
|
|
|
install -D -m0644 branding.conf %{buildroot}%{_datadir}/epiphany/branding.conf
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING
|
|
|
|
%{_datadir}/epiphany/default-bookmarks.rdf
|
|
|
|
%{_datadir}/epiphany/branding.conf
|
|
|
|
|
|
|
|
%changelog
|