068c744
Summary: A dynamic OpenSSL engine for IBMCA
068c744
Name: openssl-ibmca
3f72715
Version: 1.3.1
3f72715
Release: 1%{?dist}
068c744
License: OpenSSL
068c744
Group: System Environment/Libraries
068c744
URL: http://sourceforge.net/projects/opencryptoki
545c9ce
Source0: http://downloads.sourceforge.net/opencryptoki/%{name}-%{version}.tar.gz
545c9ce
# https://bugzilla.redhat.com/show_bug.cgi?id=584765
3f72715
Patch0: openssl-ibmca-1.3.0-libica-soname.patch
3f72715
# fix build with OpenSSL 1.1
3f72715
# https://sourceforge.net/p/opencryptoki/ibmca/ci/170352452f0a1addb78879dea34a3069314fcda0/
3f72715
Patch1: openssl-ibmca-1.3.1-openssl11.patch
3f72715
Requires: libica >= 3.0.0
3f72715
BuildRequires: libica-devel >= 3.0.0
379d500
BuildRequires: automake libtool
068c744
ExclusiveArch: s390 s390x
068c744
3f72715
%global enginesdir %{_libdir}/engines-1.1
3f72715
068c744
%description
068c744
A dynamic OpenSSL engine for IBMCA crypto hardware on IBM zSeries machines.
068c744
068c744
068c744
%prep
068c744
%setup -q
b01b482
%patch0 -p1 -b .libica-soname
3f72715
%patch1 -p1 -b .openssl11
545c9ce
545c9ce
sh ./bootstrap.sh
068c744
068c744
068c744
%build
8e08d53
%configure
068c744
make %{?_smp_mflags}
068c744
068c744
068c744
%install
068c744
make install DESTDIR=$RPM_BUILD_ROOT
068c744
545c9ce
rm -f $RPM_BUILD_ROOT%{_libdir}/libibmca.la
068c744
3f72715
mkdir -p $RPM_BUILD_ROOT%{enginesdir}
3f72715
mv $RPM_BUILD_ROOT%{_libdir}/*.so $RPM_BUILD_ROOT%{enginesdir}
3f72715
3f72715
pushd src
3f72715
sed -e 's|/usr/local/lib|%{enginesdir}|' openssl.cnf.sample > openssl.cnf.sample.%{_arch}
3f72715
popd
068c744
068c744
%files
3f72715
%doc INSTALL README src/openssl.cnf.sample.%{_arch}
3f72715
%{enginesdir}/libibmca.so
3f72715
%{_mandir}/man5/ibmca.5*
068c744
068c744
068c744
%changelog
3f72715
* Wed Mar 08 2017 Dan Horák <dan@danny.cz> - 1.3.1-1
3f72715
- updated to 1.3.1 and OpenSSL 1.1
3f72715
61bdb3c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-13
61bdb3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
61bdb3c
5053c8c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-12
5053c8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5053c8c
0559a80
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-11
0559a80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0559a80
7f97afe
* Wed Nov 05 2014 Dan Horák <dan@danny.cz> - 1.2.0-10
7f97afe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7f97afe
9a17912
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-9
9a17912
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9a17912
3194a86
* Wed Mar 19 2014 Dan Horák 
3194a86
- Set proper key signature flag (#1075474)
3194a86
49f50c0
* Fri Mar 14 2014 Dan Horák 
49f50c0
- Fix multilib conflict in sample config file (#1076423)
49f50c0
- Fixed message digest length definition in sha256 template (#1074976)
49f50c0
8fec962
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-6
8fec962
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8fec962
4b581e1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-5
4b581e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4b581e1
44feb4c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-4
44feb4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
44feb4c
379d500
* Fri Apr 20 2012 Dan Horák 
379d500
- make the libica dependecies versioned
379d500
- fix segfaults in OFB mode (#749638)
379d500
bb331b8
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
bb331b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bb331b8
b01b482
* Thu Jul 07 2011 Dan Horák 
b01b482
- update to 1.2.0
b01b482
1ec3222
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3
1ec3222
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1ec3222
545c9ce
* Thu Apr 22 2010 Dan Horák <dhorak@redhat.com> - 1.1-2
545c9ce
- fixed opening of the libica library (#584765)
545c9ce
- Resolves: #584765
545c9ce
545c9ce
* Thu Mar  4 2010 Dan Horák <dhorak@redhat.com> - 1.1-1
545c9ce
- rebased to 1.1 instead of patching
545c9ce
- Resolves: #568847
545c9ce
545c9ce
* Thu Feb 18 2010 Dan Horák <dhorak@redhat.com> - 1.0.0-5
545c9ce
- added patch with port to libica 2.x API
545c9ce
- Related: #543948
545c9ce
545c9ce
* Wed Feb 10 2010 Dan Horák <dhorak@redhat.com> - 1.0.0-4
545c9ce
- added explicit dependency on libica, because it's dlopened
545c9ce
- Related: #543948
545c9ce
545c9ce
* Tue Jan 12 2010 Dan Horák <dhorak@redhat.com> - 1.0.0-3
545c9ce
- rebuild
545c9ce
- Related: #543948
545c9ce
2884502
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
2884502
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2884502
068c744
* Thu Jul  9 2009 Dan Horak 
068c744
- update to final 1.0.0
068c744
- spec file cleanup
068c744
068c744
* Thu Jun 21 2007 Phil Knirsch <pknirsch@redhat.com> - 1.0.0rc2-1.el5.4
068c744
- Fixed several issues with failure of using ibmca engine (#227644)
068c744
068c744
* Tue Dec 12 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.0rc2-1.el5.3
068c744
- Added missing symlinks for libs (#215735)
068c744
- Added samle config file (#215735)
068c744
068c744
* Thu Nov 23 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.0rc2-1.el5.2
068c744
- Necessary fix so openssl finds the module properly (#215735)
068c744
068c744
* Thu May 11 2006 Phil Knirsch <pknirsch@redhat.com> - 1.0.0rc2
068c744
- Initial package.