]> git.pld-linux.org Git - packages/libfido2.git/blob - libfido2.spec
- new; requires openssl 1.1.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:        0.1.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:  ff1fe068892d16c5922f4774252d94d2
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:       openssl-devel >= 1.1.0
35 Requires:       hidapi-devel >= 0.8.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
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} -C build install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post   -p /sbin/ldconfig
65 %postun -p /sbin/ldconfig
66
67 %files
68 %defattr(644,root,root,755)
69 %doc LICENSE README.adoc
70 %attr(755,root,root) %{_libdir}/libfido2.so.*.*.*
71
72 %files devel
73 %defattr(644,root,root,755)
74 %attr(755,root,root) %{_libdir}/libfido2.so
75 %{_includedir}/fido
76 %{_includedir}/fido.h
77 %{_pkgconfigdir}/libfido2.pc
This page took 0.065662 seconds and 3 git commands to generate.