File gdm-branding-openSUSE.spec of Package gdm-branding-openSUSE

#
# spec file for package gdm-branding-openSUSE
#
# Copyright (c) 2015 SUSE LINUX 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:           gdm-branding-openSUSE
Version:        42.1
Release:        0
Summary:        The GNOME Display Manager -- openSUSE default configuration
License:        GPL-2.0+
Group:          System/GUI/GNOME
Url:            http://projects.gnome.org/gdm/
Source0:        distributor.svg
# To be in sync with upstream defaults, do branding as a patch for upstream file.
# WARNING: As this package conflicts with gdm-branding-openSUSE, you cannot
#          reuse build root. You have to build in a clean build root every time!
BuildRequires:  gdm-branding-upstream
# For directory ownership:
BuildRequires:  gdm
%define gdm_version %(rpm -q --qf '%%{version}' gdm)
Requires:       gdm = %{gdm_version}
Provides:       gdm-branding = %{gdm_version}
Conflicts:      otherproviders(gdm-branding)
Supplements:    packageand(gdm:branding-openSUSE)
# Existed for openSUSE <= 10.3, SLE <= 10
Obsoletes:      gnome2-SuSE
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
The GNOME Display Manager is a system service that is responsible for
providing graphical log-ins and managing local and remote displays.

This package provides the openSUSE default configuration for gdm.

%prep
cp -a %{_sysconfdir}/gdm/custom.conf .

%build

%install
mkdir -p %{buildroot}%{_datadir}/gdm/greeter/images/
install -d %{buildroot}%{_sysconfdir}/gdm
install -m0644 custom.conf %{buildroot}%{_sysconfdir}/gdm/custom.conf
cp %SOURCE0 %{buildroot}%{_datadir}/gdm/greeter/images/

%clean

rm -rf %{buildroot}

%files
%defattr (-, root, root)
%config(noreplace) %{_sysconfdir}/gdm/custom.conf
%{_datadir}/gdm/greeter/images/distributor.svg
%dir %{_datadir}/gdm/greeter/images/

%changelog