SHA256
1
0
forked from pool/openCryptoki
Dominique Leuenberger 2018-11-30 15:32:50 +00:00 committed by Git OBS Bridge
commit 3087c3c1ce
2 changed files with 18 additions and 13 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Nov 29 22:45:36 UTC 2018 - mpost@suse.com
- Don't hide error messages from the groupadd command. To eliminate
a potentially common one, check to see if the pkcs11 group is
already defined before trying to add it.
- Update the summary for the -devel package.
- Changed several PreReq entries to Requires(pre) as a result of
the output from spec-cleaner. Removed a couple of obsolete lines.
- Removed obsolete check for whether systemd is in use or not.
-------------------------------------------------------------------
Fri Nov 16 15:00:52 UTC 2018 - mpost@suse.com

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -25,12 +25,6 @@
%define pkcs11_group_id 64
%define oc_cvs_tag opencryptoki
%if 0%{?suse_version} > 1220
%define uses_systemd 1
%else
%define uses_systemd 0
%endif
Name: openCryptoki
Version: 3.11.0
Release: 0
@ -57,10 +51,10 @@ BuildRequires: pkgconfig
BuildRequires: pwdutils
BuildRequires: trousers-devel
BuildRequires: pkgconfig(systemd)
PreReq: %{_bindir}/id
PreReq: %{_sbindir}/groupadd
PreReq: %{_sbindir}/usermod
PreReq: /bin/sed
Requires(pre): %{_bindir}/getent
Requires(pre): %{_sbindir}/groupadd
Requires(pre): %{_sbindir}/usermod
# IBM maintains openCryptoki on these architectures:
ExclusiveArch: %{openCryptoki_32bit_arch} %{openCryptoki_64bit_arch}
%{?systemd_requires}
@ -76,7 +70,7 @@ coprocessor (with the PKCS#11 firmware loaded) and the IBM eServer
Cryptographic Accelerator (FC 4960 on pSeries).
%package devel
Summary: An Implementation of PKCS#11 (Cryptoki) v2.01 for IBM Cryptographic Hardware
Summary: Development files for openCryptoki, a PKCS#11 implementation for IBM hardware
Group: Development/Languages/C and C++
Requires: glibc-devel
Requires: libopenssl-devel
@ -166,7 +160,7 @@ rm -f %{buildroot}%{_libdir}/opencryptoki/methods
%{service_add_pre pkcsslotd.service}
# autobuild:/work/cd/lib/misc/group
# openCryptoki pkcs11:x:64:
%{_sbindir}/groupadd -g %{pkcs11_group_id} -r pkcs11 2>/dev/null || true
%{_bindir}/getent group %{pkcs11_group_id} >/dev/null || %{_sbindir}/groupadd -g %{pkcs11_group_id} -r pkcs11 || true
%{_sbindir}/usermod -a -G pkcs11 root
%preun