From 5c218b19fbcb39f2337d9ed985a6b82e75d96e39 Mon Sep 17 00:00:00 2001 From: tigro Date: Tue, 26 Nov 2024 15:12:40 +0300 Subject: [PATCH] Added Patches Libfprint binaries for FTE3800, FTE4800, FTE6600 fingerprints --- .gitignore | 2 + .libfprint-focal-spi.metadata | 2 + README.md | 2 - SOURCES/libfprint-focal-spi.te | 11 + SPECS/libfprint-focal-spi.spec | 404 +++++++++++++++++++++++++++++++++ 5 files changed, 419 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 .libfprint-focal-spi.metadata delete mode 100644 README.md create mode 100644 SOURCES/libfprint-focal-spi.te create mode 100644 SPECS/libfprint-focal-spi.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f7b083c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/libfprint-v1.94.6.tar.gz +SOURCES/libfprint-2-2_1.94.4+tod1-0ubuntu1~22.04.2_spi_amd64_20240620.deb diff --git a/.libfprint-focal-spi.metadata b/.libfprint-focal-spi.metadata new file mode 100644 index 0000000..3af136f --- /dev/null +++ b/.libfprint-focal-spi.metadata @@ -0,0 +1,2 @@ +12c0acadeb4ef4120a0af12a24e53e8e0e0aa0de SOURCES/libfprint-v1.94.6.tar.gz +c932c3457c1c45f6887bd9a3c438361a1ce6b843 SOURCES/libfprint-2-2_1.94.4+tod1-0ubuntu1~22.04.2_spi_amd64_20240620.deb diff --git a/README.md b/README.md deleted file mode 100644 index 767cb01..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# libfprint-focal-spi - diff --git a/SOURCES/libfprint-focal-spi.te b/SOURCES/libfprint-focal-spi.te new file mode 100644 index 0000000..8d1b40d --- /dev/null +++ b/SOURCES/libfprint-focal-spi.te @@ -0,0 +1,11 @@ + +module libfprint-focal-spi 1.0; + +require { + type fprintd_t; + type fprintd_device_t; + class chr_file { ioctl open read write }; +} + +#============= fprintd_t ============== +allow fprintd_t fprintd_device_t:chr_file { ioctl open read write }; diff --git a/SPECS/libfprint-focal-spi.spec b/SPECS/libfprint-focal-spi.spec new file mode 100644 index 0000000..56d7f8e --- /dev/null +++ b/SPECS/libfprint-focal-spi.spec @@ -0,0 +1,404 @@ +%define debug_package %{nil} +%global selinuxtype targeted + +Name: libfprint-focal-spi + +Version: 1.94.6 +Release: 1%{?dist}.1.inferit +Summary: Toolkit for fingerprint scanner + +License: LGPLv2+ +URL: http://www.freedesktop.org/wiki/Software/fprint/libfprint +Source0: https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/v%{version}/libfprint-v%{version}.tar.gz +Source1: libfprint-2-2_1.94.4+tod1-0ubuntu1~22.04.2_spi_amd64_20240620.deb +Source2: libfprint-focal-spi.te +ExclusiveArch: x86_64 + +BuildRequires: make +BuildRequires: meson +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: git +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 +# 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 +# fix SELinux policy +BuildRequires: selinux-policy-devel +Requires: (%{name}-selinux = %{version}-%{release} if selinux-policy-%{selinuxtype}) + +Obsoletes: libfprint +Provides: libfprint = %{version}-%{release} +Provides: focal-spi-kmod-common = 0.1 + +# Ooh +Provides: libfprint-2.so.2()(64bit) +Provides: libfprint-2.so.2(LIBFPRINT_2.0.0)(64bit) + +%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 selinux +Summary: SELinux policy module for %{name} +Requires: %{name} = %{version}-%{release} +%{?selinux_requires} + +%description selinux +This package contains the SELinux policy module required to allow the focal_moh_spi kernel module to write and read the file + +%prep +%autosetup -S git -n libfprint-v%{version} + +# SELinux fixes +mkdir -p SELinux +cp %{SOURCE2} SELinux/ + + +%build +# Include the virtual image driver for integration tests +%meson -Dgtk-examples=false -Ddrivers=all -Dudev_hwdb=disabled -Dinstalled-tests=false +%meson_build + +cd SELinux +%{__make} NAME=%{selinuxtype} -f /usr/share/selinux/devel/Makefile + +%install +%meson_install +# sed "1,/^main \$@/d" "%{SOURCE1}" | tar xzv -C %{buildroot} +ar xv %{SOURCE1} +tar --zstd -xvf data.tar.zst +%{__install} -m 644 ./usr/lib/x86_64-linux-gnu/libfprint-2.so.2.0.0 %{buildroot}%{_libdir} +install -d %{buildroot}%{_datadir}/selinux/%{selinuxtype} +install -p -m 644 SELinux/%{name}.pp %{buildroot}%{_datadir}/selinux/%{selinuxtype}/%{name}.pp + +%ldconfig_scriptlets + +%check +%meson_test -t 4 + +%pre selinux +%selinux_relabel_pre -s %{selinuxtype} + +%post selinux +%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/%{selinuxtype}/%{name}.pp +%selinux_relabel_post -s %{selinuxtype} + +if [ "$1" -le "1" ]; then # First install + # the daemon needs to be restarted for the custom label to be applied + %systemd_postun_with_restart fprintd.service +fi + +%postun selinux +if [ $1 -eq 0 ]; then + %selinux_modules_uninstall -s %{selinuxtype} %{name} + %selinux_relabel_post -s %{selinuxtype} +fi + +%files +%license COPYING +%doc NEWS THANKS AUTHORS README.md +%{_libdir}/*.so.* +%{_libdir}/girepository-1.0/*.typelib +%{_udevrulesdir}/70-libfprint-2.rules + +%files devel +%doc HACKING.md +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/libfprint-2.pc +%{_datadir}/gir-1.0/*.gir +%{_datadir}/gtk-doc/html/libfprint-2/ + +%files selinux +%doc SELinux/%{name}.te +%{_datadir}/selinux/%{selinuxtype}/%{name}.pp + +%changelog +* Tue Nov 26 2024 Arkady L. Shane - 1.94.6-1.1.inferit +- Apply Driver for Orage Inferit notebook +- Added SELinux Policy + +* Mon Jan 29 2024 Kate Hsuan - 1.94.6-1 +- Update to 1.94.6 + Resolves: RHEL-19611 + +* Fri Apr 14 2023 MSVSphere Packaging Team - 1.94.5-1 +- Rebuilt for MSVSphere 9.2 beta + +* Mon Dec 19 2022 Bastien Nocera - 1.94.5-1 +- Update to 1.94.5 +Resolves: rhbz#2148088 + +* Wed Aug 25 2021 Benjamin Berg - 1.94.0-3 +- Rebuilt with gating test fix for skipped tests + Related: #1981216 + +* Wed Aug 25 2021 Benjamin Berg - 1.94.0-2 +- Rebuilt for gating + Related: #1981216 + +* Mon Aug 23 2021 Benjamin Berg - 1.94.0-1 +- Update to 1.94.0 + Resolves: #1981216 + +* Mon Aug 09 2021 Mohan Boddu - 1.90.7-4 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 1.90.7-3 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Jan 26 2021 Fedora Release Engineering - 1.90.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jan 13 13:33:12 CET 2021 Benjamin Berg - 1.90.7-1 +- Update to 1.90.7 (#1902256) + +* Wed Dec 09 2020 Benjamin Berg - 1.90.6-1 +- New upstream release 1.90.6 (#1902256) + +* Tue Dec 01 2020 Benjamin Berg - 1.90.5-1 +- New upstream release 1.90.5 (#1902256) + +* Fri Nov 27 2020 Benjamin Berg - 1.90.4-1 +- New upstream release 1.90.4 (#1902256) + Resolves #1889384 + +* Mon Sep 14 2020 Benjamin Berg - 1.90.3-1 +- Update to libfprint 1.90.3 (#1878746) + +* Tue Jul 28 2020 Fedora Release Engineering - 1.90.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 08 2020 Benjamin Berg - 1.90.2-1 +- Update to libfprint 1.90.2 +- Resolves #1832229 +- Resolves #1841834 +- Resolves #1841965 + +* Fri Feb 14 2020 Bastien Nocera - 1.90.1-2 ++ libfprint-1.90.1-2 +- Rebuilt for F32 + +* Mon Feb 10 2020 Benjamin Berg - 1.90.1-1 +- Update to libfprint 1.90.1 + +* Wed Jan 29 2020 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Aug 14 2019 Benjamin Berg - 1.0-1 ++ libfprint-1.0-1 +- Update to 1.0 + +* Thu Jul 25 2019 Fedora Release Engineering - 0.8.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 0.8.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 20 2018 Bastien Nocera - 0.8.2-2 ++ libfprint-0.8.2-2 +- Fix build with newer meson (#1604585) + +* Tue Jul 17 2018 Bastien Nocera - 0.8.2-1 ++ libfprint-0.8.2-1 +- Update to 0.8.2 +- Add required gcc and gcc-c++ BR + +* Fri Jul 13 2018 Fedora Release Engineering - 0.8.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 12 2018 Bastien Nocera - 0.8.1-1 ++ libfprint-0.8.1-1 +- Update to 0.8.1 to fix the build + +* Tue Jun 12 2018 Bastien Nocera - 0.8.0-1 ++ libfprint-0.8.0-1 +- Update to 0.8.0 +- Port to meson, gtk-doc + +* Wed Feb 07 2018 Fedora Release Engineering - 0.7.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Feb 03 2018 Igor Gnatenko - 0.7.0-4 +- Switch to %%ldconfig_scriptlets + +* Thu Aug 03 2017 Fedora Release Engineering - 0.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon May 15 2017 Bastien Nocera - 0.7.0-1 ++ libfprint-0.7.0-1 +- Update to 0.7.0 + +* Fri Feb 10 2017 Fedora Release Engineering - 0.6.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 0.6.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 0.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Feb 03 2015 Bastien Nocera 0.6.0-1 +- Update to 0.6.0 + +* Wed Dec 17 2014 Rex Dieter - 0.5.1-5 +- error opening ATTR{/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/power/control} for writing (#950205) +- %%build: --disable-silent-rules + +* Sun Aug 17 2014 Fedora Release Engineering - 0.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Jan 16 2014 Ville Skyttä - 0.5.1-2 +- Drop INSTALL from docs. + +* Sun Aug 11 2013 Bastien Nocera 0.5.1-1 +- Update to 0.5.1 + +* Sat Aug 03 2013 Fedora Release Engineering - 0.5.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Dec 03 2012 Bastien Nocera 0.5.0-1 +- Update to 0.5.0 +- Re-add not useless udev rules + +* Thu Jul 19 2012 Fedora Release Engineering - 0.4.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri May 18 2012 Matthias Clasen - 0.4.0-4 +- Drop broken and useless udev rules (#744637) + +* Fri Jan 13 2012 Fedora Release Engineering - 0.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Nov 21 2011 Adam Jackson 0.4.0-2 +- Rebuild without Requires: ConsoleKit, going away in F17 + +* Thu Nov 10 2011 Bastien Nocera 0.4.0-1 +- Update to 0.4.0 + +* Mon Nov 07 2011 Adam Jackson 0.3.0-3 +- Rebuild for libpng 1.5 + +* Mon Feb 07 2011 Fedora Release Engineering - 0.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Sep 08 2010 Bastien Nocera 0.3.0-1 +- Update to 0.3.0 + +* Thu Aug 19 2010 Bastien Nocera 0.2.0-1 +- Update to 0.2.0 + +* Wed Jun 30 2010 Matthew Garrett 0.1.0-16.pre3 +- Fix #505438 to avoid message on boot on some systems + +* Tue Jun 01 2010 Bastien Nocera 0.1.0-16.pre2 +- Add README to package + +* Wed Jan 20 2010 Bastien Nocera 0.1.0-15.pre2 +- Require hal-filesystem for the fdi file + +* Tue Dec 01 2009 Bastien Nocera 0.1.0-14.pre2 +- Update AES1610 patch + +* Mon Nov 30 2009 Bastien Nocera 0.1.0-13.pre2 +- Add aes1610 driver (#499732) + +* Thu Oct 01 2009 Bastien Nocera 0.1.0-12.pre2 +- Update udev autosuspend rules and disable SGS Thomson reader + +* Fri Aug 21 2009 Tomas Mraz - 0.1.0-11.pre2 +- rebuilt with new openssl + +* Fri Jul 24 2009 Fedora Release Engineering - 0.1.0-10.pre2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Jul 21 2009 Bastien Nocera 0.1.0-9.pre2 +- Use gdk-pixbuf for image manipulation instead of ImageMagick (#472103) + +* Sat Jun 20 2009 Bastien Nocera 0.1.0-8.pre2 +- Update to 0.1.0-pre2 + +* Tue Jun 09 2009 Matthew Garrett 0.1.0-7.pre1 +- fprint-add-udev-rules.patch - build udev rules for autosuspend +- move hal fdi into the main package rather than -devel +- add autoreconf as a build depend while carrying the udev diff + +* Tue Apr 21 2009 Karsten Hopp 0.1.0-6.pre1.1 +- Excludearch s390 s390x, we don't have USB devices there and this package + doesn't build without USB support + +* Mon Mar 09 2009 pingou - 0.1.0-6.pre1 +- Rebuilt for rawhide + +* Wed Feb 25 2009 Fedora Release Engineering - 0.1.0-5.pre1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Jan 17 2009 Tomas Mraz - 0.1.0-4.pre1 +- rebuild with new openssl + +* Tue Nov 25 2008 - Bastien Nocera - 0.1.0-3.pre1 +- Fix possible crasher in libfprint when setting up the fds for polling + +* Mon Nov 24 2008 - Bastien Nocera - 0.1.0-2.pre1 +- And add some API docs + +* Tue Nov 18 2008 - Bastien Nocera - 0.1.0-1.pre1 +- Fix build + +* Tue Nov 04 2008 - Bastien Nocera - 0.1.0-0.pre1 +- Update to 0.1.0-pre1 + +* Tue May 13 2008 Pingou 0.0.5-6 +- Correction on the Build Requires + +* Tue May 13 2008 Pingou 0.0.5-5 +- Correction on the Build Requires + +* Tue May 13 2008 Pingou 0.0.5-4 +- Update the Build Requires due to the change on ImageMagick + +* Tue Feb 19 2008 Fedora Release Engineering - 0.0.5-3 +- Autorebuild for GCC 4.3 + +* Sat Jan 05 2008 Pingou 0.0.5-2 +- Change on the BuildRequires + +* Sat Jan 05 2008 Pingou 0.0.5-1 +- Update to version 0.0.5 + +* Sat Dec 01 2007 Pingou 0.0.4-3 +- Changes on the Requires + +* Sun Nov 25 2007 Pingou 0.0.4-2 +- Changes on the Requires + +* Sat Nov 24 2007 Pingou 0.0.4-1 +- First release