diff --git a/openCryptoki.changes b/openCryptoki.changes index 907bdc2..90e2a97 100644 --- a/openCryptoki.changes +++ b/openCryptoki.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 17 20:50:45 UTC 2017 - mpost@suse.com + +- Modified the spec file to check for systemd in the 32bit postun + scriptlet. + ------------------------------------------------------------------- Mon Feb 20 19:48:33 UTC 2017 - mpost@suse.com diff --git a/openCryptoki.spec b/openCryptoki.spec index dc04946..25ae174 100644 --- a/openCryptoki.spec +++ b/openCryptoki.spec @@ -36,7 +36,7 @@ BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ %ifarch s390 s390x -BuildRequires: libica3-devel +BuildRequires: libica-devel %endif BuildRequires: libtool BuildRequires: openldap2-devel @@ -223,8 +223,15 @@ fi %ifarch %openCryptoki_32bit_arch %postun 32bit -# remove the openCryptoki start script +if [ -L %{_sysconfdir}/pkcs11 ] ; then + rm %{_sysconfdir}/pkcs11 +fi +%if %{uses_systemd} +%{service_del_postun pkcsslotd.service} +%else +%{restart_on_update pkcsslotd} %{insserv_cleanup} +%endif %post 32bit # Old library name links