File glib2-branding-openSUSE.spec of Package glib2-branding-openSUSE
#
# spec file for package glib2-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/
#
# norootforbuild
Name: glib2-branding-openSUSE
Version: 11.4
Release: 2
Group: System/GUI/GNOME
License: BSD3c
Summary: Definition of GNOME Default Applications
Source: %{name}-gnome_defaults.conf
Source1: %{name}-COPYING
# We need glib2-branding-upstream else, the call to SuSEconfig.glib2 fails
BuildRequires: glib2
BuildRequires: glib2-branding-upstream
%define glib2_real_package %(rpm -q --whatprovides glib2)
%define glib2_version %(rpm -q --qf '%%{version}-%%{release}' %{glib2_real_package})
Provides: glib2-branding = %{glib2_version}
Conflicts: otherproviders(glib2-branding)
Supplements: packageand(glib2:branding-openSUSE)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This branding-style package sets default applications in GNOME in
openSUSE.
%package -n glib2-branding-SLED
License: BSD3c
Group: System/GUI/GNOME
Summary: Definition of GNOME Default Applications
Provides: glib2-branding = %{glib2_version}
Conflicts: otherproviders(glib2-branding)
Supplements: packageand(glib2:branding-SLED)
%description -n glib2-branding-SLED
This branding-style package sets default applications in GNOME in
openSUSE.
%package -n glib2-branding-SLES
License: BSD3c
Group: System/GUI/GNOME
Summary: Definition of GNOME Default Applications
Provides: glib2-branding = %{glib2_version}
Conflicts: otherproviders(glib2-branding)
Supplements: packageand(glib2:branding-SLES)
%description -n glib2-branding-SLES
This branding-style package sets default applications in GNOME in
openSUSE.
%prep
%setup -q -T -c %{name}-%{version}
cp -a %{S:0} gnome_defaults.conf
cp -a %{S:1} COPYING
%build
%install
install -d $RPM_BUILD_ROOT%{_sysconfdir}
install -m0644 gnome_defaults.conf $RPM_BUILD_ROOT%{_sysconfdir}/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, root)
%doc COPYING
%config (noreplace) %{_sysconfdir}/gnome_defaults.conf
# Clone exactly the same defaults for SLED and SLES:
%files -n glib2-branding-SLED
%defattr (-, root, root)
%doc COPYING
%config (noreplace) %{_sysconfdir}/gnome_defaults.conf
%files -n glib2-branding-SLES
%defattr (-, root, root)
%doc COPYING
%config (noreplace) %{_sysconfdir}/gnome_defaults.conf
%changelog