SHA256
1
0
forked from pool/libfido2

- Create a udev subpackage and ship the udev rule

OBS-URL: https://build.opensuse.org/package/show/security/libfido2?expand=0&rev=28
This commit is contained in:
Ismail Dönmez 2020-07-03 10:54:17 +00:00 committed by Git OBS Bridge
parent 3c9be2f3ea
commit 9626d4761e
2 changed files with 18 additions and 11 deletions

View File

@ -1,7 +1,7 @@
-------------------------------------------------------------------
Fri Jul 3 09:11:31 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
- Install the udev rule
- Create a udev subpackage and ship the udev rule
-------------------------------------------------------------------
Thu Jul 2 13:03:31 UTC 2020 - Ismail Dönmez <idonmez@suse.com>

View File

@ -22,7 +22,6 @@ Version: 1.4.0
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
@ -40,7 +39,7 @@ over USB as well as verifying attestation and assertion signatures.
%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 @@ Client-to-Authenticator Protocol (CTAP 1 and 2).
%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,19 @@ use FIDO U2F and FIDO 2.0 protocols.
%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
Conflicts: libfido2-0_4_0
%description udev
This package contains the udev rules for FIDO2 compatible devices.
%prep
%setup -q
@ -88,19 +92,19 @@ install -m 0644 udev/70-u2f.rules %{buildroot}%{_udevrulesdir}/70-fido2.rules
find %{buildroot} -type f -name "*.a" -delete -print
%post -n %{name}-%{sover}
/sbin/ldconfig
%post -n %{name}-%{sover} -p /sbin/ldconfig
%postun -n %{name}-%{sover} -p /sbin/ldconfig
%post udev
%{udev_rules_update}
%postun -n %{name}-%{sover}
/sbin/ldconfig
%postun udev
%{udev_rules_update}
%files -n %{name}-%{sover}
%license LICENSE
%doc README.adoc
%{_libdir}/%{name}.so.*
%{_udevrulesdir}/70-fido2.rules
%files -n %{name}-devel
%{_includedir}/*.h
@ -110,6 +114,9 @@ find %{buildroot} -type f -name "*.a" -delete -print
%{_mandir}/man3/*
%{_libdir}/pkgconfig/*
%files udev
%{_udevrulesdir}/70-fido2.rules
%files -n %{name}-utils
%{_bindir}/fido2-*
%{_mandir}/man1/*