3 %bcond_without static_libs # static library
4 %bcond_without tests # unit tests
6 Summary: Tool for interacting with the PIV applet on a YubiKey NEO
7 Summary(pl.UTF-8): Narzędzie do komunikacji z apletem PIV na YubiKey NEO
13 Source0: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz
14 # Source0-md5: bcfec9fa2454ba7f7be6cc80632bd41f
15 URL: https://developers.yubico.com/yubico-piv-tool/
16 %{?with_tests:BuildRequires: check-devel >= 0.9.6}
17 BuildRequires: help2man
18 BuildRequires: openssl-devel
19 BuildRequires: pcsc-lite-devel
20 BuildRequires: pkgconfig
21 Requires: %{name}-libs = %{version}-%{release}
22 Requires: pcsc-driver-ccid
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The Yubico PIV tool is used for interacting with the Privilege and
27 Identification Card (PIV) applet on a YubiKey NEO.
29 With it you may generate keys on the device, importing keys and
30 certificates, and create certificate requests, and other operations.
32 %description -l pl.UTF-8
33 Narzędzie Yubico PIV Tool służy do komunikacji z apletem PIV
34 (Privilege and Identification card) na urządzeniach YubiKey NEO.
36 Przy jego pomocy można generować klucze na urządzeniu, importować
37 klucze i certyfikaty, tworzyć żądania certyfikatów oraz wykonywać inne
41 Summary: Yubico PIV shared libraries
42 Summary(pl.UTF-8): Biblioteki współdzielone Yubico PIV
46 The Yubico PIV tool is used for interacting with the Privilege and
47 Identification Card (PIV) applet on a YubiKey NEO. This package
48 contains shared libraries for the tool.
50 %description libs -l pl.UTF-8
51 Narzędzie Yubico PIV Tool służy do komunikacji z apletem PIV
52 (Privilege and Identification card) na urządzeniach YubiKey NEO. Ten
53 pakiet zawiera biblioteki współdzielone wykorzystywane przez
57 Summary: Header files for Yubico PIV libraries
58 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Yubico PIV
59 Group: Development/Libraries
60 Requires: %{name}-libs = %{version}-%{release}
61 Requires: openssl-devel
64 The Yubico PIV tool is used for interacting with the Privilege and
65 Identification Card (PIV) applet on a YubiKey NEO. This package
66 includes development files.
68 %description devel -l pl.UTF-8
69 Narzędzie Yubico PIV Tool służy do komunikacji z apletem PIV
70 (Privilege and Identification card) na urządzeniach YubiKey NEO. Ten
71 pakiet zawiera pliki programistyczne.
74 Summary: Yubico PIV static libraries
75 Summary(pl.UTF-8): Biblioteki statyczne Yubico PIV
76 Group: Development/Libraries
77 Requires: %{name}-devel = %{version}-%{release}
80 The Yubico PIV tool is used for interacting with the Privilege and
81 Identification Card (PIV) applet on a YubiKey NEO. This package
82 includes static libraries.
84 %description static -l pl.UTF-8
85 Narzędzie Yubico PIV Tool służy do komunikacji z apletem PIV
86 (Privilege and Identification card) na urządzeniach YubiKey NEO. Ten
87 pakiet zawiera biblioteki statyczne.
94 --with-backend="pcsc" \
95 --disable-silent-rules \
96 %{!?with_static_libs:--disable-static}
101 # disable valgrind, it catches some issues in bash
107 rm -rf $RPM_BUILD_ROOT
109 DESTDIR=$RPM_BUILD_ROOT
111 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{ykcs11,ykpiv}.la
114 rm -rf $RPM_BUILD_ROOT
116 %post libs -p /sbin/ldconfig
117 %postun libs -p /sbin/ldconfig
120 %defattr(644,root,root,755)
121 %doc COPYING ChangeLog NEWS README doc/*.adoc
122 %attr(755,root,root) %{_bindir}/yubico-piv-tool
123 %{_mandir}/man1/yubico-piv-tool.1*
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/libykpiv.so.*.*.*
128 %attr(755,root,root) %ghost %{_libdir}/libykpiv.so.1
129 %attr(755,root,root) %{_libdir}/libykcs11.so.*.*.*
130 %attr(755,root,root) %ghost %{_libdir}/libykcs11.so.1
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/libykpiv.so
135 %attr(755,root,root) %{_libdir}/libykcs11.so
136 %{_pkgconfigdir}/ykpiv.pc
137 %{_pkgconfigdir}/ykcs11.pc
140 %if %{with static_libs}
142 %defattr(644,root,root,755)
143 %{_libdir}/libykpiv.a
144 %{_libdir}/libykcs11.a