]>
Commit | Line | Data |
---|---|---|
7bd421fe JB |
1 | Summary: Library functionality for FIDO 2.0, including communication with a device over USB |
2 | Summary(pl.UTF-8): Biblioteka funkcji dla FIDO 2.0, wraz z komunikacją z urządzeniem po USB | |
3 | Name: libfido2 | |
16e6dfe3 | 4 | Version: 1.2.0 |
7bd421fe JB |
5 | Release: 1 |
6 | License: BSD | |
7 | Group: Libraries | |
8 | #Source0Download: https://github.com/Yubico/libfido2/releases | |
9 | Source0: https://github.com/Yubico/libfido2/archive/%{version}/%{name}-%{version}.tar.gz | |
16e6dfe3 | 10 | # Source0-md5: 3075949f4683d3960871d4c23d6f4089 |
7bd421fe JB |
11 | URL: https://developers.yubico.com/libfido2/ |
12 | BuildRequires: cmake >= 3.0 | |
13 | BuildRequires: hidapi-devel >= 0.8.0 | |
14 | BuildRequires: libcbor-devel | |
15 | BuildRequires: openssl-devel >= 1.1.0 | |
16 | BuildRequires: pkgconfig | |
17 | Requires: openssl >= 1.1.0 | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | This package provides library functionality for communicating with a | |
22 | FIDO device over USB as well as verifying attestation and assertion | |
23 | signatures. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Ten pakiet zawiera bibliotekę funkcji do komunikacji z urządzeniami | |
27 | FIDO po USB, a także weryfikowania podpisów poświadczeń i zapewnień. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for FIDO2 library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FIDO2 | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | Requires: openssl-devel >= 1.1.0 | |
35 | Requires: hidapi-devel >= 0.8.0 | |
36 | ||
37 | %description devel | |
38 | Header files for FIDO2 library. | |
39 | ||
40 | %description devel -l pl.UTF-8 | |
41 | Pliki nagłówkowe biblioteki FIDO2. | |
42 | ||
43 | %prep | |
44 | %setup -q | |
45 | ||
46 | %build | |
47 | install -d build | |
48 | cd build | |
49 | # note: exects CMAKE_INSTALL_LIBDIR relative to prefix | |
50 | %cmake .. \ | |
16e6dfe3 AM |
51 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ |
52 | -DGZIP_PATH=FALSE | |
7bd421fe JB |
53 | |
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} -C build install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %post -p /sbin/ldconfig | |
66 | %postun -p /sbin/ldconfig | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc LICENSE README.adoc | |
16e6dfe3 AM |
71 | %attr(755,root,root) %{_bindir}/fido2-assert |
72 | %attr(755,root,root) %{_bindir}/fido2-cred | |
73 | %attr(755,root,root) %{_bindir}/fido2-token | |
7bd421fe | 74 | %attr(755,root,root) %{_libdir}/libfido2.so.*.*.* |
16e6dfe3 | 75 | %attr(755,root,root) %ghost %{_libdir}/libfido2.so.1 |
7bd421fe JB |
76 | |
77 | %files devel | |
78 | %defattr(644,root,root,755) | |
79 | %attr(755,root,root) %{_libdir}/libfido2.so | |
80 | %{_includedir}/fido | |
81 | %{_includedir}/fido.h | |
82 | %{_pkgconfigdir}/libfido2.pc |