]> git.pld-linux.org Git - packages/libfido2.git/blob - libfido2.spec
- rel 3, disable warnnings to build using deprecated openssl api
[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:        3
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 Patch0:         no-Werror.patch
12 URL:            https://developers.yubico.com/libfido2/
13 BuildRequires:  cmake >= 3.0
14 BuildRequires:  hidapi-devel
15 BuildRequires:  libcbor-devel
16 BuildRequires:  openssl-devel >= 1.1.0
17 BuildRequires:  pkgconfig
18 BuildRequires:  udev-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 %patch0 -p1
59
60 %build
61 install -d build
62 cd build
63 # note: exects CMAKE_INSTALL_LIBDIR relative to prefix
64 %cmake .. \
65         -DCMAKE_INSTALL_LIBDIR=%{_lib} \
66         -DGZIP_PATH=FALSE \
67         -DUSE_HIDAPI=1
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.032403 seconds and 3 git commands to generate.