File ukui-biometric-auth.spec of Package ukui-biometric-auth

#
# spec file for package biometric-authentication
#
# 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/
#

%define sover 0

Name:           ukui-biometric-auth
Version:        1.2.1
Release:        0
Summary:        Biometric Authentication Gui
License:        GPL-3.0-or-later
Group:          System/GUI/Other
URL:            https://github.com/ukui/ukui-biometric-auth
Source:         https://github.com/ukui/ukui-biometric-auth/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  update-desktop-files
BuildRequires:  libqt5-linguist
BuildRequires:  pam
BuildRequires:  pam-devel
BuildRequires:  fdupes
BuildRequires:  cmake(Qt5LinguistTools)
BuildRequires:  cmake(PolkitQt5-1)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(polkit-gobject-1)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A biometric identification framework. Provide unified DBus interface for
application layer, used for various biometric identification and authentication.

This package provides Gui for it.

%lang_package

%prep
%autosetup
sed -i 's|/lib/security|/%{_lib}/security|g' pam-biometric/CMakeLists.txt
sed -i 's|DESTINATION lib|DESTINATION %{_lib}|g' polkit-agent/CMakeLists.txt

%build
%cmake
%make_build

%install
%cmake_install

%fdupes %{buildroot}%{_datadir}

%files
%defattr(-,root,root,-)
%license COPYING
%dir %{_sysconfdir}/biometric-auth
%config %{_sysconfdir}/biometric-auth/ukui-biometric.conf
%{_sysconfdir}/xdg/autostart/polkit-ukui-authentication-agent-1.desktop
%{_bindir}/*
%dir %{_libdir}/ukui-polkit
%{_libdir}/ukui-polkit/polkit-ukui-authentication-agent-1
/%{_lib}/security/pam_biometric.so
%dir %{_datadir}/pam-configs
%{_datadir}/pam-configs/pam-biometric
%{_datadir}/polkit-1/actions/*.policy
%dir %{_datadir}/ukui-biometric
%{_datadir}/ukui-biometric/images

%files lang
%defattr(-,root,root,-)
%{_datadir}/ukui-biometric/i18n_qm

%changelog
openSUSE Build Service is sponsored by