2008-08-11 04:31:01 +02:00
|
|
|
#
|
2010-10-15 17:18:24 +02:00
|
|
|
# spec file for package epiphany-branding-openSUSE (Version 11.4)
|
2008-08-11 04:31:01 +02:00
|
|
|
#
|
2010-02-19 16:28:44 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-08-11 04:31:01 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2010-01-18 17:41:16 +01:00
|
|
|
|
2010-02-19 16:28:44 +01:00
|
|
|
%define build_openSUSE 1
|
|
|
|
%define build_SLED 0
|
2008-08-11 04:31:01 +02:00
|
|
|
|
2010-10-11 10:09:17 +02:00
|
|
|
# Do not edit this auto generated file! Edit epiphany-branding.spec.in.
|
2010-10-15 17:18:24 +02:00
|
|
|
|
2008-08-11 04:31:01 +02:00
|
|
|
Name: epiphany-branding-openSUSE
|
2010-02-19 16:28:44 +01:00
|
|
|
License: GPLv2+
|
2010-10-11 10:09:17 +02:00
|
|
|
Version: 11.4
|
2010-02-19 16:28:44 +01:00
|
|
|
Release: 1
|
2008-08-11 04:31:01 +02:00
|
|
|
Summary: openSUSE branding of epiphany
|
|
|
|
Group: Productivity/Networking/Web/Browsers
|
2010-02-19 16:28:44 +01:00
|
|
|
Source0: COPYING
|
|
|
|
Source1: branding.conf.in
|
2008-08-11 04:31:01 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE opensuse-bookmarks.patch vuntz@novell.com -- Add openSUSE bookmarks
|
|
|
|
Patch0: opensuse-bookmarks.patch
|
2010-02-19 16:28:44 +01:00
|
|
|
# PATCH-FEATURE-SLED sled-bookmarks.patch vuntz@novell.com -- Add SLED bookmarks
|
|
|
|
Patch1: sled-bookmarks.patch
|
2008-08-11 04:31:01 +02:00
|
|
|
# To be in sync with upstream defaults, do branding as a patch for upstream file.
|
|
|
|
# WARNING: As this package conflicts with epiphany-branding-openSUSE, you cannot
|
|
|
|
# reuse build root. You have to build in a clean build root every time!
|
|
|
|
BuildRequires: epiphany-branding-upstream
|
2010-01-16 03:16:15 +01:00
|
|
|
BuildRequires: epiphany
|
2010-02-19 16:28:44 +01:00
|
|
|
%if 0%{suse_version} > 1110
|
|
|
|
BuildRequires: lsb-release
|
|
|
|
%else
|
|
|
|
BuildRequires: lsb
|
|
|
|
%endif
|
|
|
|
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-openSUSE)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2008-08-11 04:31:01 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides openSUSE Look and Feel for Epiphany.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
cp -a %{_datadir}/epiphany/default-bookmarks.rdf .
|
2010-02-19 16:28:44 +01:00
|
|
|
%if %build_openSUSE
|
2009-08-26 16:53:16 +02:00
|
|
|
%patch0
|
2010-02-19 16:28:44 +01:00
|
|
|
%endif
|
|
|
|
%if %build_SLED
|
|
|
|
%patch1
|
|
|
|
%endif
|
|
|
|
cp -a %{SOURCE0} .
|
2008-08-11 04:31:01 +02:00
|
|
|
|
|
|
|
%build
|
2010-02-19 16:28:44 +01:00
|
|
|
sed "s,@distroversion@,%{distro_version},g;s,@pkgversion@,%{epiphany_version},g" %{SOURCE1} > branding.conf
|
2008-08-11 04:31:01 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
# custom bookmarks
|
2010-02-19 16:28:44 +01:00
|
|
|
install -D -m0644 default-bookmarks.rdf %{buildroot}%{_datadir}/epiphany/default-bookmarks.rdf
|
|
|
|
# user agent
|
|
|
|
install -D -m0644 branding.conf %{buildroot}%{_datadir}/epiphany/branding.conf
|
2008-08-11 04:31:01 +02:00
|
|
|
|
|
|
|
%clean
|
2010-02-19 16:28:44 +01:00
|
|
|
rm -rf %{buildroot}
|
2008-08-11 04:31:01 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2010-02-19 16:28:44 +01:00
|
|
|
%doc COPYING
|
2008-08-11 04:31:01 +02:00
|
|
|
%{_datadir}/epiphany/default-bookmarks.rdf
|
2010-02-19 16:28:44 +01:00
|
|
|
%{_datadir}/epiphany/branding.conf
|
2008-08-11 04:31:01 +02:00
|
|
|
|
|
|
|
%changelog
|