%global commit 02b285c9703c38d308fbe47a3c566ef1e7f883ca Name: libfprint Version: 1.94.100 Release: 2.cs9711%{?dist} Summary: Toolkit for fingerprint scanner # Automatically converted from old format: LGPLv2+ - review is highly recommended. # Most of the code is LGPL-2.1-or-later # libfprint/nbis is NIST-PD License: LGPL-2.1-or-later AND NIST-PD URL: http://www.freedesktop.org/wiki/Software/fprint/libfprint Source0: https://github.com/archeYR/libfprint-CS9711/archive/%{commit}/libfprint-CS9711-%{commit}.tar.gz %global source_sha512 32afc02f636919793c579aeb2cb0eaa1511d12ba7b5c3f7ea0bba6bb6c64e31ecfbbed03c1b265c36a5ee7a73c5837e56b60b02f7a785b47fc33fea8d24766ee BuildRequires: meson BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: git BuildRequires: openssl-devel BuildRequires: pkgconfig(glib-2.0) >= 2.50 BuildRequires: pkgconfig(gio-2.0) >= 2.44.0 BuildRequires: pkgconfig(gusb) >= 0.3.0 BuildRequires: pkgconfig(nss) BuildRequires: pkgconfig(pixman-1) BuildRequires: gtk-doc BuildRequires: libgudev-devel BuildRequires: pkgconfig(opencv4) BuildRequires: pkgconfig(doctest) # For the udev.pc to install the rules BuildRequires: systemd BuildRequires: gobject-introspection-devel # For internal CI tests; umockdev 0.13.2 has an important locking fix BuildRequires: python3-cairo python3-gobject cairo-devel BuildRequires: umockdev >= 0.13.2 %description libfprint offers support for consumer fingerprint reader devices. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package tests Summary: Tests for the %{name} package Requires: %{name}%{?_isa} = %{version}-%{release} %description tests The %{name}-tests package contains tests that can be used to verify the functionality of the installed %{name} package. %prep %autosetup -n libfprint-CS9711-%{commit} %build # Include the virtual image driver for integration tests %meson -Ddrivers=all %meson_build %install %meson_install %ldconfig_scriptlets # TODO: The test can't run with the recent pygobject3.52. # So, skip the test until the issue of pygobject is fixed. %files %license COPYING %doc NEWS THANKS AUTHORS README.md %{_libdir}/*.so.* %{_libdir}/girepository-1.0/*.typelib %{_udevhwdbdir}/60-autosuspend-libfprint-2.hwdb %{_udevrulesdir}/70-libfprint-2.rules %{_datadir}/metainfo/org.freedesktop.libfprint.metainfo.xml %files devel %doc HACKING.md %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/%{name}-2.pc %{_datadir}/gir-1.0/*.gir %{_datadir}/gtk-doc/html/libfprint-2/ %files tests %{_libexecdir}/installed-tests/libfprint-2/ %{_datadir}/installed-tests/libfprint-2/ %changelog %autochangelog