]>
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 | |
35ac5d2f | 4 | Version: 1.13.0 |
8a79c092 | 5 | Release: 2 |
7bd421fe JB |
6 | License: BSD |
7 | Group: Libraries | |
f5c15251 | 8 | #Source0Download: https://github.com/Yubico/libfido2/tags |
7bd421fe | 9 | Source0: https://github.com/Yubico/libfido2/archive/%{version}/%{name}-%{version}.tar.gz |
35ac5d2f | 10 | # Source0-md5: 000c10073b6f4ac595b8660297e64a97 |
7bd421fe JB |
11 | URL: https://developers.yubico.com/libfido2/ |
12 | BuildRequires: cmake >= 3.0 | |
fcbcd7d5 | 13 | BuildRequires: hidapi-devel |
7bd421fe JB |
14 | BuildRequires: libcbor-devel |
15 | BuildRequires: openssl-devel >= 1.1.0 | |
81c34a79 | 16 | BuildRequires: pcsc-lite-devel |
7bd421fe | 17 | BuildRequires: pkgconfig |
8d80063b | 18 | BuildRequires: rpmbuild(macros) >= 1.605 |
f72e6dcc | 19 | BuildRequires: udev-devel |
afca0c5e | 20 | BuildRequires: zlib-devel |
7bd421fe JB |
21 | Requires: openssl >= 1.1.0 |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | This package provides library functionality for communicating with a | |
26 | FIDO device over USB as well as verifying attestation and assertion | |
27 | signatures. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Ten pakiet zawiera bibliotekę funkcji do komunikacji z urządzeniami | |
31 | FIDO po USB, a także weryfikowania podpisów poświadczeń i zapewnień. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for FIDO2 library | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FIDO2 | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
d74055fe | 38 | Requires: openssl-devel >= 1.1.0 |
7bd421fe JB |
39 | |
40 | %description devel | |
41 | Header files for FIDO2 library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki FIDO2. | |
45 | ||
f72e6dcc JB |
46 | %package static |
47 | Summary: Static FIDO2 library | |
48 | Summary(pl.UTF-8): Biblioteka statyczna FIDO2 | |
49 | Group: Development/Libraries | |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
53 | Static FIDO2 library. | |
54 | ||
55 | %description static -l pl.UTF-8 | |
56 | Biblioteka statyczna FIDO2. | |
57 | ||
7bd421fe JB |
58 | %prep |
59 | %setup -q | |
60 | ||
61 | %build | |
62 | install -d build | |
63 | cd build | |
64 | # note: exects CMAKE_INSTALL_LIBDIR relative to prefix | |
65 | %cmake .. \ | |
35ac5d2f | 66 | -DBUILD_TESTS:BOOL=OFF \ |
16e6dfe3 | 67 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ |
fcbcd7d5 | 68 | -DGZIP_PATH=FALSE \ |
5084ac1e | 69 | -DMANDOC_PATH=FALSE \ |
afca0c5e | 70 | -DUSE_HIDAPI=ON \ |
81c34a79 | 71 | -DUSE_PCSC:BOOL=ON \ |
afca0c5e | 72 | -DNFC_LINUX=ON |
7bd421fe JB |
73 | |
74 | %{__make} | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %{__make} -C build install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc LICENSE README.adoc | |
16e6dfe3 AM |
91 | %attr(755,root,root) %{_bindir}/fido2-assert |
92 | %attr(755,root,root) %{_bindir}/fido2-cred | |
93 | %attr(755,root,root) %{_bindir}/fido2-token | |
7bd421fe | 94 | %attr(755,root,root) %{_libdir}/libfido2.so.*.*.* |
16e6dfe3 | 95 | %attr(755,root,root) %ghost %{_libdir}/libfido2.so.1 |
d74055fe AM |
96 | %{_mandir}/man1/fido2-assert.1* |
97 | %{_mandir}/man1/fido2-cred.1* | |
98 | %{_mandir}/man1/fido2-token.1* | |
7bd421fe JB |
99 | |
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
102 | %attr(755,root,root) %{_libdir}/libfido2.so | |
103 | %{_includedir}/fido | |
104 | %{_includedir}/fido.h | |
105 | %{_pkgconfigdir}/libfido2.pc | |
d74055fe AM |
106 | %{_mandir}/man3/*_pk_*.3* |
107 | %{_mandir}/man3/fido*.3* | |
f72e6dcc JB |
108 | |
109 | %files static | |
110 | %defattr(644,root,root,755) | |
111 | %{_libdir}/libfido2.a |