diff --git a/0001-build-Fix-build-with-newer-meson.patch b/0001-build-Fix-build-with-newer-meson.patch new file mode 100644 index 0000000..1840c85 --- /dev/null +++ b/0001-build-Fix-build-with-newer-meson.patch @@ -0,0 +1,32 @@ +From c9abbec48a2c1db5a88a9fb60fc350514af3dcf2 Mon Sep 17 00:00:00 2001 +From: Bastien Nocera +Date: Fri, 20 Jul 2018 12:22:50 +0200 +Subject: [PATCH] build: Fix build with newer meson + +The gtk-doc meson helper regressed in that it didn't expect the +libfprint.types file to not exist, as earlier versions did. Remove +the --rebuild-types call so that it is not generated, and meson carries +on compiling the rest of the library. + +See https://gitlab.gnome.org/GNOME/gtk-doc/issues/48 +See https://github.com/mesonbuild/meson/issues/3892 +See https://bugzilla.redhat.com/show_bug.cgi?id=1604585 +--- + doc/meson.build | 1 - + 2 files changed, 1 insertion(+), 2 deletions(-) + +diff --git a/doc/meson.build b/doc/meson.build +index 48358c8..c2c1b77 100644 +--- a/doc/meson.build ++++ b/doc/meson.build +@@ -54,7 +54,6 @@ gnome.gtkdoc('libfprint', + content_files: content_files, + expand_content_files: expand_content_files, + scan_args: [ +- '--rebuild-types', + '--ignore-decorators=API_EXPORTED', + '--ignore-headers=' + ' '.join(private_headers), + ], +-- +2.17.1 + diff --git a/libfprint-0.8.2.tar.xz b/libfprint-0.8.2.tar.xz new file mode 100644 index 0000000..9f33c40 Binary files /dev/null and b/libfprint-0.8.2.tar.xz differ diff --git a/libfprint.spec b/libfprint.spec new file mode 100644 index 0000000..cdc6f34 --- /dev/null +++ b/libfprint.spec @@ -0,0 +1,57 @@ +Name: libfprint +Version: 0.8.2 +Release: 3 +Summary: Development toolkit for fingerprint scanner + +License: LGPLv2+ +URL: https://fprint.freedesktop.org/ +Source0: https://gitlab.freedesktop.org/libfprint/libfprint/uploads/4272fab4f37516db5b20d07bb576a4b1/libfprint-%{version}.tar.xz + +BuildRequires: meson pkgconfig(glib-2.0) >= 2.28 pkgconfig(libusb-1.0) >= 0.9.1 pkgconfig(nss) +BuildRequires: pkgconfig(pixman-1) gtk-doc systemd + +Patch0000: 0001-build-Fix-build-with-newer-meson.patch + +%description +libfprint aims to add support for consumer fingerprint reader devices, in Linux, as well as other free Unices. + +%package devel +Summary: Development files for libfprint +Requires: libfprint = %{version}-%{release} + +%description devel +The libfprint-devel package provides libraries and header files which are used to developing applications using libfprint. + +%prep +%autosetup -p1 + +%build +%meson -Dx11-examples=false +%meson_build + +%install +%meson_install + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%license COPYING +%doc NEWS TODO THANKS AUTHORS README +%{_libdir}/*.so.* +%{_udevrulesdir}/60-fprint-autosuspend.rules + +%files devel +%doc HACKING.md +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/libfprint.pc +%{_datadir}/gtk-doc/html/libfprint/ + +%changelog +* Fri Dec 13 2019 lihao - 0.8.2-3 +- Package Init +