3 %bcond_without tests # build without tests
5 Summary: Tool for interacting with the PIV applet on a YubiKey NEO
11 Source0: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz
12 # Source0-md5: bdada97514316bd7d712f8dfc6ee6a5e
13 URL: https://developers.yubico.com/yubico-piv-tool/
14 BuildRequires: openssl-devel
15 BuildRequires: pcsc-lite-devel
16 Requires: pcsc-driver-ccid
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 The Yubico PIV tool is used for interacting with the Privilege and
21 Identification Card (PIV) applet on a YubiKey NEO.
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.
28 Summary: Tool for interacting with the PIV applet on a YubiKey NEO
29 Requires: %{name} = %{version}-%{release}
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.
41 --with-backend="pcsc" \
42 --disable-silent-rules
46 %{?with_tests:%{__make} check}
49 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
53 rm $RPM_BUILD_ROOT%{_libdir}/libykpiv.{la,a}
54 rm $RPM_BUILD_ROOT%{_libdir}/libykcs11.{la,a}
57 rm -rf $RPM_BUILD_ROOT
59 %post -p /sbin/ldconfig
60 %postun -p /sbin/ldconfig
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*
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