]>
Commit | Line | Data |
---|---|---|
e1b64efc ER |
1 | # |
2 | # Conditional build: | |
c1d612a8 JB |
3 | %bcond_without static_libs # static library |
4 | %bcond_without tests # unit tests | |
e1b64efc | 5 | |
cc549f10 | 6 | Summary: Tool for interacting with the PIV applet on a YubiKey NEO |
c1d612a8 | 7 | Summary(pl.UTF-8): Narzędzie do komunikacji z apletem PIV na YubiKey NEO |
cc549f10 | 8 | Name: yubico-piv-tool |
c1d612a8 | 9 | Version: 1.5.0 |
cc549f10 | 10 | Release: 1 |
c1d612a8 | 11 | License: BSD |
cc549f10 | 12 | Group: Applications |
cc549f10 | 13 | Source0: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz |
c1d612a8 | 14 | # Source0-md5: bcfec9fa2454ba7f7be6cc80632bd41f |
e1b64efc | 15 | URL: https://developers.yubico.com/yubico-piv-tool/ |
c1d612a8 JB |
16 | %{?with_tests:BuildRequires: check-devel >= 0.9.6} |
17 | BuildRequires: help2man | |
cc549f10 AM |
18 | BuildRequires: openssl-devel |
19 | BuildRequires: pcsc-lite-devel | |
c1d612a8 JB |
20 | BuildRequires: pkgconfig |
21 | Requires: %{name}-libs = %{version}-%{release} | |
cc549f10 | 22 | Requires: pcsc-driver-ccid |
e1b64efc | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
cc549f10 AM |
24 | |
25 | %description | |
26 | The Yubico PIV tool is used for interacting with the Privilege and | |
27 | Identification Card (PIV) applet on a YubiKey NEO. | |
28 | ||
29 | With it you may generate keys on the device, importing keys and | |
c1d612a8 JB |
30 | certificates, and create certificate requests, and other operations. |
31 | ||
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. | |
35 | ||
36 | Przy jego pomocy można generować klucze na urządzeniu, importować | |
37 | klucze i certyfikaty, tworzyć żądania certyfikatów oraz wykonywać inne | |
38 | operacje. | |
39 | ||
40 | %package libs | |
41 | Summary: Yubico PIV shared libraries | |
42 | Summary(pl.UTF-8): Biblioteki współdzielone Yubico PIV | |
43 | Group: Libraries | |
44 | ||
45 | %description libs | |
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. | |
49 | ||
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 | |
54 | narzędzie. | |
cc549f10 AM |
55 | |
56 | %package devel | |
c1d612a8 JB |
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 | |
cc549f10 AM |
62 | |
63 | %description 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. | |
67 | ||
c1d612a8 JB |
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. | |
72 | ||
73 | %package static | |
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} | |
78 | ||
79 | %description static | |
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. | |
83 | ||
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. | |
88 | ||
cc549f10 AM |
89 | %prep |
90 | %setup -q | |
91 | ||
92 | %build | |
93 | %configure \ | |
94 | --with-backend="pcsc" \ | |
c1d612a8 JB |
95 | --disable-silent-rules \ |
96 | %{!?with_static_libs:--disable-static} | |
cc549f10 AM |
97 | |
98 | %{__make} | |
99 | ||
100 | %{?with_tests:%{__make} check} | |
101 | ||
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
cc549f10 AM |
104 | %{__make} install \ |
105 | DESTDIR=$RPM_BUILD_ROOT | |
106 | ||
c1d612a8 | 107 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{ykcs11,ykpiv}.la |
cc549f10 AM |
108 | |
109 | %clean | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
c1d612a8 JB |
112 | %post libs -p /sbin/ldconfig |
113 | %postun libs -p /sbin/ldconfig | |
cc549f10 AM |
114 | |
115 | %files | |
116 | %defattr(644,root,root,755) | |
c1d612a8 | 117 | %doc COPYING ChangeLog NEWS README doc/*.adoc |
cc549f10 | 118 | %attr(755,root,root) %{_bindir}/yubico-piv-tool |
c1d612a8 JB |
119 | %{_mandir}/man1/yubico-piv-tool.1* |
120 | ||
121 | %files libs | |
122 | %defattr(644,root,root,755) | |
123 | %attr(755,root,root) %{_libdir}/libykpiv.so.*.*.* | |
cc549f10 | 124 | %attr(755,root,root) %ghost %{_libdir}/libykpiv.so.1 |
c1d612a8 | 125 | %attr(755,root,root) %{_libdir}/libykcs11.so.*.*.* |
cc549f10 | 126 | %attr(755,root,root) %ghost %{_libdir}/libykcs11.so.1 |
cc549f10 AM |
127 | |
128 | %files devel | |
129 | %defattr(644,root,root,755) | |
130 | %attr(755,root,root) %{_libdir}/libykpiv.so | |
131 | %attr(755,root,root) %{_libdir}/libykcs11.so | |
132 | %{_pkgconfigdir}/ykpiv.pc | |
133 | %{_pkgconfigdir}/ykcs11.pc | |
134 | %{_includedir}/ykpiv | |
c1d612a8 JB |
135 | |
136 | %if %{with static_libs} | |
137 | %files static | |
138 | %defattr(644,root,root,755) | |
139 | %{_libdir}/libykpiv.a | |
140 | %{_libdir}/libykcs11.a | |
141 | %endif |