e2f1a38
Name:           light-locker
e2f1a38
Version:        1.6.0
e2f1a38
Release:        2%{?dist}
e2f1a38
Summary:        A simple session-locker for lightdm 
e2f1a38
e2f1a38
# unclear license: https://github.com/the-cavalry/light-locker/issues/33
e2f1a38
License:        GPLv2+
e2f1a38
URL:            https://github.com/the-cavalry/%{name}
e2f1a38
Source0:        %{url}/releases/download/v%{version}/%{name}-%{version}.tar.bz2
e2f1a38
# Queue a resize of all windows on monitor change
e2f1a38
Patch0:         %{url}/commit/b638e6c8f49a46b832d0135069b2c2c1dd7246e8.patch
e2f1a38
# Fix typo in .desktop file (issue #55)
e2f1a38
Patch1:         %{url}/commit/7c5f159ed5db6c765688a2cdcce2a3cd88bf233d.patch
e2f1a38
e2f1a38
#BuildRequires:  gtk2-devel
e2f1a38
BuildRequires:  gtk3-devel
e2f1a38
BuildRequires:  libXScrnSaver-devel
e2f1a38
# xorg-x11-proto provides "mit-ext"
e2f1a38
BuildRequires:  xorg-x11-proto-devel
e2f1a38
BuildRequires:  systemd-devel
e2f1a38
BuildRequires:  dbus-glib-devel
e2f1a38
BuildRequires:  intltool
e2f1a38
BuildRequires:  desktop-file-utils
e2f1a38
e2f1a38
# functional runtime
e2f1a38
Requires:       lightdm
e2f1a38
e2f1a38
e2f1a38
%description
e2f1a38
%{name} is a simple locker (forked from gnome-screensaver)
e2f1a38
that aims to have simple, sane, secure defaults and be well
e2f1a38
integrated with the desktop while not carrying any desktop-
e2f1a38
specific dependencies.
e2f1a38
It relies on lightdm for locking and unlocking your session.
e2f1a38
e2f1a38
e2f1a38
%prep
e2f1a38
%setup -q
e2f1a38
%patch0 -p1
e2f1a38
# desktop-file-validate does not like NotShowIn values
e2f1a38
%patch1 -p1
e2f1a38
sed -i '/NotShowIn/d' src/*.desktop.in
e2f1a38
e2f1a38
%build
e2f1a38
# FIXME build also gtk2? ( --with-gtk2 )
e2f1a38
%configure --disable-silent-rules --with-gtk3 
e2f1a38
make %{?_smp_mflags} V=1
e2f1a38
e2f1a38
%install
e2f1a38
%make_install
e2f1a38
%find_lang %{name}
e2f1a38
e2f1a38
%check
e2f1a38
desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/*.desktop
e2f1a38
e2f1a38
e2f1a38
%postun
e2f1a38
if [ $1 -eq 0 ] ; then
e2f1a38
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
e2f1a38
fi
e2f1a38
e2f1a38
%posttrans
e2f1a38
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
e2f1a38
e2f1a38
e2f1a38
%files -f %{name}.lang
e2f1a38
%license COPYING COPYING.LIB
e2f1a38
# ignore empty file HACKING
e2f1a38
%doc AUTHORS ChangeLog NEWS README
e2f1a38
%{_bindir}/%{name}*
e2f1a38
 %{_sysconfdir}/xdg/autostart/*.desktop
e2f1a38
# glib2 owns %{datadir}/glib-2.0/schemas
e2f1a38
%{_datadir}/glib-2.0/schemas/apps.*.xml
e2f1a38
%{_mandir}/man1/%{name}*.1*
e2f1a38
e2f1a38
e2f1a38
%changelog
e2f1a38
* Fri Jun 26 2015 Raphael Groner <projects.rg@smart.ms> - 1.6.0-2
e2f1a38
- fix license, enhance build options, add gsettings schema scriplets
e2f1a38
e2f1a38
* Tue May 26 2015 Raphael Groner <projects.rg@smart.ms> - 1.6.0-1
e2f1a38
- initial