!1 Package Init

Merge pull request !1 from 窃格瓦拉/master
This commit is contained in:
openeuler-ci-bot 2019-12-14 20:50:10 +08:00 committed by Gitee
commit c48f74f510
3 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,32 @@
From c9abbec48a2c1db5a88a9fb60fc350514af3dcf2 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
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

BIN
libfprint-0.8.2.tar.xz Normal file

Binary file not shown.

57
libfprint.spec Normal file
View File

@ -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 <lihao129@huawei.com> - 0.8.2-3
- Package Init