-# TODO
-# - fix linking (libs pulls devel):
-# libfido2-1.3.1-2.x86_64 marks libcbor-devel-0.5.0-1.x86_64 (cap libcbor.so()(64bit))
-# libcbor-devel-0.5.0-1.x86_64 marks libcbor-0.5.0-1.x86_64 (cap libcbor = 0.5.0-1)
Summary: Library functionality for FIDO 2.0, including communication with a device over USB
Summary(pl.UTF-8): Biblioteka funkcji dla FIDO 2.0, wraz z komunikacją z urządzeniem po USB
Name: libfido2
-Version: 1.3.1
-Release: 2
+Version: 1.10.0
+Release: 1
License: BSD
Group: Libraries
-#Source0Download: https://github.com/Yubico/libfido2/releases
+#Source0Download: https://github.com/Yubico/libfido2/tags
Source0: https://github.com/Yubico/libfido2/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: f5bbdebb31c0c5196e6b7ed8c1acddd5
+# Source0-md5: 12cfd0bca3f79f49d3eee3f4429423ac
URL: https://developers.yubico.com/libfido2/
BuildRequires: cmake >= 3.0
+BuildRequires: hidapi-devel
BuildRequires: libcbor-devel
BuildRequires: openssl-devel >= 1.1.0
BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.605
BuildRequires: udev-devel
+BuildRequires: zlib-devel
Requires: openssl >= 1.1.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# note: exects CMAKE_INSTALL_LIBDIR relative to prefix
%cmake .. \
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
- -DGZIP_PATH=FALSE
+ -DGZIP_PATH=FALSE \
+ -DUSE_HIDAPI=ON \
+ -DNFC_LINUX=ON
%{__make}
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}
-%{__mv} $RPM_BUILD_ROOT{%{_prefix}/man,%{_mandir}}
-
%clean
rm -rf $RPM_BUILD_ROOT