]> git.pld-linux.org Git - packages/libfido2.git/blob - libfido2.spec
75927c8a6e8c256b2193282bedcba622f34935b6
[packages/libfido2.git] / libfido2.spec
1 # TODO
2 # - fix linking (libs pulls devel):
3 #   libfido2-1.3.1-2.x86_64 marks libcbor-devel-0.5.0-1.x86_64 (cap libcbor.so()(64bit))
4 #    libcbor-devel-0.5.0-1.x86_64 marks libcbor-0.5.0-1.x86_64 (cap libcbor = 0.5.0-1)
5 Summary:        Library functionality for FIDO 2.0, including communication with a device over USB
6 Summary(pl.UTF-8):      Biblioteka funkcji dla FIDO 2.0, wraz z komunikacją z urządzeniem po USB
7 Name:           libfido2
8 Version:        1.3.1
9 Release:        2
10 License:        BSD
11 Group:          Libraries
12 #Source0Download: https://github.com/Yubico/libfido2/releases
13 Source0:        https://github.com/Yubico/libfido2/archive/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5:  f5bbdebb31c0c5196e6b7ed8c1acddd5
15 URL:            https://developers.yubico.com/libfido2/
16 BuildRequires:  cmake >= 3.0
17 BuildRequires:  libcbor-devel
18 BuildRequires:  openssl-devel >= 1.1.0
19 BuildRequires:  pkgconfig
20 BuildRequires:  udev-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
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} -C build install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 install -d $RPM_BUILD_ROOT%{_datadir}
78 %{__mv} $RPM_BUILD_ROOT{%{_prefix}/man,%{_mandir}}
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.055135 seconds and 2 git commands to generate.