File PackageKit-branding.spec.in of Package PackageKit-branding-openSUSE
#
# spec file for package PackageKit-branding-%{branding_name} (Version 11.3)
#
# Copyright (c) 2009 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/
#
%define build_openSUSE 0
%define build_SLED 0
Name: PackageKit-branding-%{branding_name}
License: GPL v2 or later
Version: 11.3
Release: 1
Summary: %{branding_name} branding of PackageKit
Group: System/Daemons
Source0: COPYING
# PATCH-FEATURE-OPENSUSE PackageKit-branding-vendor.patch vuntz@opensuse.org -- Update the Vendor.conf file with distro-specific data
Patch0: PackageKit-branding-vendor.patch
# PATCH-FEATURE-OPENSUSE PackageKit-branding-default-config.patch vuntz@opensues.org -- Change some default configuration
Patch1: PackageKit-branding-default-config.patch
# To be in sync with upstream defaults, do branding as a patch for upstream file.
# WARNING: As this package conflicts with PackageKit-branding-%{branding_name}, you cannot
# reuse build root. You have to build in a clean build root every time!
BuildRequires: PackageKit-branding-upstream
BuildRequires: PackageKit
%define packagekit_version %(rpm -q --qf '%%{version}-%%{release}' PackageKit)
Provides: PackageKit-branding = %{packagekit_version}
Conflicts: otherproviders(PackageKit-branding)
Supplements: packageand(PackageKit:branding-%{branding_name})
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This package provides %{branding_name} Look and Feel for PackageKit.
%prep
cp -a %{SOURCE0} .
cp -a %{_sysconfdir}/PackageKit/* .
%patch0
%patch1
%build
%install
install -d %{buildroot}%{_sysconfdir}/PackageKit
# Do the loop this way to make sure we don't forget about any configuration file
for conf in %{_sysconfdir}/PackageKit/*; do
install -m0644 `basename $conf` %{buildroot}%{_sysconfdir}/PackageKit/
done
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING
# We don't build the command-not-found PackageKit utility
#%config(noreplace) %{_sysconfdir}/PackageKit/CommandNotFound.conf
%config(noreplace) %{_sysconfdir}/PackageKit/PackageKit.conf
%{_sysconfdir}/PackageKit/Vendor.conf
%changelog