|
|
a0b995 |
# SPDX-License-Identifier: MIT
|
|
|
a0b995 |
|
|
|
a0b995 |
%global libqat_soversion 0
|
|
|
a0b995 |
%global libusdm_soversion 0
|
|
|
a0b995 |
Name: qatlib
|
|
|
a0b995 |
Version: 20.10.0
|
|
|
a0b995 |
Release: 3%{?dist}
|
|
|
a0b995 |
Summary: Intel QuickAssist user space library
|
|
|
a0b995 |
# The entire source code is released under BSD.
|
|
|
a0b995 |
# For a breakdown of inbound licenses see the INSTALL file.
|
|
|
a0b995 |
License: BSD and (BSD or GPLv2)
|
|
|
a0b995 |
URL: https://github.com/intel/%{name}
|
|
|
a0b995 |
Source0: https://github.com/intel/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
a0b995 |
BuildRequires: systemd gcc make autoconf automake libtool systemd-devel openssl-devel zlib-devel
|
|
|
a0b995 |
Requires(pre): shadow-utils
|
|
|
a0b995 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1897661
|
|
|
a0b995 |
ExcludeArch: %{arm} aarch64 %{power64} s390x i686
|
|
|
a0b995 |
|
|
|
a0b995 |
%{?systemd_requires}
|
|
|
a0b995 |
|
|
|
a0b995 |
%description
|
|
|
a0b995 |
Intel QuickAssist Technology (Intel QAT) provides hardware acceleration
|
|
|
a0b995 |
for offloading security, authentication and compression services from the
|
|
|
a0b995 |
CPU, thus significantly increasing the performance and efficiency of
|
|
|
a0b995 |
standard platform solutions.
|
|
|
a0b995 |
|
|
|
a0b995 |
Its services include symmetric encryption and authentication,
|
|
|
a0b995 |
asymmetric encryption, digital signatures, RSA, DH and ECC, and
|
|
|
a0b995 |
lossless data compression.
|
|
|
a0b995 |
|
|
|
a0b995 |
This package provides user space libraries that allow access to
|
|
|
a0b995 |
Intel QuickAssist devices and expose the Intel QuickAssist APIs.
|
|
|
a0b995 |
|
|
|
a0b995 |
%package devel
|
|
|
a0b995 |
Summary: Headers and libraries to build applications that use qatlib
|
|
|
a0b995 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a0b995 |
|
|
|
a0b995 |
%description devel
|
|
|
a0b995 |
This package contains headers and libraries required to build applications
|
|
|
a0b995 |
that use the Intel QuickAssist APIs.
|
|
|
a0b995 |
|
|
|
a0b995 |
%prep
|
|
|
a0b995 |
%autosetup
|
|
|
a0b995 |
|
|
|
a0b995 |
%build
|
|
|
a0b995 |
autoreconf -vif
|
|
|
a0b995 |
%configure
|
|
|
a0b995 |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
a0b995 |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
a0b995 |
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
|
a0b995 |
%make_build
|
|
|
a0b995 |
|
|
|
a0b995 |
%install
|
|
|
a0b995 |
%make_install
|
|
|
a0b995 |
|
|
|
a0b995 |
%pre
|
|
|
a0b995 |
getent group qat >/dev/null || groupadd -r qat
|
|
|
a0b995 |
exit 0
|
|
|
a0b995 |
|
|
|
a0b995 |
%post
|
|
|
a0b995 |
%systemd_post qat.service
|
|
|
a0b995 |
|
|
|
a0b995 |
%preun
|
|
|
a0b995 |
%systemd_preun qat.service
|
|
|
a0b995 |
|
|
|
a0b995 |
%postun
|
|
|
a0b995 |
%systemd_postun_with_restart qat.service
|
|
|
a0b995 |
|
|
|
a0b995 |
%files
|
|
|
a0b995 |
%license LICENSE*
|
|
|
a0b995 |
%{_libdir}/libqat.so.%{libqat_soversion}*
|
|
|
a0b995 |
%{_libdir}/libusdm.so.%{libusdm_soversion}*
|
|
|
a0b995 |
%{_sbindir}/qatmgr
|
|
|
a0b995 |
%{_sbindir}/qat_init.sh
|
|
|
a0b995 |
%{_unitdir}/qat.service
|
|
|
a0b995 |
%{_mandir}/man8/qat_init.sh.8*
|
|
|
a0b995 |
%{_mandir}/man8/qatmgr.8*
|
|
|
a0b995 |
|
|
|
a0b995 |
%files devel
|
|
|
a0b995 |
%{_libdir}/libqat.so
|
|
|
a0b995 |
%{_libdir}/libusdm.so
|
|
|
a0b995 |
%{_includedir}/qat
|
|
|
a0b995 |
%exclude %{_libdir}/libqat.la
|
|
|
a0b995 |
%exclude %{_libdir}/libusdm.la
|
|
|
a0b995 |
|
|
|
a0b995 |
%changelog
|
|
|
a0b995 |
* Tue Feb 9 2021 Vladis Dronov <vdronov@redhat.com> - 20.10.0-3
|
|
|
a0b995 |
- Add OSCI testing harness (bz 1907482)
|
|
|
a0b995 |
|
|
|
a0b995 |
* Mon Dec 14 2020 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 20.10.0-2
|
|
|
a0b995 |
- Add ExcludeArch i686
|
|
|
a0b995 |
|
|
|
a0b995 |
* Mon Nov 16 2020 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 20.10.0-1
|
|
|
a0b995 |
- Update to qatlib 20.10
|
|
|
a0b995 |
- Fixes to spec to address comments from Fedora review
|
|
|
a0b995 |
|
|
|
a0b995 |
* Mon Aug 10 2020 Mateusz Polrola <mateuszx.potrola@intel.com> - 20.08.0-1
|
|
|
a0b995 |
- Initial version of the package
|