File gnome-menus-branding-SLED.spec of Package gnome-menus-branding-openSUSE

#
# spec file for package gnome-menus-branding-SLED (Version 11.4)
#
# Copyright (c) 2010 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 1

# Do not edit this auto generated file! Edit gnome-menus-branding.spec.in.

Name:           gnome-menus-branding-SLED
Version:        11.4
Release:        1
Group:          System/GUI/GNOME
License:        BSD3c
Summary:        SLED branding of gnome-menus
Source:         gnome-menus-branding-COPYING
Source1:        gnome-menus-branding-settings.menu
# PATCH-FIX-OPENSUSE gnome-menus-branding-remove-X-SuSE-ControlCenter.patch vuntz@opensuse.org -- Remove the desktop files with X-SuSE-ControlCenter-* categories from the Applications menu
Patch0:         gnome-menus-branding-remove-X-SuSE-ControlCenter.patch
# To be in sync with upstream defaults, do branding as a patch for upstream file.
# WARNING: As this package conflicts with gnome-menus-branding-SLED, you cannot
#          reuse build root. You have to build in a clean build root every time!
BuildRequires:  gnome-menus-branding-upstream
BuildRequires:  gnome-menus
%define gnome_menus_version %(rpm -q --qf '%%{version}-%%{release}' gnome-menus)
Provides:       gnome-menus-branding = %{gnome_menus_version}
Conflicts:      otherproviders(gnome-menus-branding)
Supplements:    packageand(gnome-menus:branding-SLED)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This package provides SLED menu look for gnome-menus.

%prep
%setup -q -T -c %{name}-%{version}
cp -a %{S:0} COPYING
# We will base menus on upstream menus:
cp -a %{_sysconfdir}/xdg/menus/*.menu .
# Override settings.menu with our version. It doesn't make sense to patch it,
# they're just completely different
cp -a %{S:1} settings.menu
%patch0 -p0

%build

%install
install -d $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus
install -m0644 *.menu $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
%doc COPYING
%{_sysconfdir}/xdg/menus/gnome-applications.menu
%{_sysconfdir}/xdg/menus/settings.menu

%changelog
openSUSE Build Service is sponsored by