]> git.pld-linux.org Git - packages/libfido2.git/blob - libfido2.spec
- up to 1.3.0
[packages/libfido2.git] / libfido2.spec
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
4 Version:        1.3.0
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
10 # Source0-md5:  1b91a8fd24f1ba833a5dc46abaecd4e9
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:       hidapi-devel >= 0.8.0
35 Requires:       openssl-devel >= 1.1.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 .. \
51         -DCMAKE_INSTALL_LIBDIR=%{_lib} \
52         -DGZIP_PATH=FALSE
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 install -d $RPM_BUILD_ROOT%{_datadir}
63 mv $RPM_BUILD_ROOT{%{_prefix}/man,%{_mandir}}
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %post   -p /sbin/ldconfig
69 %postun -p /sbin/ldconfig
70
71 %files
72 %defattr(644,root,root,755)
73 %doc LICENSE README.adoc
74 %attr(755,root,root) %{_bindir}/fido2-assert
75 %attr(755,root,root) %{_bindir}/fido2-cred
76 %attr(755,root,root) %{_bindir}/fido2-token
77 %attr(755,root,root) %{_libdir}/libfido2.so.*.*.*
78 %attr(755,root,root) %ghost %{_libdir}/libfido2.so.1
79 %attr(755,root,root) %{_libdir}/libsk-libfido2.so
80 %{_mandir}/man1/fido2-assert.1*
81 %{_mandir}/man1/fido2-cred.1*
82 %{_mandir}/man1/fido2-token.1*
83
84 %files devel
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_libdir}/libfido2.so
87 %{_includedir}/fido
88 %{_includedir}/fido.h
89 %{_pkgconfigdir}/libfido2.pc
90 %{_mandir}/man3/*_pk_*.3*
91 %{_mandir}/man3/fido*.3*
This page took 0.086029 seconds and 3 git commands to generate.