File gnome-control-center-branding-openSUSE.spec of Package gnome-control-center-branding-openSUSE
#
# spec file for package gnome-control-center-branding-openSUSE
#
# 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 http://bugs.opensuse.org/
#
Name: gnome-control-center-branding-openSUSE
Version: 12.1
Release: 1
License: GPLv2+
Summary: The GNOME Control Center -- openSUSE Definition of Shell Content
Url: http://www.gnome.org
Group: System/GUI/GNOME
Source0: COPYING
# PATCH-FIX-OPENSUSE gnome-control-center-branding-add-YaST.patch vuntz@opensuse.org -- Add YaST to the control center shell. Requires gnome-control-center-allow-yast-in-shell.patch in g-c-c to actually work, though
Patch0: gnome-control-center-branding-add-YaST.patch
BuildRequires: gnome-control-center
# To be in sync with upstream defaults, do branding as a patch for upstream file.
# WARNING: As this package conflicts with gnome-control-center-branding-openSUSE, you cannot
# reuse build root. You have to build in a clean build root every time!
BuildRequires: gnome-control-center-branding-upstream
%define gnome_control_center_version %(rpm -q --qf '%%{version}' gnome-control-center)
Requires: gnome-control-center = %{gnome_control_center_version}
Supplements: packageand(gnome-control-center:branding-openSUSE)
Provides: gnome-control-center-branding = %{gnome_control_center_version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Conflicts: otherproviders(gnome-control-center-branding)
%description
The control center is GNOME's main interface for configuration of
various aspects of your desktop.
This package provides the openSUSE definition of what appears in the
control center.
%prep
%setup -q -T -c %{name}-%{version}
cp -a %{SOURCE0} COPYING
# We will base the shell content on upstream content:
cp -a %{_sysconfdir}/xdg/menus/*.menu .
%patch0 -p0
%build
%install
install -d %{buildroot}%{_sysconfdir}/xdg/menus
install -m0644 *.menu %{buildroot}%{_sysconfdir}/xdg/menus/
%files
%defattr (-, root, root)
%doc COPYING
%{_sysconfdir}/xdg/menus/gnomecc.menu
%changelog