2 Summary: Tool for interacting with the PIV applet on a YubiKey NEO
8 URL: https://developers.yubico.com/yubico-piv-tool/
9 Source0: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz
10 # Source0-md5: b03dc5adef8504f822a7586e65f5b33c
11 BuildRequires: chrpath
12 BuildRequires: openssl-devel
13 BuildRequires: pcsc-lite-devel
14 Requires: pcsc-driver-ccid
17 The Yubico PIV tool is used for interacting with the Privilege and
18 Identification Card (PIV) applet on a YubiKey NEO.
20 With it you may generate keys on the device, importing keys and
21 certificates, and create certificate requests, and other operations. A
22 shared library and a command-line tool is included.
25 Summary: Tool for interacting with the PIV applet on a YubiKey NEO
26 Requires: %{name} = %{version}-%{release}
29 The Yubico PIV tool is used for interacting with the Privilege and
30 Identification Card (PIV) applet on a YubiKey NEO. This package
31 includes development files.
39 --with-backend="pcsc" \
40 --disable-silent-rules
44 %{?with_tests:%{__make} check}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
52 chrpath --delete $RPM_BUILD_ROOT%{_bindir}/yubico-piv-tool
53 chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libykcs11.so.*
55 rm -f $RPM_BUILD_ROOT%{_libdir}/libykpiv.{la,a}
56 rm -f $RPM_BUILD_ROOT%{_libdir}/libykcs11.{la,a}
59 rm -rf $RPM_BUILD_ROOT
61 %post -p /sbin/ldconfig
62 %postun -p /sbin/ldconfig
65 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_bindir}/yubico-piv-tool
67 %attr(755,root,root) %ghost %{_libdir}/libykpiv.so.1
68 %attr(755,root,root) %{_libdir}/libykpiv.so.*.*
69 %attr(755,root,root) %ghost %{_libdir}/libykcs11.so.1
70 %attr(755,root,root) %{_libdir}/libykcs11.so.*.*
71 %{_mandir}/man1/yubico-piv-tool.1*
74 %defattr(644,root,root,755)
75 %attr(755,root,root) %{_libdir}/libykpiv.so
76 %attr(755,root,root) %{_libdir}/libykcs11.so
77 %{_pkgconfigdir}/ykpiv.pc
78 %{_pkgconfigdir}/ykcs11.pc