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

90 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package openssl-ibmca (Version 1.0.0)
#
# Copyright (c) 2010 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/
#
# norootforbuild
Name: openssl-ibmca
BuildRequires: libica openssl-devel
Summary: The IBMCA OpenSSL dynamic engine
Version: 1.0.0
Release: 142
License: IBM PL
Group: Hardware/Other
Source: openssl-ibmca-1.0.0-rc2.tar.bz2
Source2: baselibs.conf
Patch: ibmca-configure.patch
Patch1: openssl-ibmca-README.patch
Patch2: ibmca-segfault.fix.patch
Patch3: ibmca-sw-fix.patch
Patch4: openssl-ibmca-1.0.0.rc2-memset-fix.patch
Url: http://sourceforge.net/projects/opencryptoki
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %fillup_prereq %insserv_prereq
Requires: openssl libica
# bug437293
%ifarch ppc64
Obsoletes: openssl-ibmca-64bit
%endif
#
%define ibmca_64bit_arch s390x ppc64
%define ibmca_32bit_arch %ix86 s390 ppc %arm
ExclusiveArch: %ibmca_32bit_arch %ibmca_64bit_arch
%description
This package contains a shared object OpenSSL dynamic engine for the
IBM eServer Cryptographic Accelerator (ICA).
Authors:
--------
Mike Halcrow <mhalcrow@us.ibm.com>
%prep
%setup -n openssl-ibmca-1.0.0-rc2
%patch -p1
%patch1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS"
export CPPFLAGS="$RPM_OPT_FLAGS"
./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
%post
%run_ldconfig
%postun
%files
%defattr(-, root, root)
%doc README
%doc openssl.cnf.sample
%{_libdir}/engines/libibmca.*
%changelog