File xss-lock.spec of Package xss-lock

#
# spec file for package xss-lock
#
# Copyright (c) 2021 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:           xss-lock
Version:        0.3.0~git27.0c562bf
Release:        0
Summary:        Use external locker as X screen saver
License:        MIT 
Url:            https://github.com/wavexx/xss-lock
Source0:        %{name}-%{version}.tar.bz2 
Source1:        lockscreen
Source2:        heartbeat
Source3:        synergylock
Group:          System/X11/Utilities
BuildRequires:  cmake
BuildRequires:  gcc
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(xcb-screensaver)
BuildRequires:  pkgconfig(xcb-util)
BuildRequires:  pkgconfig(xscrnsaver)
BuildRequires:  %{python_module docutils}
Recommends:     xsecurelock

%description
The xss-lock utility hooks up your favorite locker to the
MIT screen saver extension (XSS) for X and also to
systemd's login manager.

%package sample
Summary:        Sample scripts for xss-lock
License:        MIT 
Group:          System/X11/Utilities
Requires:       grep
Requires:       sed
Requires:       strace
Requires:       synergy
Requires:       xprop
Requires:       xscreensaver
Requires:       xscreensaver-data
Requires:       xscreensaver-data-extra
Requires:       xsecurelock
Requires:       xvinfo
Requires:       xwininfo

%description sample
Three sample scripts which depends on xss-lock screen and xsecurelock.
The first script named lockscreen does set up the xss-lock command
using the xsecurelock X11 screen lock utility and the configured
xscreensaver background.

The second script determines if a X11 process uses the full X11 screen
like vlc or mplayer to temporary disable screen saver.

The third script can be used to synchronize two or more synergy mouse/keyboard
shared screens.

%prep
%setup -q

%build
%cmake 
%cmake_build
%install
%cmake_install
mkdir -p "%buildroot/%_docdir/%name"
mv %buildroot/usr/share/doc/%name/* %buildroot/%_docdir/%name
install -m 755 %{S:1} %{buildroot}%{_bindir}/lockscreen
install -m 755 %{S:2} %{buildroot}%{_bindir}/heartbeat
install -m 755 %{S:3} %{buildroot}%{_bindir}/synergylock
%check
%ctest

%files
%{_bindir}/xss-lock
%{_datadir}/bash-completion/completions/
%{_datadir}/zsh/
%{_mandir}/man1/xss-lock.1*
%license LICENSE 
%doc NEWS
%_docdir/%name

%files sample
%{_bindir}/lockscreen
%{_bindir}/heartbeat
%{_bindir}/synergylock

%changelog
openSUSE Build Service is sponsored by