File lightdm-gtk-greeter.spec of Package lightdm-gtk-greeter
#
# spec file for package lightdm-gtk-greeter
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Guido Berhoerster.
#
# 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: lightdm-gtk-greeter
Version: 1.1.6
Release: 0
Summary: GTK-based Greeter for LightDM
License: GPL-3.0+
Group: System/X11/Displaymanagers
Url: https://launchpad.net/lightdm-gtk-greeter
Source0: %{name}-%{version}.tar.gz
BuildRequires: intltool
BuildRequires: pkgconfig(gmodule-export-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(liblightdm-gobject-1)
BuildRequires: pkgconfig(x11)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: lightdm-greeter
Requires: %{name}-branding = %{version}
Requires: lightdm
Recommends: %{name}-lang = %{version}
Recommends: gnome-themes-accessibility
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is the reference implementation of a LightDM greeter based on the GTK
toolkit.
%package branding-upstream
Summary: Upstream branding of %{name}-gtk-greeter
Group: System/X11/Displaymanagers
Requires: %{name} = %{version}
Provides: %{name}-branding = %{version}
Conflicts: otherproviders(%{name}-branding)
Supplements: packageand(%{name}:branding-upstream)
BuildArch: noarch
#BRAND: /etc/lightdm/lightdm-gtk-greeter.conf: Determines a number of greeter
#BRAND: settings, in particular the background image.
%description branding-upstream
This package provides the upstream look and feel for lightdm-gtk-greeter.
%lang_package
%prep
%setup -q
%build
%configure
make %{?_smp_mflags} V=1
%install
%make_install
%find_lang %{name} %{?no_lang_C}
%clean
rm -rf %{buildroot}
%post
/usr/sbin/update-alternatives --install \
%{_datadir}/xgreeters/lightdm-default-greeter.desktop \
lightdm-default-greeter.desktop \
%{_datadir}/xgreeters/lightdm-gtk-greeter.desktop \
20
%postun
if [ $1 -eq 0 ]; then
/usr/sbin/update-alternatives --remove lightdm-default-greeter.desktop \
%{_datadir}/xgreeters/lightdm-gtk-greeter.desktop
fi
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_sbindir}/lightdm-gtk-greeter
%{_datadir}/lightdm-gtk-greeter
%dir %{_datadir}/xgreeters/
%{_datadir}/xgreeters/lightdm-gtk-greeter.desktop
%ghost %attr(644,root,root) %{_datadir}/xgreeters/lightdm-default-greeter.desktop
%ghost %attr(644,root,root) %{_sysconfdir}/alternatives/lightdm-default-greeter.desktop
%files branding-upstream
%defattr(-,root,root,-)
%dir %{_sysconfdir}/lightdm/
%config(noreplace) %{_sysconfdir}/lightdm/lightdm-gtk-greeter.conf
%files lang -f %{name}.lang
%changelog