]> git.pld-linux.org Git - packages/libfido2.git/blob - libfido2.spec
up to 1.11.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.11.0
5 Release:        1
6 License:        BSD
7 Group:          Libraries
8 #Source0Download: https://github.com/Yubico/libfido2/tags
9 Source0:        https://github.com/Yubico/libfido2/archive/%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  7997b34ff0eb49029e3d9b56b4e14bde
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:  pcsc-lite-devel
17 BuildRequires:  pkgconfig
18 BuildRequires:  rpmbuild(macros) >= 1.605
19 BuildRequires:  udev-devel
20 BuildRequires:  zlib-devel
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}
38 Requires:       openssl-devel >= 1.1.0
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
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
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 .. \
66         -DCMAKE_INSTALL_LIBDIR=%{_lib} \
67         -DGZIP_PATH=FALSE \
68         -DUSE_HIDAPI=ON \
69         -DUSE_PCSC:BOOL=ON \
70         -DNFC_LINUX=ON
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} -C build install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc LICENSE README.adoc
89 %attr(755,root,root) %{_bindir}/fido2-assert
90 %attr(755,root,root) %{_bindir}/fido2-cred
91 %attr(755,root,root) %{_bindir}/fido2-token
92 %attr(755,root,root) %{_libdir}/libfido2.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libfido2.so.1
94 %{_mandir}/man1/fido2-assert.1*
95 %{_mandir}/man1/fido2-cred.1*
96 %{_mandir}/man1/fido2-token.1*
97
98 %files devel
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/libfido2.so
101 %{_includedir}/fido
102 %{_includedir}/fido.h
103 %{_pkgconfigdir}/libfido2.pc
104 %{_mandir}/man3/*_pk_*.3*
105 %{_mandir}/man3/fido*.3*
106
107 %files static
108 %defattr(644,root,root,755)
109 %{_libdir}/libfido2.a
This page took 0.106355 seconds and 4 git commands to generate.