File gnome-menus-branding-SLE.spec of Package gnome-menus-branding-SLE

# spec file for package gnome-menus-branding-SLE
# Copyright (c) 2014 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

%define         build_openSUSE 0
%define         build_SLE 1

Name:           gnome-menus-branding-SLE
Version:        12
Release:        0
Summary:        The GNOME Desktop Menu -- SLE Menus Definitions
License:        LGPL-2.1+
Group:          System/GUI/GNOME
Source:         gnome-menus-branding-COPYING
# PATCH-FIX-OPENSUSE gnome-menus-branding-remove-X-SuSE-ControlCenter.patch -- Remove the desktop files with X-SuSE-YaST category from the Applications menu and explicitly add YaST launcher
Patch0:         gnome-menus-branding-remove-X-SuSE-ControlCenter.patch
# PATCH-FIX-SLE gnome-menus-branding-cleanup.patch -- Cleanup SLE menu
Patch1:         gnome-menus-branding-cleanup.patch
BuildRequires:  gnome-menus
# To be in sync with upstream defaults, do branding as a patch for upstream file.
# WARNING: As this package conflicts with gnome-menus-branding-SLE, you cannot
#          reuse build root. You have to build in a clean build root every time!
BuildRequires:  gnome-menus-branding-upstream
%define gnome_menus_version %(rpm -q --qf '%%{version}' gnome-menus)
Requires:       gnome-menus = %{gnome_menus_version}
Provides:       gnome-menus-branding = %{gnome_menus_version}
Obsoletes:      gnome-menus-branding-SLED
Conflicts:      otherproviders(gnome-menus-branding)
Supplements:    packageand(gnome-menus:branding-SLE)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

The package contains an implementation of the draft "Desktop Menu
Specification" from

This package provides the SLE definitions for menus.

%setup -q -T -c %{name}-%{version}
cp -a %{S:0} COPYING
# We will base menus on upstream menus:
cp -a %{_sysconfdir}/xdg/menus/*.menu .
%patch0 -p0
%patch1 -p0


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


%defattr (-, root, root)

openSUSE Build Service is sponsored by