Hello community, here is the log from the commit of package libfido2 for openSUSE:Factory checked in at 2020-07-06 16:18:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libfido2 (Old) and /work/SRC/openSUSE:Factory/.libfido2.new.3060 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libfido2" Mon Jul 6 16:18:23 2020 rev:2 rq:818558 version:1.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/libfido2/libfido2.changes 2020-05-29 21:36:37.154514523 +0200 +++ /work/SRC/openSUSE:Factory/.libfido2.new.3060/libfido2.changes 2020-07-06 16:19:15.769312900 +0200 @@ -1,0 +2,11 @@ +Fri Jul 3 09:11:31 UTC 2020 - Ismail Dönmez <idon...@suse.com> + +- Create a udev subpackage and ship the udev rule + +------------------------------------------------------------------- +Thu Jul 2 13:03:31 UTC 2020 - Ismail Dönmez <idon...@suse.com> + +- Don't build with hidapi support to fix issues with Yubikey 5Ci + https://github.com/Yubico/libfido2/issues/190 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libfido2.spec ++++++ --- /var/tmp/diff_new_pack.GhFXKn/_old 2020-07-06 16:19:17.613318565 +0200 +++ /var/tmp/diff_new_pack.GhFXKn/_new 2020-07-06 16:19:17.617318577 +0200 @@ -22,17 +22,16 @@ Release: 0 Summary: FIDO U2F and FIDO 2.0 protocols License: BSD-2-Clause -Group: Productivity/Networking/Security URL: https://developers.yubico.com/ Source0: https://developers.yubico.com/libfido2/Releases/%{name}-%{version}.tar.gz Source1: https://developers.yubico.com/libfido2/Releases/%{name}-%{version}.tar.gz.sig BuildRequires: cmake BuildRequires: gcc-c++ -BuildRequires: libhidapi-devel BuildRequires: libopenssl-1_1-devel BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: pkgconfig(libcbor) +BuildRequires: pkgconfig(libudev) %description Provides library functionality for communicating with a FIDO device @@ -40,7 +39,7 @@ %package -n %{name}-%{sover} Summary: FIDO U2F and FIDO 2.0 protocols -Group: System/Libraries +Requires: %{name}-udev Provides: %{name} = %{version} Obsoletes: %{name} < %{version} @@ -51,9 +50,7 @@ %package -n %{name}-devel Summary: Development files for FIDO U2F and FIDO 2.0 protocols -Group: Development/Libraries/C and C++ Requires: %{name}-%{sover} = %{version} -Requires: libhidapi-devel Requires: libopenssl-1_1-devel Conflicts: libfido2-0_4_0 @@ -63,12 +60,17 @@ %package -n %{name}-utils Summary: Utility programs making use of libfido2, a library for FIDO U2F and FIDO 2.0 -Group: Development/Tools/Other Conflicts: libfido2-0_4_0 %description -n %{name}-utils This package contains utilities to use FIDO U2F and FIDO 2.0 protocols. +%package udev +Summary: Utility programs making use of libfido2, a library for FIDO U2F and FIDO 2.0 + +%description udev +This package contains the udev rules for FIDO2 compatible devices. + %prep %setup -q @@ -76,17 +78,27 @@ %define __builder ninja %cmake \ -DCBOR_LIBRARY_DIRS=%{_libdir} \ - -DUSE_HIDAPI=1 + -DUSE_HIDAPI=0 %cmake_build %install %cmake_install +# u2f-host has the same udev rule, use a different name +mkdir -p %{buildroot}%{_udevrulesdir} +install -m 0644 udev/70-u2f.rules %{buildroot}%{_udevrulesdir}/70-fido2.rules + find %{buildroot} -type f -name "*.a" -delete -print %post -n %{name}-%{sover} -p /sbin/ldconfig %postun -n %{name}-%{sover} -p /sbin/ldconfig +%post udev +%{udev_rules_update} + +%postun udev +%{udev_rules_update} + %files -n %{name}-%{sover} %license LICENSE %doc README.adoc @@ -100,6 +112,9 @@ %{_mandir}/man3/* %{_libdir}/pkgconfig/* +%files udev +%{_udevrulesdir}/70-fido2.rules + %files -n %{name}-utils %{_bindir}/fido2-* %{_mandir}/man1/*