]> git.pld-linux.org Git - packages/libfido2.git/blob - libfido2.spec
- package static library (built unconditionally now)
[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.3.1
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:  f5bbdebb31c0c5196e6b7ed8c1acddd5
11 URL:            https://developers.yubico.com/libfido2/
12 BuildRequires:  cmake >= 3.0
13 BuildRequires:  libcbor-devel
14 BuildRequires:  openssl-devel >= 1.1.0
15 BuildRequires:  pkgconfig
16 BuildRequires:  udev-devel
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
36 %description devel
37 Header files for FIDO2 library.
38
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe biblioteki FIDO2.
41
42 %package static
43 Summary:        Static FIDO2 library
44 Summary(pl.UTF-8):      Biblioteka statyczna FIDO2
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 Static FIDO2 library.
50
51 %description static -l pl.UTF-8
52 Biblioteka statyczna FIDO2.
53
54 %prep
55 %setup -q
56
57 %build
58 install -d build
59 cd build
60 # note: exects CMAKE_INSTALL_LIBDIR relative to prefix
61 %cmake .. \
62         -DCMAKE_INSTALL_LIBDIR=%{_lib} \
63         -DGZIP_PATH=FALSE
64
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} -C build install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 install -d $RPM_BUILD_ROOT%{_datadir}
74 %{__mv} $RPM_BUILD_ROOT{%{_prefix}/man,%{_mandir}}
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post   -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %files
83 %defattr(644,root,root,755)
84 %doc LICENSE README.adoc
85 %attr(755,root,root) %{_bindir}/fido2-assert
86 %attr(755,root,root) %{_bindir}/fido2-cred
87 %attr(755,root,root) %{_bindir}/fido2-token
88 %attr(755,root,root) %{_libdir}/libfido2.so.*.*.*
89 %attr(755,root,root) %ghost %{_libdir}/libfido2.so.1
90 %{_mandir}/man1/fido2-assert.1*
91 %{_mandir}/man1/fido2-cred.1*
92 %{_mandir}/man1/fido2-token.1*
93
94 %files devel
95 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_libdir}/libfido2.so
97 %{_includedir}/fido
98 %{_includedir}/fido.h
99 %{_pkgconfigdir}/libfido2.pc
100 %{_mandir}/man3/*_pk_*.3*
101 %{_mandir}/man3/fido*.3*
102
103 %files static
104 %defattr(644,root,root,755)
105 %{_libdir}/libfido2.a
This page took 0.064542 seconds and 4 git commands to generate.