File light-locker.spec of Package light-locker

#
# spec file for package light-locker
#
# 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/
#


Name:           light-locker
Version:        1.7.0
Release:        0
Summary:        A simple locker using LightDM
License:        GPL-2.0+
Group:          System/X11/Utilities
Url:            https://github.com/the-cavalry/light-locker
Source:         https://github.com/the-cavalry/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE light-locker-systemd-209.patch dimstar@opensuse.org -- Update build system for systemd >= 209.
Patch0:         light-locker-systemd-209.patch
BuildRequires:  xfce4-dev-tools >= 4.7.2
BuildRequires:  pkgconfig(dbus-glib-1) >= 0.30
BuildRequires:  pkgconfig(gobject-2.0) >= 2.25.6
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libsystemd) >= 209
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xscrnsaver)
BuildRequires:  pkgconfig(xxf86vm)
Requires:       lightdm >= 1.7.10
Recommends:     %{name}-lang
%glib2_gsettings_schema_requires

%description
light-locker is a simple locker that aims to have simple, sane, secure
defaults and be well integrated with the desktop while not carrying any
desktop-specific dependencies.
It relies on LightDM for locking and unlocking your session via systemd.

%lang_package

%prep
%setup -q
%patch0 -p1
mv -f configure.ac{.in,}

%build
xdt-autogen
%configure \
  --with-dpms-ext      \
  --with-mit-ext       \
  --with-xf86gamma-ext
make %{?_smp_mflags} V=1

%install
%make_install
%find_lang %{name}

%post
%glib2_gsettings_schema_post

%postun
%glib2_gsettings_schema_postun

%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LIB MAINTAINERS NEWS README
%{_bindir}/%{name}
%{_bindir}/%{name}-command
%{_datadir}/glib-2.0/schemas/*%{name}.gschema.xml
%{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_mandir}/man?/%{name}*

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by