commit f978bb4115d23c45e5b303b1b9316c579039664f Author: CentOS Sources Date: Wed Nov 3 18:00:11 2021 -0400 import qatlib-21.05.0-1.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f9f2fc6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/qatlib-21.05.0.tar.gz diff --git a/.qatlib.metadata b/.qatlib.metadata new file mode 100644 index 0000000..8d7adbd --- /dev/null +++ b/.qatlib.metadata @@ -0,0 +1 @@ +547b994a7a504a3f2f6bbf3cf1896e2fb599623a SOURCES/qatlib-21.05.0.tar.gz diff --git a/SPECS/qatlib.spec b/SPECS/qatlib.spec new file mode 100644 index 0000000..feed8c4 --- /dev/null +++ b/SPECS/qatlib.spec @@ -0,0 +1,120 @@ +# SPDX-License-Identifier: MIT + +%global libqat_soversion 0 +%global libusdm_soversion 0 +Name: qatlib +Version: 21.05.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. + +%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 +rm %{buildroot}/%{_libdir}/libqat-%{version}.so +rm %{buildroot}/%{_libdir}/libusdm-%{version}.so +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 + +%changelog +* Mon Aug 16 2021 Vladis Dronov - 21.05.0-1 +- Update to qatlib 21.05 with openssl-3 support (bz 1920444, bz 1953498) +- Add documentation files to a package + +* Tue Aug 10 2021 Mohan Boddu - 20.10.0-7 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Wed Jun 16 2021 Mohan Boddu - 20.10.0-6 +- Rebuilt for RHEL 9 BETA for openssl 3.0 + Related: rhbz#1971065 + +* Fri Apr 16 2021 Mohan Boddu - 20.10.0-5 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 20.10.0-4 +- Rebuilt for updated systemd-rpm-macros + See https://pagure.io/fesco/issue/2583. + +* Wed Jan 27 2021 Fedora Release Engineering - 20.10.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* 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