File lxqt-lightdm-greeter-branding-openSUSE.spec of Package lxqt-lightdm-greeter-branding-openSUSE

#
# spec file for package lxqt-lightdm-greeter-branding-openSUSE
#
# Copyright (c) 2016 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/
#


%define lxqt_lightdm_greeter_version %(rpm -q --queryformat "%%{version}" lxqt-lightdm-greeter)

Name:           lxqt-lightdm-greeter-branding-openSUSE
Version:        1.0
Release:        0
Summary:        openSUSE branding of lxqt-lightdm-greeter
License:        LGPL-2.1+
Group:          System/X11/Displaymanagers
Url:            https://code.launchpad.net/~lubuntu-dev/lxde/lxqt-lightdm-greeter
Source0:        lxqt-lightdm-greeter.conf
Source1:        lxqt-lightdm-greeter-opensuse.png
BuildRequires:  lightdm
BuildRequires:  lxqt-lightdm-greeter
BuildRequires:  lxqt-lightdm-greeter-branding-upstream
# default background image
Requires:       wallpaper-branding
Requires:       lxqt-lightdm-greeter = %{lxqt_lightdm_greeter_version}
Provides:       lxqt-lightdm-greeter-branding = %{lxqt_lightdm_greeter_version}
Conflicts:      otherproviders(lxqt-lightdm-greeter-branding)
Supplements:    packageand(lxqt-lightdm-greeter:branding-openSUSE)
BuildArch:      noarch

%description
This package provides the openSUSE look and feel for lxqt-lightdm-greeter.

%prep

%build
cp %{_defaultdocdir}/lxqt-lightdm-greeter/COPYING .

%install
install -D -p -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/lightdm/lxqt-lightdm-greeter.conf
install -D -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/lxqt-lightdm-greeter-opensuse.png

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%config(noreplace) %{_sysconfdir}/lightdm/lxqt-lightdm-greeter.conf
%{_datadir}/pixmaps/lxqt-lightdm-greeter-opensuse.png

%changelog