File xsecurelock.spec of Package xsecurelock

#
# spec file for package xsecurelock
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           xsecurelock
Version:        1.9.0
Release:        0
Summary:        X11 screen lock utility with primary goal being security
License:        Apache-2.0
Group:          Amusements/Toys/Screensavers
URL:            https://github.com/google/xsecurelock
Source:         https://github.com/google/xsecurelock/archive/v#{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  automake
BuildRequires:  mpv
BuildRequires:  pam-devel
BuildRequires:  pandoc
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcomposite)
BuildRequires:  pkgconfig(xft)
BuildRequires:  pkgconfig(xmu)
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(xscrnsaver)
%if  0%{?sle_version} == 150000 || 0%{?sle_version} == 150100 || 0%{?sle_version} == 150200
BuildRequires:  pkgconfig(xxf86misc)
%endif
BuildRequires:  xscreensaver-data

%description
Security is achieved using a modular design to avoid the usual pitfalls of
screen locking utility design.

%prep
%autosetup

%build
NOCONFIGURE=1 sh ./autogen.sh
%configure \
    --docdir=%{_defaultdocdir} \
    --with-mpv \
    --with-pam \
    --with-pam-service-name=common-auth \
    --with-xcomposite \
    --with-xkb \
    --with-xss \
    --with-xscreensaver=%{_libexecdir}/xscreensaver \
    --prefix=%{_prefix}

echo "const char *const git_version = \"%{version}\";" > version.c

%make_build

%install
%make_install
find %{buildroot}%{_datadir}/doc/ -name "LICENSE" -delete -print

%files
%doc %{_defaultdocdir}
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/*
%{_bindir}/%{name}
%{_mandir}/man?/%{name}.?%{?ext_man}
%license LICENSE

%changelog
openSUSE Build Service is sponsored by