diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cb07a31 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libica-3.4.0.tgz diff --git a/.libica.metadata b/.libica.metadata new file mode 100644 index 0000000..3e04ec0 --- /dev/null +++ b/.libica.metadata @@ -0,0 +1 @@ +41e5dc761a697d659fe5726f9e69899a4b2ac77d SOURCES/libica-3.4.0.tgz diff --git a/SPECS/libica.spec b/SPECS/libica.spec new file mode 100644 index 0000000..14d2f81 --- /dev/null +++ b/SPECS/libica.spec @@ -0,0 +1,253 @@ +Summary: Library for accessing ICA hardware crypto on IBM zSeries +Name: libica +Version: 3.4.0 +Release: 1%{?dist} +License: CPL +Group: System Environment/Libraries +URL: https://github.com/opencryptoki/ +Source0: https://github.com/opencryptoki/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tgz +BuildRequires: openssl-devel +BuildRequires: autoconf automake libtool +ExclusiveArch: s390 s390x +Provides: %{name}-utils = 2.0.2-2 +Obsoletes: %{name}-utils < 2.0.2-2 + +%description +A library of functions and utilities for accessing ICA hardware crypto on +IBM zSeries. + + +%package devel +Summary: Development tools for programs to access ICA hardware crypto on IBM zSeries +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: openssl-devel + +%description devel +The libica-devel package contains the header files and static +libraries necessary for developing programs accessing ICA hardware crypto on +IBM zSeries. + + +%prep +%setup -q -n %{name}-%{version} + +sh ./bootstrap.sh + + +%build +%configure --disable-static --enable-fips +make %{?_smp_mflags} + + +%install +make install DESTDIR=$RPM_BUILD_ROOT +rm $RPM_BUILD_ROOT%{_libdir}/libica.la + +# fixes https://bugzilla.redhat.com/show_bug.cgi?id=1507431 +mkdir -p $RPM_BUILD_ROOT/usr/lib/modules-load.d +cat > $RPM_BUILD_ROOT/usr/lib/modules-load.d/%{name}.conf << EOF +# needed for FIPS enabled libica +prng +EOF + +# remove wrong docdir +rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} + + +%check +# mock doesn't provide the device, so check here +# https://github.com/rpm-software-management/mock/issues/33 +if [ -c /dev/hwrng -o -c /dev/prandom ]; then + make check +fi + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%doc AUTHORS ChangeLog LICENSE +/usr/lib/modules-load.d/%{name}.conf +%{_bindir}/icainfo +%{_bindir}/icastats +%{_libdir}/libica.so.* +%{_mandir}/man1/*.1* + +%files devel +%{_includedir}/* +%{_libdir}/libica.so + + +%changelog +* Tue Mar 05 2019 Dan Horák - 3.4.0-1 +- Updated to 3.4.0 +- Resolves: #1640683 #1641024 + +* Thu Jul 12 2018 Dan Horák - 3.3.3-3 +- run the new test-suite +- Resolves: #1600372 + +* Wed Jun 13 2018 Dan Horák - 3.3.3-2 +- fix executable stack in assembler code +- remove unneeded ax_pthread.m4 +- Related: #1519393 + +* Mon Jun 11 2018 Dan Horák - 3.3.3-1 +- Updated to 3.3.3 +- Resolves: #1519393, #1519385, #1519381, #1519375 + +* Tue Dec 05 2017 Dan Horák - 3.2.0-3 +- fix the module load file (Related #1507431) + +* Mon Oct 30 2017 Dan Horák - 3.2.0-2 +- ensure prng module is loaded (#1507431) +- Resolves: #1507431 + +* Tue Sep 26 2017 Dan Horák - 3.2.0-1 +- Updated to 3.2.0 +- Resolves: #1376836 + +* Tue Sep 19 2017 Dan Horák - 3.1.1-1 +- Updated to 3.1.1 +- Resolves: #1376837, #1376838, #1490830 + +* Tue Apr 18 2017 Dan Horák - 3.0.2-2 +- update BR +- Related: #1391558 + +* Wed Jan 18 2017 Dan Horák - 3.0.2-1 +- Updated to 3.0.2 (#1391558) +- Enable FIPS support (#1380785) +- Update DRBG-SHA-512 upstream tests (#1382693) +- Resolves: #1391558, #1380785, #1382693 + +* Tue Nov 22 2016 Dan Horák - 2.6.2-5 +- Fix MSA level detection (#1395393) +- Resolves: #1395393 + +* Fri Aug 12 2016 Dan Horák - 2.6.2-4 +- Rebuild +- Related: #1360835 + +* Thu Jul 28 2016 Dan Horák - 2.6.2-3 +- Fix RNG performance degradation after rebase to 2.6.2 (#1360835) +- Resolves: #1360835 + +* Mon May 30 2016 Dan Horák - 2.6.2-2 +- Fix initialization of s390 hardware switches (#1340719) +- Resolves: #1340719 + +* Fri May 06 2016 Dan Horák - 2.6.2-1 +- Rebased to 2.6.2 (#1274390) +- Resolves: #1168190, #1274390 + +* Mon Sep 01 2014 Dan Horák - 2.4.2-1 +- updated to 2.4.2 (#1088556) +- Resolves: #1066014, #1088556 + +* Fri Jan 24 2014 Daniel Mach - 2.3.0-3 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 2.3.0-2 +- Mass rebuild 2013-12-27 + +* Fri May 03 2013 Dan Horák - 2.3.0-1 +- updated to 2.3.0 + +* Thu Feb 14 2013 Fedora Release Engineering - 2.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Aug 17 2012 Dan Horák - 2.2.0-1 +- updated to 2.2.0 + +* Thu Jul 19 2012 Fedora Release Engineering - 2.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jan 16 2012 Dan Horák - 2.1.1-1 +- updated to 2.1.1 + +* Fri Jan 13 2012 Fedora Release Engineering - 2.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Jul 07 2011 Dan Horák - 2.1.0-1 +- updated to 2.1.0 with soname set back to 2.0 + +* Mon Apr 11 2011 Dan Horák - 2.0.6-1 +- updated to 2.0.6 + +* Tue Feb 08 2011 Fedora Release Engineering - 2.0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Jan 12 2011 Dan Horák - 2.0.4-1 +- Do not use sigill to wrap all HW instructions (#665401) +- updated to 2.0.4 + +* Tue Nov 9 2010 Dan Horák - 2.0.3-3 +- Fix the return value of old_api_sha_test() in libica_sha1_test (#624005) +- Use the right buffer length when operating in 32-bit mode (#640035) +- Resolves: #624005, #640035 + +* Fri May 21 2010 Dan Horák - 2.0.3-2 +- rebuilt with -fno-strict-aliasing (#593779) +- Resolves: #593779 + +* Thu Apr 22 2010 Dan Horák - 2.0.3-1 +- updated to 2.0.3 (#582607) +- Resolves: #582607 + +* Mon Apr 12 2010 Dan Horák - 2.0.2-3 +- add SIGILL handler for add_entropy (#581520) +- Resolves: #581520 + +* Tue Feb 16 2010 Dan Horák - 2.0.2-2 +- dropped the utils sub-package +- Related: #543948 + +* Tue Dec 08 2009 Dennis Gregorovic - 2.0.2-1.1 +- Rebuilt for RHEL 6 + +* Mon Aug 17 2009 Dan Horák - 2.0.2-1 +- update to 2.0.2 + +* Fri Jul 24 2009 Fedora Release Engineering - 2.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Apr 1 2009 Dan Horák - 2.0.1-1 +- update to 2.0.1 + +* Mon Mar 23 2009 Dan Horák - 2.0-1 +- update to 2.0 +- spec file cleanup before submitting to Fedora + +* Sun Sep 14 2008 Phil Knirsch - 1.3.7-8.el5 +- Added the icainfo tool to libica (#439484) + +* Tue Apr 01 2008 Phil Knirsch - 1.3.7-7.el5 +- Fixed build of libica with latest AES & SHA feature (#439390) + +* Tue Jan 15 2008 Phil Knirsch - 1.3.7-6.el5 +- Added Software Support for CP Assist Instructions AES & SHA (#318971) + +* Thu Nov 23 2006 Phil Knirsch - 1.3.7-5.el5 +- Fixed requires bug where devel packages would get wrong arch lib (#215908) + +* Fri Oct 13 2006 Phil Knirsch - 1.3.7-4 +- Fixed bug where libica fails to initialize when no crypto hardware is + available (#210504) +- Only build libica for s390(x), really only needed there. + +* Fri Sep 08 2006 Phil Knirsch - 1.3.7-3 +- Build for other archs as well due to openCryptoki requirement (#184631) + +* Fri Jul 14 2006 Tim Powers - 1.3.7-2 +- rebuild + +* Tue Jun 13 2006 Phil Knirsch - 1.3.7-1 +- Update to libica-1.3.7 final +- Fixed build on latest devel tree + +* Tue Apr 04 2006 Phil Knirsch - 1.3.6-rc3-1 +- Initial package.