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

#
# spec file for package gnome-menus-branding-SLED (Version 11.1)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           gnome-menus-branding-SLED
Version:        11.1
Release:        14
Group:          System/GUI/GNOME
License:        BSD 3-Clause
Summary:        SLED branding of gnome-menus
Source:         %{name}-COPYING
Source1:        %{name}-settings.menu
Source2:        %{name}-Hidden.directory
Provides:       gnome-menus-branding = 2.23
Conflicts:      otherproviders(gnome-menus-branding)
Supplements:    packageand(gnome-menus:branding-SLED)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# 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 update-desktop-files
# For directory ownership:
BuildRequires:  gnome-menus
BuildArch:      noarch

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



Authors:
--------
    Vincent Untz <vuntz@suse.de>

%prep
%setup -q -T -c %{name}-%{version}
cp -a %{S:0} COPYING
cp -a %{S:2} Hidden.directory
# 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

%build

%install
install -d $RPM_BUILD_ROOT%{_datadir}/desktop-directories
install -m0644 *.directory $RPM_BUILD_ROOT%{_datadir}/desktop-directories/
install -d $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus
install -m0644 *.menu $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/
# Remove this in 11.2
ln -s %{_sysconfdir}/xdg/menus/settings.menu $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/preferences.menu

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
%doc COPYING
%{_datadir}/desktop-directories/*.directory
%{_sysconfdir}/xdg/menus/*.menu

%changelog
* Tue Nov 04 2008 vuntz@novell.com
- Sync with gnome-menus-branding-openSUSE:
  + Upstream has changed the way settings.menu is used for 2.24, so
  kill preferences.menu and just use settings.menu now.
  + Keep preferences.menu as a link to settings.menu, since we
  don't want to break anything because of this.
* Mon Oct 06 2008 sbrabec@suse.cz
- Conflict with other branding providers (FATE#304881).
* Mon Aug 25 2008 jpr@suse.de
- Initial SLED package copied from openSUSE
openSUSE Build Service is sponsored by