1
0
forked from pool/openssl-ibmca
openssl-ibmca/openssl-ibmca.spec

74 lines
2.1 KiB
RPMSpec

#
# spec file for package openssl-ibmca
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#
Name: openssl-ibmca
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libica-2_3_0-devel
BuildRequires: libtool
BuildRequires: openssl-devel
Summary: The IBMCA OpenSSL dynamic engine
License: IPL-1.0
Group: Hardware/Other
Version: 1.2.0
Release: 0
Source: openssl-ibmca-1.2.0.tar.gz
Source2: baselibs.conf
Patch1: openssl-ibmca-README.patch
Patch2: openssl-ibmca-configure.patch
Patch3: openssl-ibmca-sha256-digest-length.patch
Patch4: openssl-pkey.patch
Patch5: openssl-des-ede.patch
Url: http://sourceforge.net/projects/opencryptoki
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libica-2_3_0
Requires: openssl
ExclusiveArch: s390 s390x
#
%description
This package contains a shared object OpenSSL dynamic engine for the
IBM eServer Cryptographic Accelerator (ICA).
%prep
%setup -q
%patch1
%patch2
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
autoreconf --force --install
%configure --with-engines-dir=%_libdir/engines --libdir=%_libdir/engines
make
%install
%makeinstall
#(cd $RPM_BUILD_ROOT; libtool --finish ./%_libdir/engines)
rm ${RPM_BUILD_ROOT}%{_libdir}/engines/libibmca.la
%files
%defattr(-, root, root)
%doc README COPYING
%doc openssl.cnf.sample
%dir %{_libdir}/engines
%{_libdir}/engines/libibmca.*
%changelog