libica/libica.spec

367 lines
12 KiB
RPMSpec
Raw Normal View History

2021-07-08 09:51:48 +00:00
%global with_fips 1
2021-05-31 11:32:46 +00:00
2017-09-11 11:26:15 +00:00
Summary: Library for accessing ICA hardware crypto on IBM z Systems
2009-05-02 06:40:06 +00:00
Name: libica
2022-12-15 12:27:46 +00:00
Version: 4.2.0
Release: 2%{?dist}
2009-05-02 06:40:06 +00:00
License: CPL
2017-09-11 11:26:15 +00:00
URL: https://github.com/opencryptoki/
2018-04-17 09:24:42 +00:00
Source0: https://github.com/opencryptoki/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
2018-09-21 07:53:41 +00:00
# annotate assembler source
# https://bugzilla.redhat.com/show_bug.cgi?id=1630582
2018-11-16 12:46:33 +00:00
# https://github.com/opencryptoki/libica/pull/24
2022-01-18 13:13:32 +00:00
Patch0: %{name}-4.0.0-annotate.patch
2018-04-17 09:24:42 +00:00
BuildRequires: gcc
2009-05-02 06:40:06 +00:00
BuildRequires: openssl-devel
2021-05-21 11:41:00 +00:00
BuildRequires: openssl
2017-09-11 11:26:15 +00:00
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
2018-11-16 12:46:33 +00:00
BuildRequires: autoconf-archive
2020-05-15 08:22:49 +00:00
BuildRequires: perl(FindBin)
BuildRequires: perl(lib)
BuildRequires: make
2009-05-02 06:40:06 +00:00
ExclusiveArch: s390 s390x
%description
2010-02-16 11:29:24 +00:00
A library of functions and utilities for accessing ICA hardware crypto on
2017-09-11 11:26:15 +00:00
IBM z Systems.
2010-02-16 11:29:24 +00:00
2009-05-02 06:40:06 +00:00
%package devel
2017-09-11 11:26:15 +00:00
Summary: Development tools for programs to access ICA hardware crypto on IBM z Systems
2009-05-02 06:40:06 +00:00
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
2017-09-11 11:26:15 +00:00
IBM z Systems.
2009-05-02 06:40:06 +00:00
%prep
%autosetup -p1
2009-05-02 06:40:06 +00:00
sh ./bootstrap.sh
%build
2022-09-30 13:20:23 +00:00
# FIPS openssl config is not needed on RHEL/Fedora
# https://bugzilla.redhat.com/show_bug.cgi?id=2084097
CPPFLAGS=-DNO_FIPS_CONFIG_LOAD
export CPPFLAGS
2021-05-31 11:32:46 +00:00
%configure --disable-static \
%if %{with_fips}
--enable-fips
%else
--disable-fips
%endif
%make_build
2009-05-02 06:40:06 +00:00
%install
%make_install
2021-05-21 11:41:00 +00:00
rm %{buildroot}%{_libdir}/libica*.la
rm %{buildroot}%{_pkgdocdir}/{INSTALL,README.md}
2009-05-02 06:40:06 +00:00
2017-01-13 11:17:06 +00:00
%check
# mock doesn't provide the device, so check here
# https://github.com/rpm-software-management/mock/issues/33
2017-01-17 12:32:01 +00:00
if [ -c /dev/hwrng -o -c /dev/prandom ]; then
2018-04-17 09:24:42 +00:00
make check
fi
2017-01-13 11:17:06 +00:00
2021-07-08 09:51:48 +00:00
%if %{with_fips}
%define __spec_install_post \
%{?__debug_package:%{__debug_install_post}} \
%{__arch_install_post} \
%{__os_install_post} \
make fipsinstall DESTDIR=%{buildroot}
%{nil}
%endif
2017-01-13 11:17:06 +00:00
2009-05-02 06:40:06 +00:00
%files
2018-04-17 09:24:42 +00:00
%doc AUTHORS LICENSE ChangeLog
2010-02-16 11:29:24 +00:00
%{_bindir}/icainfo
2021-05-21 11:41:00 +00:00
%{_bindir}/icainfo-cex
2010-02-16 11:29:24 +00:00
%{_bindir}/icastats
2021-05-31 11:32:46 +00:00
%if %{with_fips}
2022-02-01 19:31:55 +00:00
%if 0%{?fedora} >= 36 || 0%{?rhel} >= 9
# openssl 3.0 is available since Fedora 36 and RHEL 9
%exclude %{_sysconfdir}/libica/openssl3-fips.cnf
2022-01-18 13:13:32 +00:00
%endif
2021-05-21 11:41:00 +00:00
%{_libdir}/.libica.*.hmac
%{_libdir}/.libica-cex.*.hmac
2021-05-31 11:32:46 +00:00
%endif
2017-01-13 11:17:06 +00:00
%{_libdir}/libica.so.*
2021-05-21 11:41:00 +00:00
%{_libdir}/libica-cex.so.*
2014-10-14 06:37:21 +00:00
%{_mandir}/man1/icainfo.1*
2021-05-21 11:41:00 +00:00
%{_mandir}/man1/icainfo-cex.1*
2014-10-14 06:37:21 +00:00
%{_mandir}/man1/icastats.1*
2009-05-02 06:40:06 +00:00
%files devel
%{_includedir}/*
%{_libdir}/libica.so
2021-05-21 11:41:00 +00:00
%{_libdir}/libica-cex.so
2009-05-02 06:40:06 +00:00
%changelog
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2022-12-15 12:27:46 +00:00
* Thu Dec 15 2022 Dan Horák <dan[at]danny.cz> - 4.2.0-1
- updated to 4.2.0
2022-10-11 11:58:27 +00:00
* Tue Oct 11 2022 Dan Horák <dan[at]danny.cz> - 4.1.1-1
- updated to 4.1.1
2022-09-30 13:20:23 +00:00
* Fri Sep 30 2022 Dan Horák <dan[at]danny.cz> - 4.1.0-1
- updated to 4.1.0
2022-08-16 13:36:26 +00:00
* Tue Aug 16 2022 Dan Horák <dan[at]danny.cz> - 4.0.3-1
- updated to 4.0.3
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-06-24 15:26:55 +00:00
* Fri Jun 24 2022 Dan Horák <dan[at]danny.cz> - 4.0.2-1
- updated to 4.0.2
* Mon May 16 2022 Dan Horák <dan[at]danny.cz> - 4.0.1-2
- FIPS specific openssl config is not required in RHEL/Fedora
2022-05-13 12:33:46 +00:00
2022-02-08 09:47:46 +00:00
* Tue Feb 08 2022 Dan Horák <dan[at]danny.cz> - 4.0.1-1
- updated to 4.0.1
2022-02-01 19:31:55 +00:00
* Tue Feb 01 2022 Dan Horák <dan[at]danny.cz> - 4.0.0-3
- post GA fixes
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2022-01-18 13:13:32 +00:00
* Thu Jan 13 2022 Dan Horák <dan[at]danny.cz> - 4.0.0-1
- updated to 4.0.0
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-07-08 09:51:48 +00:00
* Wed Jun 02 2021 Dan Horák <dan[at]danny.cz> - 3.8.0-4
- re-enable FIPS support
2021-05-31 16:24:18 +00:00
* Mon May 31 2021 Dan Horák <dan[at]danny.cz> - 3.8.0-3
- disable FIPS support (broken)
2021-05-31 11:32:46 +00:00
* Mon May 24 2021 Dan Horák <dan[at]danny.cz> - 3.8.0-2
- conditionalize FIPS support
2021-05-21 11:41:00 +00:00
* Fri May 21 2021 Dan Horák <dan[at]danny.cz> - 3.8.0-1
- updated to 3.8.0
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 22 2020 Dan Horák <dan[at]danny.cz> - 3.7.0-3
- Use make macros (taken from PR#1 by <tstellar at redhat.com>)
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
* Wed Jul 15 2020 Dan Horák <dan[at]danny.cz> - 3.7.0-2
- fix FIPS integrity validation (#1857130)
2020-05-15 07:49:54 +00:00
* Fri May 15 2020 Dan Horák <dan[at]danny.cz> - 3.7.0-1
- updated to 3.7.0
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-11-26 09:51:25 +00:00
* Tue Nov 26 2019 Dan Horák <dan[at]danny.cz> - 3.6.1-1
- updated to 3.6.1
2019-09-02 09:09:29 +00:00
* Mon Sep 02 2019 Dan Horák <dan[at]danny.cz> - 3.6.0-1
- updated to 3.6.0
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-04-24 08:20:01 +00:00
* Wed Apr 24 2019 Dan Horák <dan[at]danny.cz> - 3.5.0-1
- updated to 3.5.0
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-11-16 12:46:33 +00:00
* Fri Nov 16 2018 Dan Horák <dan[at]danny.cz> - 3.4.0-1
- updated to 3.4.0
2018-09-21 07:53:41 +00:00
* Fri Sep 21 2018 Dan Horák <dan[at]danny.cz> - 3.3.3-4
- annotate assembler file (#1630582)
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Jun 13 2018 Dan Horák <dan[at]danny.cz> - 3.3.3-2
- fix executable stack in assembler code
2018-06-12 07:28:28 +00:00
* Tue Jun 12 2018 Dan Horák <dan[at]danny.cz> - 3.3.3-1
- updated to 3.3.3
2018-04-17 09:24:42 +00:00
* Tue Apr 17 2018 Dan Horák <dan[at]danny.cz> - 3.3.2-1
- updated to 3.3.2
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2017-09-25 19:02:40 +00:00
* Mon Sep 25 2017 Dan Horák <dan[at]danny.cz> - 3.2.0-1
- updated to 3.2.0
2017-09-11 11:26:15 +00:00
* Mon Sep 11 2017 Dan Horák <dan[at]danny.cz> - 3.1.1-1
- updated to 3.1.1
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-04-18 13:49:48 +00:00
* Tue Apr 18 2017 Dan Horák <dan[at]danny.cz> - 3.0.2-3
- update BR
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2017-01-18 09:23:07 +00:00
* Wed Jan 18 2017 Dan Horák <dan[at]danny.cz> - 3.0.2-1
- updated to 3.0.2
* Fri Jan 13 2017 Dan Horák <dan[at]danny.cz> - 3.0.1-2
- check for /dev/prandom before running the test-suite
2017-01-13 11:17:06 +00:00
* Fri Jan 13 2017 Dan Horák <dan[at]danny.cz> - 3.0.1-1
- updated to 3.0.1
2016-04-12 11:42:04 +00:00
* Tue Apr 12 2016 Dan Horák <dan[at]danny.cz> - 2.6.2-1
- updated to 2.6.2
2016-03-18 07:43:51 +00:00
* Thu Mar 17 2016 Dan Horák <dan[at]danny.cz> - 2.6.1-1
- updated to 2.6.1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2014-10-14 06:37:21 +00:00
* Mon Sep 01 2014 Dan Horák <dan[at]danny.cz> - 2.4.2-1
- updated to 2.4.2
2014-06-11 06:26:44 +00:00
* Wed Jun 11 2014 Dan Horák <dan[at]danny.cz> - 2.3.0-5
- fix build with recent kernels
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-03-14 14:55:22 +00:00
* Fri Mar 14 2014 Dan Horák <dan[at]danny.cz> - 2.3.0-3
- add post release fix (#1066014)
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-05-03 12:15:58 +00:00
* Fri May 03 2013 Dan Horák <dan[at]danny.cz> - 2.3.0-1
- updated to 2.3.0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2014-03-14 14:55:22 +00:00
* Fri Aug 17 2012 Dan Horák <dan[at]danny.cz> - 2.2.0-1
2012-08-17 12:41:53 +00:00
- updated to 2.2.0
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-01-16 11:25:30 +00:00
* Mon Jan 16 2012 Dan Horák <dan[at]danny.cz> - 2.1.1-1
- updated to 2.1.1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Thu Jul 07 2011 Dan Horák <dan[at]danny.cz> - 2.1.0-1
- updated to 2.1.0 with soname set back to 2.0
2011-04-11 11:16:31 +00:00
* Mon Apr 11 2011 Dan Horák <dan[at]danny.cz> - 2.0.6-1
- updated to 2.0.6
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Jan 12 2011 Dan Horák <dan[at]danny.cz> - 2.0.4-1
- Do not use sigill to wrap all HW instructions (#665401)
- updated to 2.0.4
2014-03-14 14:55:22 +00:00
* Tue Nov 9 2010 Dan Horák <dhorak@redhat.com> - 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
2010-06-29 07:29:07 +00:00
* Fri May 21 2010 Dan Horák <dan[at]danny.cz> - 2.0.3-2
- rebuilt with -fno-strict-aliasing (#593779)
- Resolves: #593779
* Thu Apr 22 2010 Dan Horák <dan[at]danny.cz> - 2.0.3-1
- updated to 2.0.3 (#582607)
- Resolves: #582607
* Mon Apr 12 2010 Dan Horák <dan[at]danny.cz> - 2.0.2-3
- add SIGILL handler for add_entropy (#581520)
- Resolves: #581520
2010-02-16 11:29:24 +00:00
* Tue Feb 16 2010 Dan Horák <dan[at]danny.cz> - 2.0.2-2
- dropped the utils sub-package
2010-06-29 07:29:07 +00:00
- Related: #543948
* Tue Dec 08 2009 Dennis Gregorovic <dgregor@redhat.com> - 2.0.2-1.1
- Rebuilt for RHEL 6
2010-02-16 11:29:24 +00:00
2009-08-17 09:28:32 +00:00
* Mon Aug 17 2009 Dan Horák <dan[at]danny.cz> - 2.0.2-1
- update to 2.0.2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-08-17 09:28:32 +00:00
* Wed Apr 1 2009 Dan Horák <dan[at]danny.cz> - 2.0.1-1
2009-05-02 06:40:06 +00:00
- update to 2.0.1
2009-08-17 09:28:32 +00:00
* Mon Mar 23 2009 Dan Horák <dan[at]danny.cz> - 2.0-1
2009-05-02 06:40:06 +00:00
- update to 2.0
- spec file cleanup before submitting to Fedora
* Sun Sep 14 2008 Phil Knirsch <pknirsch@redhat.com> - 1.3.7-8.el5
- Added the icainfo tool to libica (#439484)
* Tue Apr 01 2008 Phil Knirsch <pknirsch@redhat.com> - 1.3.7-7.el5
- Fixed build of libica with latest AES & SHA feature (#439390)
* Tue Jan 15 2008 Phil Knirsch <pknirsch@redhat.com> - 1.3.7-6.el5
- Added Software Support for CP Assist Instructions AES & SHA (#318971)
* Thu Nov 23 2006 Phil Knirsch <pknirsch@redhat.com> - 1.3.7-5.el5
- Fixed requires bug where devel packages would get wrong arch lib (#215908)
* Fri Oct 13 2006 Phil Knirsch <pknirsch@redhat.com> - 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 <pknirsch@redhat.com> - 1.3.7-3
- Build for other archs as well due to openCryptoki requirement (#184631)
* Fri Jul 14 2006 Tim Powers <timp@redhat.com> - 1.3.7-2
- rebuild
* Tue Jun 13 2006 Phil Knirsch <pknirsch@redhat.com> - 1.3.7-1
- Update to libica-1.3.7 final
- Fixed build on latest devel tree
* Tue Apr 04 2006 Phil Knirsch <pknirsch@redhat.com> - 1.3.6-rc3-1
- Initial package.