File openssl-ibmca.spec of Package openssl-ibmca

# spec file for package openssl-ibmca
# Copyright (c) 2011 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

# norootforbuild

Name:           openssl-ibmca
BuildRequires:  libica openssl-devel 
BuildRequires:  autoconf automake libtool
Summary:        The IBMCA OpenSSL dynamic engine
Version:        1.0.0
Release:        154
License:        IPL-1.0
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         %fillup_prereq %insserv_prereq
Requires:       openssl libica
# bug437293
%ifarch ppc64
Obsoletes:      openssl-ibmca-64bit
%define ibmca_64bit_arch s390x ppc64
%define ibmca_32bit_arch %ix86 s390 ppc %arm
ExclusiveArch:  %ibmca_32bit_arch %ibmca_64bit_arch

This package contains a shared object OpenSSL dynamic engine for the
IBM eServer Cryptographic Accelerator (ICA).

    Mike Halcrow <>

%setup -n openssl-ibmca-1.0.0-rc2
%patch -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

autoreconf --force --install
./configure --with-engines-dir=%_libdir/engines --libdir=%_libdir/engines

#(cd $RPM_BUILD_ROOT; libtool --finish ./%_libdir/engines)
rm ${RPM_BUILD_ROOT}%{_libdir}/engines/



%defattr(-, root, root)
%doc openssl.cnf.sample
%dir %{_libdir}/engines

openSUSE Build Service is sponsored by