]> git.pld-linux.org Git - packages/libfido2.git/blame - libfido2.spec
- up to 1.2.0
[packages/libfido2.git] / libfido2.spec
CommitLineData
7bd421fe
JB
1Summary: Library functionality for FIDO 2.0, including communication with a device over USB
2Summary(pl.UTF-8): Biblioteka funkcji dla FIDO 2.0, wraz z komunikacją z urządzeniem po USB
3Name: libfido2
16e6dfe3 4Version: 1.2.0
7bd421fe
JB
5Release: 1
6License: BSD
7Group: Libraries
8#Source0Download: https://github.com/Yubico/libfido2/releases
9Source0: https://github.com/Yubico/libfido2/archive/%{version}/%{name}-%{version}.tar.gz
16e6dfe3 10# Source0-md5: 3075949f4683d3960871d4c23d6f4089
7bd421fe
JB
11URL: https://developers.yubico.com/libfido2/
12BuildRequires: cmake >= 3.0
13BuildRequires: hidapi-devel >= 0.8.0
14BuildRequires: libcbor-devel
15BuildRequires: openssl-devel >= 1.1.0
16BuildRequires: pkgconfig
17Requires: openssl >= 1.1.0
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21This package provides library functionality for communicating with a
22FIDO device over USB as well as verifying attestation and assertion
23signatures.
24
25%description -l pl.UTF-8
26Ten pakiet zawiera bibliotekę funkcji do komunikacji z urządzeniami
27FIDO po USB, a także weryfikowania podpisów poświadczeń i zapewnień.
28
29%package devel
30Summary: Header files for FIDO2 library
31Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FIDO2
32Group: Development/Libraries
33Requires: %{name} = %{version}-%{release}
34Requires: openssl-devel >= 1.1.0
35Requires: hidapi-devel >= 0.8.0
36
37%description devel
38Header files for FIDO2 library.
39
40%description devel -l pl.UTF-8
41Pliki nagłówkowe biblioteki FIDO2.
42
43%prep
44%setup -q
45
46%build
47install -d build
48cd build
49# note: exects CMAKE_INSTALL_LIBDIR relative to prefix
50%cmake .. \
16e6dfe3
AM
51 -DCMAKE_INSTALL_LIBDIR=%{_lib} \
52 -DGZIP_PATH=FALSE
7bd421fe
JB
53
54%{__make}
55
56%install
57rm -rf $RPM_BUILD_ROOT
58
59%{__make} -C build install \
60 DESTDIR=$RPM_BUILD_ROOT
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%post -p /sbin/ldconfig
66%postun -p /sbin/ldconfig
67
68%files
69%defattr(644,root,root,755)
70%doc LICENSE README.adoc
16e6dfe3
AM
71%attr(755,root,root) %{_bindir}/fido2-assert
72%attr(755,root,root) %{_bindir}/fido2-cred
73%attr(755,root,root) %{_bindir}/fido2-token
7bd421fe 74%attr(755,root,root) %{_libdir}/libfido2.so.*.*.*
16e6dfe3 75%attr(755,root,root) %ghost %{_libdir}/libfido2.so.1
7bd421fe
JB
76
77%files devel
78%defattr(644,root,root,755)
79%attr(755,root,root) %{_libdir}/libfido2.so
80%{_includedir}/fido
81%{_includedir}/fido.h
82%{_pkgconfigdir}/libfido2.pc
This page took 0.148284 seconds and 4 git commands to generate.