From 11048bc80b04cb5723e368ffb9b8e8338471712c Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 26 May 2022 13:52:23 -0400 Subject: [PATCH] Auto sync2gitlab import of qatlib-21.11.0-1.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - qatlib.spec | 141 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 qatlib.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b4ba520 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/qatlib-21.11.0.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/qatlib.spec b/qatlib.spec new file mode 100644 index 0000000..086e912 --- /dev/null +++ b/qatlib.spec @@ -0,0 +1,141 @@ +# SPDX-License-Identifier: MIT + +%global libqat_soversion 2 +%global libusdm_soversion 0 +Name: qatlib +Version: 21.11.0 +Release: 1%{?dist} +Summary: Intel QuickAssist user space library +# The entire source code is released under BSD. +# For a breakdown of inbound licenses see the INSTALL file. +License: BSD and (BSD or GPLv2) +URL: https://github.com/intel/%{name} +Source0: https://github.com/intel/%{name}/archive/%{version}/%{name}-%{version}.tar.gz +BuildRequires: systemd gcc make autoconf automake libtool systemd-devel openssl-devel zlib-devel +Requires(pre): shadow-utils +# https://bugzilla.redhat.com/show_bug.cgi?id=1897661 +ExcludeArch: %{arm} aarch64 %{power64} s390x i686 + +%{?systemd_requires} + +%description +Intel QuickAssist Technology (Intel QAT) provides hardware acceleration +for offloading security, authentication and compression services from the +CPU, thus significantly increasing the performance and efficiency of +standard platform solutions. + +Its services include symmetric encryption and authentication, +asymmetric encryption, digital signatures, RSA, DH and ECC, and +lossless data compression. + +This package provides user space libraries that allow access to +Intel QuickAssist devices and expose the Intel QuickAssist APIs. + +%package devel +Summary: Headers and libraries to build applications that use qatlib +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains headers and libraries required to build applications +that use the Intel QuickAssist APIs. + +%package tests +Summary: Sample applications that use qatlib +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description tests +This package contains sample applications that use the Intel QuickAssists APIs. + +%prep +%autosetup + +%build +autoreconf -vif +%configure +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool +%make_build + +%install +%make_install +make DESTDIR=%{buildroot} samples-install +rm %{buildroot}/%{_libdir}/libqat.la +rm %{buildroot}/%{_libdir}/libusdm.la + +%pre +getent group qat >/dev/null || groupadd -r qat +exit 0 + +%post +%systemd_post qat.service + +%preun +%systemd_preun qat.service + +%postun +%systemd_postun_with_restart qat.service + +%files +%doc INSTALL README.md +%license LICENSE* +%{_libdir}/libqat.so.%{libqat_soversion}* +%{_libdir}/libusdm.so.%{libusdm_soversion}* +%{_sbindir}/qatmgr +%{_sbindir}/qat_init.sh +%{_unitdir}/qat.service +%{_mandir}/man8/qat_init.sh.8* +%{_mandir}/man8/qatmgr.8* + +%files devel +%{_libdir}/libqat.so +%{_libdir}/libusdm.so +%{_includedir}/qat + +%files tests +%attr(0754,-,qat) %{_bindir}/cpa_sample_code +%attr(0754,-,qat) %{_bindir}/dc_dp_sample +%attr(0754,-,qat) %{_bindir}/dc_stateless_sample +%attr(0754,-,qat) %{_bindir}/dc_stateless_multi_op_sample +%attr(0754,-,qat) %{_bindir}/algchaining_sample +%attr(0754,-,qat) %{_bindir}/ccm_sample +%attr(0754,-,qat) %{_bindir}/cipher_sample +%attr(0754,-,qat) %{_bindir}/gcm_sample +%attr(0754,-,qat) %{_bindir}/hash_file_sample +%attr(0754,-,qat) %{_bindir}/hash_sample +%attr(0754,-,qat) %{_bindir}/ipsec_sample +%attr(0754,-,qat) %{_bindir}/ssl_sample +%attr(0754,-,qat) %{_bindir}/sym_dp_sample +%attr(0754,-,qat) %{_bindir}/dh_sample +%attr(0754,-,qat) %{_bindir}/eddsa_sample +%attr(0754,-,qat) %{_bindir}/prime_sample +%attr(0754,-,qat) %{_bindir}/hkdf_sample +%attr(0754,-,qat) %{_bindir}/ec_montedwds_sample +%{_datadir}/qat/calgary +%{_datadir}/qat/calgary32 +%{_datadir}/qat/canterbury + +%changelog +* Thu Nov 11 2021 Vladis Dronov - 21.11.0-1 +- Update to qatlib 21.11 (bz 1960303) +- Add qatlib-tests package +- Add OSCI testing harness + +* Fri Aug 27 2021 Vladis Dronov - 21.05.0-2 +- Add documentation files to the main package + +* Tue Jun 8 2021 Vladis Dronov - 21.05.0-1 +- Update to qatlib 21.05 (bz 1920237) + +* Tue Feb 9 2021 Vladis Dronov - 20.10.0-3 +- Add OSCI testing harness (bz 1907482) + +* Mon Dec 14 2020 Giovanni Cabiddu - 20.10.0-2 +- Add ExcludeArch i686 + +* Mon Nov 16 2020 Giovanni Cabiddu - 20.10.0-1 +- Update to qatlib 20.10 +- Fixes to spec to address comments from Fedora review + +* Mon Aug 10 2020 Mateusz Polrola - 20.08.0-1 +- Initial version of the package diff --git a/sources b/sources new file mode 100644 index 0000000..ae0d9aa --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (qatlib-21.11.0.tar.gz) = 740fa282ee540ba74e14ed07b4c79d3af239809c2b6216361b23ccc4787ee378a7a7c336c71087d4a1a59da22db7d5cdef7290ceb7f8e879feaf70f766119dfb