]> git.pld-linux.org Git - packages/opencryptoki.git/blame - opencryptoki.spec
- updated to 3.4.1
[packages/opencryptoki.git] / opencryptoki.spec
CommitLineData
88be3d4b
JB
1Summary: An Implementation of PKCS#11 (Cryptoki) v2.11
2Summary(pl.UTF-8): Implementacja PKCS#11 (Cryptoki) v2.11
3Name: opencryptoki
aabc4c14 4Version: 3.4.1
88be3d4b
JB
5Release: 1
6License: CPL v0.5
7Group: Applications/System
aabc4c14
JB
8Source0: http://downloads.sourceforge.net/opencryptoki/%{name}-v%{version}.tgz
9# Source0-md5: 100d587be68f299b1f196aba0e6e0b76
10Patch0: %{name}-sh.patch
11Patch1: %{name}-noroot.patch
12Patch2: %{name}-notonlysystemd.patch
88be3d4b 13URL: http://opencryptoki.sourceforge.net/
20a70d11
JB
14BuildRequires: autoconf
15BuildRequires: automake >= 1.6
20a70d11
JB
16%ifarch s390 s390x
17BuildRequires: libica-devel >= 2.0
18%endif
fb843822
JB
19BuildRequires: libtool >= 2:2
20BuildRequires: openldap-devel
88be3d4b 21BuildRequires: openssl-devel
fb843822 22BuildRequires: rpmbuild(macros) >= 1.647
9381ad4d 23BuildRequires: trousers-devel >= 0.2.9
fb843822
JB
24Requires(post,preun): /sbin/chkconfig
25Requires(post,preun,postun): systemd-units >= 38
26Requires(postun): /usr/sbin/groupdel
27Requires(pre): /usr/bin/getgid
28Requires(pre): /usr/sbin/groupadd
88be3d4b 29Requires: %{name}-libs = %{version}-%{release}
fb843822
JB
30Requires: rc-scripts
31Requires: systemd-units >= 38
32Provides: group(pkcs11)
aabc4c14
JB
33Obsoletes: opencrytoki-module-aeptok
34Obsoletes: opencrytoki-module-crtok
35Obsoletes: opencrytoki-module-bcomtok
88be3d4b
JB
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
cb394d7c
JB
38%define skip_post_check_so .*%{_libdir}/opencryptoki/stdll/libpkcs11_.*\.so.*
39
88be3d4b
JB
40%description
41The openCryptoki package implements the PKCS#11 version 2.11:
42Cryptographic Token Interface Standard (Cryptoki).
43
44%description -l pl.UTF-8
45Pakiet openCryptoki implementuje standard PKCS#11 w wersji 2.11:
46Cryptographic Token Interface Standard (Cryptoki).
47
48%package libs
49Summary: openCryptoki library
197d46d2 50Summary(pl.UTF-8): Biblioteka openCryptoki
88be3d4b 51Group: Libraries
fb843822 52Requires: filesystem >= 4.0-28
88be3d4b
JB
53
54%description libs
55The openCryptoki library implements the PKCS#11 version 2.11:
56Cryptographic Token Interface Standard (Cryptoki).
57
a0b6c671 58%description libs -l pl.UTF-8
88be3d4b
JB
59Biblioteka openCryptoki implementuje standard PKCS#11 w wersji 2.11:
60Cryptographic Token Interface Standard (Cryptoki).
61
62%package devel
63Summary: Header files for openCryptoki library
64Summary(pl.UTF-8): Pliki nagłówkowe biblioteki openCryptoki
65Group: Development/Libraries
66Requires: %{name}-libs = %{version}-%{release}
20a70d11 67Obsoletes: opencryptoki-static
88be3d4b
JB
68
69%description devel
70Header files for openCryptoki library.
71
72%description devel -l pl.UTF-8
73Pliki nagłówkowe biblioteki openCryptoki.
74
fb843822
JB
75%package module-ccatok
76Summary: CCA cryptographics devices (secure-key) support for openCryptoki
77Summary(pl.UTF-8): Obsługa urządzeń kryptograficznych ICA (z bezpiecznym kluczem) dla openCryptoki
78Group: Libraries
79Requires: %{name} = %{version}-%{release}
80
81%description module-ccatok
82This package brings the necessary libraries and files to support CCA
83devices in the openCryptoki stack. CCA is an interface to IBM
84cryptographic hardware such as IBM 4764 or 4765 that uses the
85"co-processor" or "secure-key" path.
86
87%description module-ccatok -l pl.UTF-8
88Ten pakiet dostarcza biblioteki i pliki potrzebne do obsługi urządzeń
89kryptograficznych CCA w stosie openCryptoki. CCA to interfejs do
90sprzętu kryptograficznego firmy IBM, takiego jak IBM 4764 lub 4765,
91wykorzystującego "koprocesor" lub ścieżkę "bezpiecznego klucza".
92
fb843822
JB
93%package module-icatok
94Summary: ICA cryptographics devices (clear-key) support for openCryptoki
95Summary(pl.UTF-8): Obsługa urządzeń kryptograficznych ICA (z jawnym kluczem) dla openCryptoki
96Group: Libraries
97Requires: %{name} = %{version}-%{release}
98
99%description module-icatok
100This package brings the necessary libraries and files to support ICA
101devices in the openCryptoki stack. ICA is an interface to IBM
102cryptographic hardware such as IBM 4764 or 4765 that uses the
103"accelerator" or "clear-key" path.
104
105%description module-icatok -l pl.UTF-8
106Ten pakiet dostarcza biblioteki i pliki potrzebne do obsługi urządzeń
107kryptograficznych ICA w stosie openCryptoki. ICA to interfejs do
108sprzętu kryptograficznego firmy IBM, takiego jak IBM 4764 lub 4765,
109wykorzystującego "akcelerator" lub ścieżkę "jawnego klucza".
110
111%package module-icsftok
112Summary: ICSF (Integrated Cryptographic Service Facility) token support for openCryptoki
113Summary(pl.UTF-8): Obsługa tokenów ICSF (Integrated Cryptographic Service Facility) dla openCryptoki
114Group: Libraries
115Requires: %{name} = %{version}-%{release}
116
117%description module-icsftok
118This package brings the necessary libraries and files to support ICSF
119(Integrated Cryptographic Service Facility) remote tokens in the
120openCryptoki stack.
121
122%description module-icsftok -l pl.UTF-8
123Ten pakiet dostarcza biblioteki i pliki potrzebne do obsługi zdalnych
124tokenów ICSF (Integrated Cryptographic Service Facility) w stosie
125openCryptoki.
126
127%package module-swtok
128Summary: The software token implementation for openCryptoki
129Summary(pl.UTF-8): Programowa implementacja tokenu dla openCryptoki
130Group: Libraries
131Requires: %{name} = %{version}-%{release}
132
133%description module-swtok
134This package brings the software token implementation to use
135openCryptoki without any specific cryptographic hardware.
136
137%description module-swtok -l pl.UTF-8
138Ten pakiet dostarcza programową implementację tokenu, pozwalającą
139używać openCryptoki bez żadnego specjalnego sprzętu kryptograficznego.
140
141%package module-tpmtok
142Summary: TPM (Trusted Platform Module) device support for openCryptoki
143Summary(pl.UTF-8): Obsługa urządzenia TPM (Trusted Platform Module) dla openCryptoki
144Group: Libraries
145Requires: %{name} = %{version}-%{release}
146
147%description module-tpmtok
148This package brings the necessary libraries and files to support TPM
149(Trusted Platform Module) devices in the openCryptoki stack.
150
151%description module-tpmtok -l pl.UTF-8
152Ten pakiet dostarcza biblioteki oraz pliki potrzebne do obsługi
153urządzeń TPM (Trusted Platform Module) w stosie openCryptoki.
154
155
88be3d4b 156%prep
fb843822 157%setup -q -n %{name}
9381ad4d 158%patch0 -p1
20a70d11
JB
159%patch1 -p1
160%patch2 -p1
88be3d4b
JB
161
162%build
20a70d11
JB
163%{__libtoolize}
164%{__aclocal}
165%{__autoconf}
166%{__automake}
88be3d4b 167%configure \
20a70d11
JB
168%ifarch s390 s390x
169 --enable-ccatok \
aabc4c14 170 --enable-ep11tok \
88be3d4b 171 --enable-icatok \
20a70d11
JB
172%else
173 --disable-ccatok \
aabc4c14 174 --disable-ep11tok \
20a70d11
JB
175 --disable-icatok \
176%endif
fb843822
JB
177 --enable-tpmtok \
178 --with-systemd=%{systemdunitdir}
88be3d4b
JB
179
180%{__make}
181
182%install
183rm -rf $RPM_BUILD_ROOT
184
185%{__make} install \
186 DESTDIR=$RPM_BUILD_ROOT \
187 initdir=/etc/rc.d/init.d
188
20a70d11 189%{__rm} $RPM_BUILD_ROOT%{_libdir}/opencryptoki/stdll/*.la
aabc4c14
JB
190%ifnarch s390 s390x
191%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{pkcscca,pkcsep11_migrate}.1
192%endif
88be3d4b
JB
193
194%clean
195rm -rf $RPM_BUILD_ROOT
196
fb843822
JB
197%pre
198%groupadd -g 110 pkcs11
199
200%post
201/sbin/chkconfig --add pkcsslotd
202%service pkcsslotd restart
203%systemd_post pkcsslotd.service
204
205%preun
206%systemd_preun pkcsslotd.service
207if [ "$1" = "0" ]; then
208 %service -q pkcsslotd stop
209 /sbin/chkconfig --del pkcsslotd
210fi
211
212%postun
213%systemd_reload
214if [ "$1" = "0" ]; then
215 %groupremove pkcs11
216fi
217
218%post libs -p /sbin/ldconfig
219%postun libs -p /sbin/ldconfig
88be3d4b
JB
220
221%files
222%defattr(644,root,root,755)
fb843822 223%doc AUTHORS COPYRIGHTS ChangeLog FAQ LICENSE README TODO doc/{README.token_data,openCryptoki-HOWTO.pdf}
88be3d4b 224%attr(755,root,root) %{_sbindir}/pkcsconf
fb843822 225%attr(755,root,root) %{_sbindir}/pkcsicsf
88be3d4b 226%attr(755,root,root) %{_sbindir}/pkcsslotd
88be3d4b
JB
227%{_libdir}/opencryptoki/methods
228%{_libdir}/pkcs11/methods
fb843822
JB
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
9381ad4d 235%{_mandir}/man1/pkcsconf.1*
fb843822
JB
236%{_mandir}/man1/pkcsicsf.1*
237%{_mandir}/man5/opencryptoki.conf.5*
9381ad4d
JB
238%{_mandir}/man7/opencryptoki.7*
239%{_mandir}/man8/pkcsslotd.8*
88be3d4b
JB
240
241%files libs
242%defattr(644,root,root,755)
243/etc/ld.so.conf.d/opencryptoki-*.conf
244%dir %{_libdir}/opencryptoki
fb843822
JB
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
88be3d4b
JB
249%attr(755,root,root) %{_libdir}/opencryptoki/PKCS11_API.so
250%dir %{_libdir}/opencryptoki/stdll
88be3d4b
JB
251%attr(755,root,root) %{_libdir}/pkcs11/libopencryptoki.so
252%attr(755,root,root) %{_libdir}/pkcs11/PKCS11_API.so
253%{_libdir}/pkcs11/stdll
254
255%files devel
256%defattr(644,root,root,755)
257%{_libdir}/opencryptoki/libopencryptoki.la
258%{_includedir}/opencryptoki
fb843822 259
fb843822
JB
260%ifarch s390 s390x
261%files module-ccatok
262%defattr(644,root,root,755)
aabc4c14 263%doc doc/{README-IBM_CCA_users,README.cca_stdll,README.pkcscca_migrate}
56396f3b
JB
264%attr(755,root,root) %{_sbindir}/pkcscca_migrate
265%attr(755,root,root) %{_sbindir}/pkcscca_migrate.sh
fb843822
JB
266%attr(755,root,root) %{_libdir}/opencryptoki/stdll/libpkcs11_cca.so*
267%attr(755,root,root) %{_libdir}/opencryptoki/stdll/PKCS11_CCA.so
aabc4c14
JB
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*
fb843822
JB
272%endif
273
aabc4c14
JB
274%ifarch s390 s390x
275%files module-ep11tok
fb843822 276%defattr(644,root,root,755)
aabc4c14
JB
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*
fb843822
JB
286%endif
287
288%ifarch s390 s390x
289%files module-icatok
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
aabc4c14
JB
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
fb843822
JB
296%endif
297
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
305
306%files module-swtok
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
313
314%files module-tpmtok
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
This page took 0.101716 seconds and 4 git commands to generate.