tst
OBS-URL: https://build.opensuse.org/package/show/security/openCryptoki?expand=0&rev=7
This commit is contained in:
parent
9df010dfe3
commit
4ce1688b56
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package openCryptoki
|
# spec file for package openCryptoki
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,7 +15,6 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
%define openCryptoki_32bit_arch %ix86 s390 ppc %arm
|
%define openCryptoki_32bit_arch %ix86 s390 ppc %arm
|
||||||
# support in the workings for: ppc64
|
# support in the workings for: ppc64
|
||||||
@ -27,12 +26,16 @@
|
|||||||
%define oc_cvs_tag opencryptoki-%{version}
|
%define oc_cvs_tag opencryptoki-%{version}
|
||||||
|
|
||||||
Name: openCryptoki
|
Name: openCryptoki
|
||||||
BuildRequires: gcc-c++ libica libtool openssl-devel pwdutils
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: libica
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: openssl-devel
|
||||||
|
BuildRequires: pwdutils
|
||||||
Summary: An Implementation of PKCS#11 (Cryptoki) v2.11 for IBM Cryptographic Hardware
|
Summary: An Implementation of PKCS#11 (Cryptoki) v2.11 for IBM Cryptographic Hardware
|
||||||
Version: 2.2.6
|
|
||||||
Release: 0
|
|
||||||
License: IPL-1.0
|
License: IPL-1.0
|
||||||
Group: Productivity/Security
|
Group: Productivity/Security
|
||||||
|
Version: 2.2.6
|
||||||
|
Release: 0
|
||||||
# :pserver:anonymous@cvs.sourceforge.net:/cvsroot/opencryptoki
|
# :pserver:anonymous@cvs.sourceforge.net:/cvsroot/opencryptoki
|
||||||
# cvs co -r openCryptoki-2-1-5 -d openCryptoki-2-1-5 .
|
# cvs co -r openCryptoki-2-1-5 -d openCryptoki-2-1-5 .
|
||||||
Source: %{oc_cvs_tag}.tar.bz2
|
Source: %{oc_cvs_tag}.tar.bz2
|
||||||
@ -55,10 +58,11 @@ Cryptographic Accelerator (FC 4960 on pSeries).
|
|||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
License: IPL-1.0
|
|
||||||
Summary: An Implementation of PKCS#11 (Cryptoki) v2.01 for IBM Cryptographic Hardware
|
Summary: An Implementation of PKCS#11 (Cryptoki) v2.01 for IBM Cryptographic Hardware
|
||||||
Group: Development/Languages/C and C++
|
Group: Development/Languages/C and C++
|
||||||
Requires: openCryptoki = %{version}-%{release}, glibc-devel, openssl-devel
|
Requires: glibc-devel
|
||||||
|
Requires: openCryptoki = %{version}-%{release}
|
||||||
|
Requires: openssl-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The PKCS#11 version 2.01 API implemented for the IBM cryptographic
|
The PKCS#11 version 2.01 API implemented for the IBM cryptographic
|
||||||
@ -71,7 +75,6 @@ Cryptographic Accelerator (FC 4960 on pSeries).
|
|||||||
%ifarch %openCryptoki_32bit_arch
|
%ifarch %openCryptoki_32bit_arch
|
||||||
|
|
||||||
%package 32bit
|
%package 32bit
|
||||||
License: IPL-1.0
|
|
||||||
Summary: An Implementation of PKCS#11 (Cryptoki) v2.11 for IBM Cryptographic Hardware
|
Summary: An Implementation of PKCS#11 (Cryptoki) v2.11 for IBM Cryptographic Hardware
|
||||||
Group: Productivity/Security
|
Group: Productivity/Security
|
||||||
# this is needed to make sure the pkcs11 group exists before
|
# this is needed to make sure the pkcs11 group exists before
|
||||||
@ -94,7 +97,6 @@ Cryptographic Accelerator (FC 4960 on pSeries).
|
|||||||
%ifarch %openCryptoki_64bit_arch
|
%ifarch %openCryptoki_64bit_arch
|
||||||
|
|
||||||
%package 64bit
|
%package 64bit
|
||||||
License: IPL-1.0
|
|
||||||
Summary: An Implementation of PKCS#11 (Cryptoki) v2.11 for IBM Cryptographic Hardware
|
Summary: An Implementation of PKCS#11 (Cryptoki) v2.11 for IBM Cryptographic Hardware
|
||||||
Group: Productivity/Security
|
Group: Productivity/Security
|
||||||
# this is needed to make sure the pkcs11 group exists before
|
# this is needed to make sure the pkcs11 group exists before
|
||||||
@ -141,8 +143,16 @@ rm -f $RPM_BUILD_ROOT/%_libdir/opencryptoki/methods
|
|||||||
%pre
|
%pre
|
||||||
# autobuild:/work/cd/lib/misc/group
|
# autobuild:/work/cd/lib/misc/group
|
||||||
# openCryptoki pkcs11:x:64:
|
# openCryptoki pkcs11:x:64:
|
||||||
/usr/sbin/groupadd -g %pkcs11_group_id -o -r pkcs11 2>/dev/null || true
|
/usr/sbin/groupadd -g %pkcs11_group_id -r pkcs11 2>/dev/null || true
|
||||||
# add root to group pkcs11 to enable root to run pkcsconf
|
# add root to group pkcs11 to enable root to run pkcsconf
|
||||||
|
echo $(/usr/bin/id --groups --name root | /bin/sed \
|
||||||
|
-e 's/root//' -e '
|
||||||
|
# add the pkcs group if it is missing
|
||||||
|
/(^| )pkcs11( |$)/!s/$/ pkcs11/
|
||||||
|
# replace spaces by commas
|
||||||
|
y/ /,/
|
||||||
|
'),pkcs11 root
|
||||||
|
|
||||||
/usr/sbin/usermod -G $(/usr/bin/id --groups --name root | /bin/sed \
|
/usr/sbin/usermod -G $(/usr/bin/id --groups --name root | /bin/sed \
|
||||||
-e 's/root//' -e '
|
-e 's/root//' -e '
|
||||||
# add the pkcs group if it is missing
|
# add the pkcs group if it is missing
|
||||||
|
Loading…
Reference in New Issue
Block a user