SHA256
1
0
forked from pool/libfido2
Dominique Leuenberger 2021-04-22 16:03:33 +00:00 committed by Git OBS Bridge
commit c8250896cb
7 changed files with 41 additions and 7 deletions

13
fix-cmake-linking.patch Normal file
View File

@ -0,0 +1,13 @@
diff -Nur libfido2-1.7.0/src/CMakeLists.txt new/src/CMakeLists.txt
--- libfido2-1.7.0/src/CMakeLists.txt 2021-03-29 17:28:56.000000000 +0200
+++ new/src/CMakeLists.txt 2021-04-17 04:08:16.614325721 +0200
@@ -45,6 +45,9 @@
if(USE_HIDAPI)
list(APPEND FIDO_SOURCES hid_hidapi.c)
+ if(NOT WIN32 AND NOT APPLE)
+ list(APPEND FIDO_SOURCES hid_unix.c)
+ endif()
elseif(WIN32)
list(APPEND FIDO_SOURCES hid_win.c)
elseif(APPLE)

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6aed47aafd22be49c38f9281fb88ccd08c98678d9b8c39cdc87d1bb3ea2c63e4
size 413904

Binary file not shown.

3
libfido2-1.7.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:116749b2a6c95f6559439494fcebdbe803dff14037017ad239843c84c59d708e
size 517426

BIN
libfido2-1.7.0.tar.gz.sig Normal file

Binary file not shown.

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Sat Apr 17 01:41:49 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
- Update to version 1.7.0:
* hid_win: detect devices with vendor or product IDs > 0x7fff
* Support for FIDO 2.1 authenticator configuration.
* Support for FIDO 2.1 UV token permissions.
* Support for FIDO 2.1 "credBlobs" and "largeBlobs" extensions.
* New API calls
* New fido_init flag to disable fido_dev_opens U2F fallback
* Experimental NFC support on Linux.
- Enabled hidapi again, issues related to hidapi are fixed upstream
* Added fix-cmake-linking.patch to fix linking
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jan 20 09:46:41 UTC 2021 - Martin Pluskal <mpluskal@suse.com> Wed Jan 20 09:46:41 UTC 2021 - Martin Pluskal <mpluskal@suse.com>

View File

@ -18,20 +18,25 @@
%define sover 1 %define sover 1
Name: libfido2 Name: libfido2
Version: 1.6.0 Version: 1.7.0
Release: 0 Release: 0
Summary: FIDO U2F and FIDO 2.0 protocols Summary: FIDO U2F and FIDO 2.0 protocols
License: BSD-2-Clause License: BSD-2-Clause
Group: Development/Libraries/C and C++
URL: https://developers.yubico.com/ URL: https://developers.yubico.com/
Source0: https://developers.yubico.com/libfido2/Releases/%{name}-%{version}.tar.gz Source0: https://developers.yubico.com/libfido2/Releases/%{name}-%{version}.tar.gz
Source1: https://developers.yubico.com/libfido2/Releases/%{name}-%{version}.tar.gz.sig Source1: https://developers.yubico.com/libfido2/Releases/%{name}-%{version}.tar.gz.sig
# PATCH-FIX-UPSTREAM fix-cmake-linking.patch -- Fix linking when building with hidapi, gh#323
Patch0: fix-cmake-linking.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libopenssl-1_1-devel BuildRequires: libopenssl-1_1-devel
BuildRequires: ninja BuildRequires: ninja
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(hidapi-hidraw)
BuildRequires: pkgconfig(libcbor) BuildRequires: pkgconfig(libcbor)
BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(zlib)
%description %description
Provides library functionality for communicating with a FIDO device Provides library functionality for communicating with a FIDO device
@ -60,6 +65,7 @@ This package contains the header file needed to develop applications that
use FIDO U2F and FIDO 2.0 protocols. use FIDO U2F and FIDO 2.0 protocols.
%package -n %{name}-utils %package -n %{name}-utils
Group: Hardware/Other
Summary: Utility programs making use of libfido2, a library for FIDO U2F and FIDO 2.0 Summary: Utility programs making use of libfido2, a library for FIDO U2F and FIDO 2.0
Conflicts: libfido2-0_4_0 Conflicts: libfido2-0_4_0
Conflicts: libfido2-1_0_0 Conflicts: libfido2-1_0_0
@ -75,14 +81,15 @@ BuildArch: noarch
This package contains the udev rules for FIDO2 compatible devices. This package contains the udev rules for FIDO2 compatible devices.
%prep %prep
%autosetup %autosetup -p1
%build %build
%define __builder ninja %define __builder ninja
%cmake \ %cmake \
-DCBOR_LIBRARY_DIRS=%{_libdir} \ -DCBOR_LIBRARY_DIRS=%{_libdir} \
-DUSE_HIDAPI=0 \ -DBUILD_EXAMPLES=OFF \
-DBUILD_EXAMPLES=OFF -DUSE_HIDAPI=ON \
-DNFC_LINUX=ON
%cmake_build %cmake_build
%install %install