File epiphany-branding-SLED.spec of Package epiphany-branding-openSUSE

# spec file for package epiphany-branding-SLED
# Copyright (c) 2011 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

%define         build_openSUSE 0
%define         build_SLED 1

# Do not edit this auto generated file! Edit

Name:           epiphany-branding-SLED
License:        GPLv2+
Version:        11.4
Release:        2
Summary:        SLED branding of epiphany
Group:          Productivity/Networking/Web/Browsers
Source0:        COPYING
# PATCH-FEATURE-OPENSUSE opensuse-bookmarks.patch -- Add openSUSE bookmarks
Patch0:         opensuse-bookmarks.patch
# PATCH-FEATURE-SLED sled-bookmarks.patch -- Add SLED bookmarks
Patch1:         sled-bookmarks.patch
# To be in sync with upstream defaults, do branding as a patch for upstream file.
# WARNING: As this package conflicts with epiphany-branding-SLED, you cannot
#          reuse build root. You have to build in a clean build root every time!
BuildRequires:  epiphany-branding-upstream
BuildRequires:  epiphany
%if 0%{suse_version} > 1110
BuildRequires:  lsb-release
BuildRequires:  lsb
BuildRequires:  suse-release
%define distro_version %(lsb_release -r -s)
%define epiphany_version %(rpm -q --qf '%%{version}-%%{release}' epiphany)
Provides:       epiphany-branding = %{epiphany_version}
Conflicts:      otherproviders(epiphany-branding)
Supplements:    packageand(epiphany:branding-SLED)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

This package provides SLED Look and Feel for Epiphany.

cp -a %{_datadir}/epiphany/default-bookmarks.rdf .
%if %build_openSUSE
%if %build_SLED
cp -a %{SOURCE0} .

sed "s,@distroversion@,%{distro_version},g;s,@pkgversion@,%{epiphany_version},g" %{SOURCE1} > branding.conf

# 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

rm -rf %{buildroot}


openSUSE Build Service is sponsored by