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

#
# spec file for package epiphany-branding-SLED (Version 11.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


Name:           epiphany-branding-SLED
License:        GPL v2 or later
Version:        11.1
Release:        1
Summary:        SLED branding of epiphany
Group:          Productivity/Networking/Web/Browsers
Source:         COPYING
# PATCH-FEATURE-SLED sled-bookmarks.patch vuntz@novell.com -- Add SLED bookmarks
Patch0:         sled-bookmarks.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       epiphany-branding = 2.22.2
Conflicts:      otherproviders(epiphany-branding)
Supplements:    packageand(epiphany:branding-SLED)
BuildArch:      noarch
# 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
# For directory ownership:
BuildRequires:  epiphany

%description
This package provides SLED Look and Feel for Epiphany.



%prep
cp -a %{_datadir}/epiphany/default-bookmarks.rdf .
%patch
cp -a %{S:0} .

%build

%install
install -d $RPM_BUILD_ROOT/%{_datadir}/epiphany/chrome/branding
# custom bookmarks
install -m0644 default-bookmarks.rdf $RPM_BUILD_ROOT/%{_datadir}/epiphany
# chrome branding
sed "s;\(vendorShortName *\)\"GNOME\";\1\"SLED\";" %{_datadir}/epiphany/chrome/branding/brand.dtd > brand.dtd
install -m0644 brand.dtd $RPM_BUILD_ROOT/%{_datadir}/epiphany/chrome/branding
sed "s;vendorShortName=GNOME;vendorShortName=SLED;" %{_datadir}/epiphany/chrome/branding/brand.properties > brand.properties
install -m0644 brand.properties $RPM_BUILD_ROOT/%{_datadir}/epiphany/chrome/branding

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING
%{_datadir}/epiphany/default-bookmarks.rdf
%{_datadir}/epiphany/chrome/branding/*

%changelog
* Tue Nov 04 2008 vuntz@novell.com
- Bump version to 11.1. Part of bnc#440849.
* Mon Oct 06 2008 sbrabec@suse.cz
- Conflict with other branding providers (FATE#304881).
* Tue Sep 16 2008 vuntz@suse.de
- Add missing COPYING (bnc#426796)
- Clean up packaging.
* Thu Sep 11 2008 vuntz@suse.de
- New package, branched from epiphany-branding-openSUSE.
- Add SLED documentation bookmark. (fate#305003)