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