File biometric-authentication.spec of Package biometric-authentication
#
# 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: biometric-authentication
Version: 0.9.70
Release: 0
Summary: Biometric Authentication
License: GPL-3.0-or-later
Group: System/GUI/Other
URL: https://github.com/ukui/biometric-authentication
Source: https://github.com/ukui/biometric-authentication/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: Fix-return-type.patch
Patch1: Fix-drivers-install-path.patch
BuildRequires: update-desktop-files
BuildRequires: mate-common
BuildRequires: intltool
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libfprint-2)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(polkit-gobject-1)
BuildRequires: pkgconfig(systemd)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?systemd_ordering}
%description
A biometric identification framework. Provide unified DBus interface for
application layer, used for various biometric identification and authentication.
%package -n libbiometric%{sover}
Summary: Libraries for biometric-authentication
Group: System/Libraries
%description -n libbiometric%{sover}
A biometric identification framework. Provide unified DBus interface for
application layer, used for various biometric identification and authentication.
This package provides libraries for it.
%package devel
Summary: Development headers for biometric-authentication
Group: Development/Libraries/C and C++
Requires: lib%{name}%{sover} = %{version}
%description devel
A biometric identification framework. Provide unified DBus interface for
application layer, used for various biometric identification and authentication.
This package provides development headers for it.
%lang_package
%prep
%autosetup -p1
sed -i 's|/lib/systemd/system/|/usr/lib/systemd/system/|g' data/Makefile.am
%build
NOCONFIGURE=0 ./autogen.sh
%configure
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
find %{buildroot} -type f -name "*.a" -delete -print
rm -rf %{buildroot}%{_sysconfdir}/init.d/biometric-authentication
%find_lang %{name}
%pre
%service_add_pre %{name}.service
%post
%service_add_post %{name}.service
/sbin/ldconfig
%preun
%service_del_preun %{name}.service
%postun
%service_del_postun %{name}.service
/sbin/ldconfig
%post -n libbiometric%{sover} -p /sbin/ldconfig
%postun -n libbiometric%{sover} -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/biometric-*
%{_unitdir}/%{name}.service
%config %{_sysconfdir}/dbus-1/system.d/org.ukui.Biometric.conf
%{_libexecdir}/%{name}d
%{_datadir}/%{name}
%{_libdir}/%{name}
%{_datadir}/dbus-1/interfaces/org.ukui.Biometric.xml
%{_datadir}/polkit-1/actions/*.policy
%files -n libbiometric%{sover}
%defattr(-,root,root,-)
%{_libdir}/libbiometric.so.*
%files devel
%defattr(-,root,root,-)
%{_libdir}/libbiometric.so
%{_libdir}/pkgconfig/libbiometric.pc
%{_includedir}/libbiometric
%files lang -f %{name}.lang
%changelog