From 4e0304e26b54ef84718bd8a461f203662a8e0321 Mon Sep 17 00:00:00 2001 From: Giovanni Cabiddu Date: Mon, 16 Nov 2020 17:29:39 -0500 Subject: [PATCH] Initial import (#1885430). --- .gitignore | 1 + qatlib.spec | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 93 insertions(+) create mode 100644 .gitignore create mode 100644 qatlib.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0a3d97a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/qatlib-20.10.0.tar.gz diff --git a/qatlib.spec b/qatlib.spec new file mode 100644 index 0000000..107ee2b --- /dev/null +++ b/qatlib.spec @@ -0,0 +1,91 @@ +# SPDX-License-Identifier: MIT + +%global libqat_soversion 0 +%global libusdm_soversion 0 +Name: qatlib +Version: 20.10.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 + +%{?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 + +%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 +%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 +%exclude %{_libdir}/libqat.la +%exclude %{_libdir}/libusdm.la + +%changelog +* 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..7516805 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (qatlib-20.10.0.tar.gz) = 9fb91b662703f7b46646543951a8927a90edd0ba2928fbf8a4fabc6648c4cc1aea40f4a26aabd2d78ae7616052014ef739fe88c89f6770cf708d096b84c1e64b