]> git.pld-linux.org Git - packages/libfido2.git/blob - libfido2.spec
Release 2 (by relup.sh)
[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.5.0
5 Release:        2
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:  0ec7d4a249eec0982576c0dbf8f1ffad
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 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}
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 %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
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 .. \
63         -DCMAKE_INSTALL_LIBDIR=%{_lib} \
64         -DGZIP_PATH=FALSE \
65         -DUSE_HIDAPI=1
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
84 %attr(755,root,root) %{_bindir}/fido2-assert
85 %attr(755,root,root) %{_bindir}/fido2-cred
86 %attr(755,root,root) %{_bindir}/fido2-token
87 %attr(755,root,root) %{_libdir}/libfido2.so.*.*.*
88 %attr(755,root,root) %ghost %{_libdir}/libfido2.so.1
89 %{_mandir}/man1/fido2-assert.1*
90 %{_mandir}/man1/fido2-cred.1*
91 %{_mandir}/man1/fido2-token.1*
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
99 %{_mandir}/man3/*_pk_*.3*
100 %{_mandir}/man3/fido*.3*
101
102 %files static
103 %defattr(644,root,root,755)
104 %{_libdir}/libfido2.a
This page took 0.108735 seconds and 3 git commands to generate.