]>
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 | |
fcbcd7d5 AM |
4 | Version: 1.4.0 |
5 | Release: 1 | |
7bd421fe JB |
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 | |
fcbcd7d5 | 10 | # Source0-md5: 829f0d580b456d39ea9213513ffe6667 |
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 | |
16 | BuildRequires: pkgconfig | |
f72e6dcc | 17 | BuildRequires: udev-devel |
7bd421fe JB |
18 | Requires: openssl >= 1.1.0 |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | This package provides library functionality for communicating with a | |
23 | FIDO device over USB as well as verifying attestation and assertion | |
24 | signatures. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Ten pakiet zawiera bibliotekę funkcji do komunikacji z urządzeniami | |
28 | FIDO po USB, a także weryfikowania podpisów poświadczeń i zapewnień. | |
29 | ||
30 | %package devel | |
31 | Summary: Header files for FIDO2 library | |
32 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FIDO2 | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
d74055fe | 35 | Requires: openssl-devel >= 1.1.0 |
7bd421fe JB |
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 | ||
f72e6dcc JB |
43 | %package static |
44 | Summary: Static FIDO2 library | |
45 | Summary(pl.UTF-8): Biblioteka statyczna FIDO2 | |
46 | Group: Development/Libraries | |
47 | Requires: %{name}-devel = %{version}-%{release} | |
48 | ||
49 | %description static | |
50 | Static FIDO2 library. | |
51 | ||
52 | %description static -l pl.UTF-8 | |
53 | Biblioteka statyczna FIDO2. | |
54 | ||
7bd421fe JB |
55 | %prep |
56 | %setup -q | |
57 | ||
58 | %build | |
59 | install -d build | |
60 | cd build | |
61 | # note: exects CMAKE_INSTALL_LIBDIR relative to prefix | |
62 | %cmake .. \ | |
16e6dfe3 | 63 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ |
fcbcd7d5 AM |
64 | -DGZIP_PATH=FALSE \ |
65 | -DUSE_HIDAPI=1 | |
7bd421fe JB |
66 | |
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} -C build install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %post -p /sbin/ldconfig | |
79 | %postun -p /sbin/ldconfig | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | %doc LICENSE README.adoc | |
16e6dfe3 AM |
84 | %attr(755,root,root) %{_bindir}/fido2-assert |
85 | %attr(755,root,root) %{_bindir}/fido2-cred | |
86 | %attr(755,root,root) %{_bindir}/fido2-token | |
7bd421fe | 87 | %attr(755,root,root) %{_libdir}/libfido2.so.*.*.* |
16e6dfe3 | 88 | %attr(755,root,root) %ghost %{_libdir}/libfido2.so.1 |
d74055fe AM |
89 | %{_mandir}/man1/fido2-assert.1* |
90 | %{_mandir}/man1/fido2-cred.1* | |
91 | %{_mandir}/man1/fido2-token.1* | |
7bd421fe JB |
92 | |
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
95 | %attr(755,root,root) %{_libdir}/libfido2.so | |
96 | %{_includedir}/fido | |
97 | %{_includedir}/fido.h | |
98 | %{_pkgconfigdir}/libfido2.pc | |
d74055fe AM |
99 | %{_mandir}/man3/*_pk_*.3* |
100 | %{_mandir}/man3/fido*.3* | |
f72e6dcc JB |
101 | |
102 | %files static | |
103 | %defattr(644,root,root,755) | |
104 | %{_libdir}/libfido2.a |