From 4457edfdae4137c968ffb55bceab6ba0cde7e37e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Thu, 15 Oct 2020 16:00:16 +0200 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/libfprint#929289033262b4d0be67cbff62029bfd2c923d2a --- .gitignore | 13 ++ gating.yaml | 6 + libfprint.spec | 291 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + tests/run-umockdev.sh | 37 ++++++ tests/tests.yml | 22 ++++ 6 files changed, 370 insertions(+) create mode 100644 gating.yaml create mode 100644 libfprint.spec create mode 100644 sources create mode 100755 tests/run-umockdev.sh create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index e69de29..3d38e51 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,13 @@ +libfprint-0.1.0-pre2.tar.bz2 +libfprint-0.3.0.tar.bz2 +/libfprint-0.4.0.tar.bz2 +/libfprint-0.5.0.tar.xz +/libfprint-0.5.1.tar.xz +/libfprint-0.6.0.tar.xz +/libfprint-0.7.0.tar.xz +/libfprint-0.8.1.tar.xz +/libfprint-0.8.2.tar.xz +/libfprint-1.0.tar.xz +/libfprint-v1.90.1.tar.gz +/libfprint-v1.90.2.tar.gz +/libfprint-v1.90.3.tar.gz diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..d71584a --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_testing +rules: + - !PassingTestCaseRule {test_case_name: dist.depcheck} diff --git a/libfprint.spec b/libfprint.spec new file mode 100644 index 0000000..7c157fa --- /dev/null +++ b/libfprint.spec @@ -0,0 +1,291 @@ +Name: libfprint + +Version: 1.90.3 +Release: 1%{?dist} +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 +ExcludeArch: s390 s390x + +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 +# 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}. + +%prep +%autosetup -S git -n libfprint-v%{version} + +%build +# Include the virtual image driver for integration tests +%meson -Dx11-examples=false -Ddrivers=all +%meson_build + +%install +%meson_install + +%ldconfig_scriptlets + +%check +%meson_test + +%files +%license COPYING +%doc NEWS TODO THANKS AUTHORS README +%{_libdir}/*.so.* +%{_libdir}/girepository-1.0/*.typelib +%{_udevrulesdir}/60-libfprint-2-autosuspend.rules + +%files devel +%doc HACKING.md +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/%{name}-2.pc +%{_datadir}/gir-1.0/*.gir +%{_datadir}/gtk-doc/html/libfprint-2/ + +%changelog +* 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 diff --git a/sources b/sources new file mode 100644 index 0000000..d25e8af --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libfprint-v1.90.3.tar.gz) = 3420df99c0e388af523f74c008fe603d28599d2ca482ec12a777d8b876e959cac946405fb14ba41fa536997ebd6857d945453e1374a0e05cd8f4fb02ca739891 diff --git a/tests/run-umockdev.sh b/tests/run-umockdev.sh new file mode 100755 index 0000000..073f811 --- /dev/null +++ b/tests/run-umockdev.sh @@ -0,0 +1,37 @@ +#!/usr/bin/bash +set -u + +# Switch into the tests directory +cd source/tests || exit 1 + +# check if we need to install additional packages +# which is the case if we are on RHEL 8 +source /etc/os-release || exit 1 + +if [[ "$ID" = *"rhel"* ]] && [[ "$VERSION_ID" == *"8"* ]]; then + dnf config-manager -y --add-repo umockdev.repo + dnf install -y umockdev-devel python3-gobject-base + pip3 install python-dbusmock +fi + +# Each directory in source/tests is a umockdev based test +# discover them +declare -a TESTS=() +for f in *; do + test -d $f && TESTS+=( "$f" ) +done + +export FP_DEVICE_EMULATION=1 + +# execute all the tests, one by one +RESULT=0 +for test in ${TESTS[@]}; do + echo "$test" + ./umockdev-test.py "$test" + RES=$? + echo "$test finished with return code $RES" + echo "" + ((RESULT += $RES)) +done + +exit $RESULT diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..8960255 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,22 @@ +--- +- hosts: localhost + roles: + - role: standard-test-source + tags: + - always + - role: standard-test-basic + tags: + - atomic + - classic + required_packages: + - git + - python3-dbusmock + - umockdev + tests: + - virtual_image: + dir: . + run: source/tests/virtual-image.py + - umockdev: + dir: . + run: run-umockdev.sh +