1 Summary: An Implementation of PKCS#11 (Cryptoki) v2.11
2 Summary(pl.UTF-8): Implementacja PKCS#11 (Cryptoki) v2.11
7 Group: Applications/System
8 Source0: http://downloads.sourceforge.net/opencryptoki/%{name}-%{version}.tar.gz
9 # Source0-md5: ae8185ee673505dd4779d9b5bed086f2
10 Patch0: %{name}-sh.patch
11 Patch1: %{name}-noroot.patch
12 Patch2: %{name}-notonlysystemd.patch
13 URL: http://opencryptoki.sourceforge.net/
14 BuildRequires: autoconf >= 2.50
15 BuildRequires: automake >= 1.6
17 BuildRequires: libica-devel >= 2.0
19 BuildRequires: libtool >= 2:2
20 BuildRequires: openldap-devel
21 BuildRequires: openssl-devel
22 BuildRequires: rpmbuild(macros) >= 1.647
23 BuildRequires: trousers-devel >= 0.2.9
24 Requires(post,preun): /sbin/chkconfig
25 Requires(post,preun,postun): systemd-units >= 38
26 Requires(postun): /usr/sbin/groupdel
27 Requires(pre): /usr/bin/getgid
28 Requires(pre): /usr/sbin/groupadd
29 Requires: %{name}-libs = %{version}-%{release}
31 Requires: systemd-units >= 38
32 Provides: group(pkcs11)
33 Obsoletes: opencrytoki-module-aeptok
34 Obsoletes: opencrytoki-module-crtok
35 Obsoletes: opencrytoki-module-bcomtok
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define skip_post_check_so .*%{_libdir}/opencryptoki/stdll/libpkcs11_.*\.so.*
41 The openCryptoki package implements the PKCS#11 version 2.11:
42 Cryptographic Token Interface Standard (Cryptoki).
44 %description -l pl.UTF-8
45 Pakiet openCryptoki implementuje standard PKCS#11 w wersji 2.11:
46 Cryptographic Token Interface Standard (Cryptoki).
49 Summary: openCryptoki library
50 Summary(pl.UTF-8): Biblioteka openCryptoki
52 Requires: filesystem >= 4.0-28
55 The openCryptoki library implements the PKCS#11 version 2.11:
56 Cryptographic Token Interface Standard (Cryptoki).
58 %description libs -l pl.UTF-8
59 Biblioteka openCryptoki implementuje standard PKCS#11 w wersji 2.11:
60 Cryptographic Token Interface Standard (Cryptoki).
63 Summary: Header files for openCryptoki library
64 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki openCryptoki
65 Group: Development/Libraries
66 Requires: %{name}-libs = %{version}-%{release}
67 Obsoletes: opencryptoki-static
70 Header files for openCryptoki library.
72 %description devel -l pl.UTF-8
73 Pliki nagłówkowe biblioteki openCryptoki.
75 %package module-ccatok
76 Summary: CCA cryptographics devices (secure-key) support for openCryptoki
77 Summary(pl.UTF-8): Obsługa urządzeń kryptograficznych ICA (z bezpiecznym kluczem) dla openCryptoki
79 Requires: %{name} = %{version}-%{release}
81 %description module-ccatok
82 This package brings the necessary libraries and files to support CCA
83 devices in the openCryptoki stack. CCA is an interface to IBM
84 cryptographic hardware such as IBM 4764 or 4765 that uses the
85 "co-processor" or "secure-key" path.
87 %description module-ccatok -l pl.UTF-8
88 Ten pakiet dostarcza biblioteki i pliki potrzebne do obsługi urządzeń
89 kryptograficznych CCA w stosie openCryptoki. CCA to interfejs do
90 sprzętu kryptograficznego firmy IBM, takiego jak IBM 4764 lub 4765,
91 wykorzystującego "koprocesor" lub ścieżkę "bezpiecznego klucza".
93 %package module-icatok
94 Summary: ICA cryptographics devices (clear-key) support for openCryptoki
95 Summary(pl.UTF-8): Obsługa urządzeń kryptograficznych ICA (z jawnym kluczem) dla openCryptoki
97 Requires: %{name} = %{version}-%{release}
99 %description module-icatok
100 This package brings the necessary libraries and files to support ICA
101 devices in the openCryptoki stack. ICA is an interface to IBM
102 cryptographic hardware such as IBM 4764 or 4765 that uses the
103 "accelerator" or "clear-key" path.
105 %description module-icatok -l pl.UTF-8
106 Ten pakiet dostarcza biblioteki i pliki potrzebne do obsługi urządzeń
107 kryptograficznych ICA w stosie openCryptoki. ICA to interfejs do
108 sprzętu kryptograficznego firmy IBM, takiego jak IBM 4764 lub 4765,
109 wykorzystującego "akcelerator" lub ścieżkę "jawnego klucza".
111 %package module-icsftok
112 Summary: ICSF (Integrated Cryptographic Service Facility) token support for openCryptoki
113 Summary(pl.UTF-8): Obsługa tokenów ICSF (Integrated Cryptographic Service Facility) dla openCryptoki
115 Requires: %{name} = %{version}-%{release}
117 %description module-icsftok
118 This package brings the necessary libraries and files to support ICSF
119 (Integrated Cryptographic Service Facility) remote tokens in the
122 %description module-icsftok -l pl.UTF-8
123 Ten pakiet dostarcza biblioteki i pliki potrzebne do obsługi zdalnych
124 tokenów ICSF (Integrated Cryptographic Service Facility) w stosie
127 %package module-swtok
128 Summary: The software token implementation for openCryptoki
129 Summary(pl.UTF-8): Programowa implementacja tokenu dla openCryptoki
131 Requires: %{name} = %{version}-%{release}
133 %description module-swtok
134 This package brings the software token implementation to use
135 openCryptoki without any specific cryptographic hardware.
137 %description module-swtok -l pl.UTF-8
138 Ten pakiet dostarcza programową implementację tokenu, pozwalającą
139 używać openCryptoki bez żadnego specjalnego sprzętu kryptograficznego.
141 %package module-tpmtok
142 Summary: TPM (Trusted Platform Module) device support for openCryptoki
143 Summary(pl.UTF-8): Obsługa urządzenia TPM (Trusted Platform Module) dla openCryptoki
145 Requires: %{name} = %{version}-%{release}
147 %description module-tpmtok
148 This package brings the necessary libraries and files to support TPM
149 (Trusted Platform Module) devices in the openCryptoki stack.
151 %description module-tpmtok -l pl.UTF-8
152 Ten pakiet dostarcza biblioteki oraz pliki potrzebne do obsługi
153 urządzeń TPM (Trusted Platform Module) w stosie openCryptoki.
178 --with-systemd=%{systemdunitdir}
183 rm -rf $RPM_BUILD_ROOT
186 DESTDIR=$RPM_BUILD_ROOT \
187 initdir=/etc/rc.d/init.d
189 %{__rm} $RPM_BUILD_ROOT%{_libdir}/opencryptoki/stdll/*.la
191 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{pkcscca,pkcsep11_migrate}.1
195 rm -rf $RPM_BUILD_ROOT
198 %groupadd -g 110 pkcs11
201 /sbin/chkconfig --add pkcsslotd
202 %service pkcsslotd restart
203 %systemd_post pkcsslotd.service
206 %systemd_preun pkcsslotd.service
207 if [ "$1" = "0" ]; then
208 %service -q pkcsslotd stop
209 /sbin/chkconfig --del pkcsslotd
214 if [ "$1" = "0" ]; then
218 %post libs -p /sbin/ldconfig
219 %postun libs -p /sbin/ldconfig
222 %defattr(644,root,root,755)
223 %doc AUTHORS COPYRIGHTS ChangeLog FAQ LICENSE README TODO doc/{README.token_data,openCryptoki-HOWTO.pdf}
224 %attr(755,root,root) %{_sbindir}/pkcsconf
225 %attr(755,root,root) %{_sbindir}/pkcsicsf
226 %attr(755,root,root) %{_sbindir}/pkcsslotd
227 %{_libdir}/opencryptoki/methods
228 %{_libdir}/pkcs11/methods
229 %dir %{_sysconfdir}/opencryptoki
230 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opencryptoki/opencryptoki.conf
231 %attr(754,root,root) /etc/rc.d/init.d/pkcsslotd
232 %{systemdunitdir}/pkcsslotd.service
233 %dir /var/lib/opencryptoki
234 %attr(770,root,pkcs11) %dir /var/lock/opencryptoki
235 %{_mandir}/man1/pkcsconf.1*
236 %{_mandir}/man1/pkcsicsf.1*
237 %{_mandir}/man5/opencryptoki.conf.5*
238 %{_mandir}/man7/opencryptoki.7*
239 %{_mandir}/man8/pkcsslotd.8*
242 %defattr(644,root,root,755)
243 /etc/ld.so.conf.d/opencryptoki-*.conf
244 %dir %{_libdir}/opencryptoki
245 %attr(755,root,root) %{_libdir}/opencryptoki/libopencryptoki.so.*.*.*
246 %attr(755,root,root) %ghost %{_libdir}/opencryptoki/libopencryptoki.so.0
247 # symlinked as pkcs11 module, so it's here not in -devel
248 %attr(755,root,root) %{_libdir}/opencryptoki/libopencryptoki.so
249 %attr(755,root,root) %{_libdir}/opencryptoki/PKCS11_API.so
250 %dir %{_libdir}/opencryptoki/stdll
251 %attr(755,root,root) %{_libdir}/pkcs11/libopencryptoki.so
252 %attr(755,root,root) %{_libdir}/pkcs11/PKCS11_API.so
253 %{_libdir}/pkcs11/stdll
256 %defattr(644,root,root,755)
257 %{_libdir}/opencryptoki/libopencryptoki.la
258 %{_includedir}/opencryptoki
262 %defattr(644,root,root,755)
263 %doc doc/{README-IBM_CCA_users,README.cca_stdll,README.pkcscca_migrate}
264 %attr(755,root,root) %{_sbindir}/pkcscca_migrate
265 %attr(755,root,root) %{_sbindir}/pkcscca_migrate.sh
266 %attr(755,root,root) %{_libdir}/opencryptoki/stdll/libpkcs11_cca.so*
267 %attr(755,root,root) %{_libdir}/opencryptoki/stdll/PKCS11_CCA.so
268 %attr(770,root,pkcs11) %dir /var/lib/opencryptoki/ccatok
269 %attr(770,root,pkcs11) %dir /var/lib/opencryptoki/ccatok/TOK_OBJ
270 %attr(770,root,pkcs11) %dir /var/lock/opencryptoki/ccatok
271 %{_mandir}/man1/pkcscca.1*
275 %files module-ep11tok
276 %defattr(644,root,root,755)
277 %doc doc/README.ep11_stdll
278 %attr(755,root,root) %{_sbindir}/pkcsep11_migrate
279 %attr(755,root,root) %{_libdir}/opencryptoki/stdll/libpkcs11_ep11.so*
280 %attr(755,root,root) %{_libdir}/opencryptoki/stdll/PKCS11_EP11.so
281 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opencryptoki/ep11tok.conf
282 %attr(770,root,pkcs11) %dir /var/lib/opencryptoki/ep11tok
283 %attr(770,root,pkcs11) %dir /var/lib/opencryptoki/ep11tok/TOK_OBJ
284 %attr(770,root,pkcs11) %dir /var/lock/opencryptoki/ep11tok
285 %{_mandir}/man1/pkcsep11_migrate.1*
290 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_libdir}/opencryptoki/stdll/libpkcs11_ica.so*
292 %attr(755,root,root) %{_libdir}/opencryptoki/stdll/PKCS11_ICA.so
293 %attr(770,root,pkcs11) %dir /var/lib/opencryptoki/lite
294 %attr(770,root,pkcs11) %dir /var/lib/opencryptoki/lite/TOK_OBJ
295 %attr(770,root,pkcs11) %dir /var/lock/opencryptoki/lite
298 %files module-icsftok
299 %defattr(644,root,root,755)
300 %doc doc/README.icsf_stdll
301 %attr(755,root,root) %{_libdir}/opencryptoki/stdll/libpkcs11_icsf.so*
302 %attr(755,root,root) %{_libdir}/opencryptoki/stdll/PKCS11_ICSF.so
303 %attr(770,root,pkcs11) %dir /var/lib/opencryptoki/icsf
304 %attr(770,root,pkcs11) %dir /var/lock/opencryptoki/icsf
307 %defattr(644,root,root,755)
308 %attr(755,root,root) %{_libdir}/opencryptoki/stdll/libpkcs11_sw.so*
309 %attr(755,root,root) %{_libdir}/opencryptoki/stdll/PKCS11_SW.so
310 %attr(770,root,pkcs11) %dir /var/lib/opencryptoki/swtok
311 %attr(770,root,pkcs11) %dir /var/lib/opencryptoki/swtok/TOK_OBJ
312 %attr(770,root,pkcs11) %dir /var/lock/opencryptoki/swtok
315 %defattr(644,root,root,755)
316 %doc doc/README.tpm_stdll
317 %attr(755,root,root) %{_libdir}/opencryptoki/stdll/libpkcs11_tpm.so*
318 %attr(755,root,root) %{_libdir}/opencryptoki/stdll/PKCS11_TPM.so
319 %attr(770,root,pkcs11) %dir /var/lib/opencryptoki/tpm
320 %attr(770,root,pkcs11) %dir /var/lock/opencryptoki/tpm