]>
Commit | Line | Data |
---|---|---|
e1b64efc ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # build without tests | |
4 | ||
cc549f10 AM |
5 | Summary: Tool for interacting with the PIV applet on a YubiKey NEO |
6 | Name: yubico-piv-tool | |
7 | Version: 1.4.2 | |
8 | Release: 1 | |
9 | License: GPL v3+ | |
10 | Group: Applications | |
cc549f10 AM |
11 | Source0: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz |
12 | # Source0-md5: b03dc5adef8504f822a7586e65f5b33c | |
e1b64efc | 13 | URL: https://developers.yubico.com/yubico-piv-tool/ |
cc549f10 AM |
14 | BuildRequires: openssl-devel |
15 | BuildRequires: pcsc-lite-devel | |
16 | Requires: pcsc-driver-ccid | |
e1b64efc | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
cc549f10 AM |
18 | |
19 | %description | |
20 | The Yubico PIV tool is used for interacting with the Privilege and | |
21 | Identification Card (PIV) applet on a YubiKey NEO. | |
22 | ||
23 | With it you may generate keys on the device, importing keys and | |
24 | certificates, and create certificate requests, and other operations. A | |
25 | shared library and a command-line tool is included. | |
26 | ||
27 | %package devel | |
28 | Summary: Tool for interacting with the PIV applet on a YubiKey NEO | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | ||
31 | %description devel | |
32 | The Yubico PIV tool is used for interacting with the Privilege and | |
33 | Identification Card (PIV) applet on a YubiKey NEO. This package | |
34 | includes development files. | |
35 | ||
cc549f10 AM |
36 | %prep |
37 | %setup -q | |
38 | ||
39 | %build | |
40 | %configure \ | |
41 | --with-backend="pcsc" \ | |
42 | --disable-silent-rules | |
43 | ||
44 | %{__make} | |
45 | ||
46 | %{?with_tests:%{__make} check} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
cc549f10 AM |
50 | %{__make} install \ |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
e1b64efc ER |
53 | rm $RPM_BUILD_ROOT%{_libdir}/libykpiv.{la,a} |
54 | rm $RPM_BUILD_ROOT%{_libdir}/libykcs11.{la,a} | |
cc549f10 AM |
55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
e1b64efc ER |
59 | %post -p /sbin/ldconfig |
60 | %postun -p /sbin/ldconfig | |
cc549f10 AM |
61 | |
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %attr(755,root,root) %{_bindir}/yubico-piv-tool | |
65 | %attr(755,root,root) %ghost %{_libdir}/libykpiv.so.1 | |
66 | %attr(755,root,root) %{_libdir}/libykpiv.so.*.* | |
67 | %attr(755,root,root) %ghost %{_libdir}/libykcs11.so.1 | |
68 | %attr(755,root,root) %{_libdir}/libykcs11.so.*.* | |
69 | %{_mandir}/man1/yubico-piv-tool.1* | |
70 | ||
71 | %files devel | |
72 | %defattr(644,root,root,755) | |
73 | %attr(755,root,root) %{_libdir}/libykpiv.so | |
74 | %attr(755,root,root) %{_libdir}/libykcs11.so | |
75 | %{_pkgconfigdir}/ykpiv.pc | |
76 | %{_pkgconfigdir}/ykcs11.pc | |
77 | %{_includedir}/ykpiv |