|
|
e42c5a |
# SPDX-License-Identifier: MIT
|
|
|
e42c5a |
|
|
|
490e7d |
%global libqat_soversion 3
|
|
|
e42c5a |
%global libusdm_soversion 0
|
|
|
e42c5a |
Name: qatlib
|
|
|
2e4b2c |
Version: 23.02.0
|
|
|
2e4b2c |
Release: 2%{?dist}
|
|
|
e42c5a |
Summary: Intel QuickAssist user space library
|
|
|
e42c5a |
# The entire source code is released under BSD.
|
|
|
e42c5a |
# For a breakdown of inbound licenses see the INSTALL file.
|
|
|
e42c5a |
License: BSD and (BSD or GPLv2)
|
|
|
e42c5a |
URL: https://github.com/intel/%{name}
|
|
|
e42c5a |
Source0: https://github.com/intel/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
2e4b2c |
BuildRequires: systemd gcc make autoconf automake libtool systemd-devel openssl-devel zlib-devel nasm
|
|
|
e42c5a |
Requires(pre): shadow-utils
|
|
|
490e7d |
Recommends: qatlib-service
|
|
|
e42c5a |
# https://bugzilla.redhat.com/show_bug.cgi?id=1897661
|
|
|
e42c5a |
ExcludeArch: %{arm} aarch64 %{power64} s390x i686
|
|
|
e42c5a |
|
|
|
e42c5a |
%description
|
|
|
e42c5a |
Intel QuickAssist Technology (Intel QAT) provides hardware acceleration
|
|
|
e42c5a |
for offloading security, authentication and compression services from the
|
|
|
e42c5a |
CPU, thus significantly increasing the performance and efficiency of
|
|
|
e42c5a |
standard platform solutions.
|
|
|
e42c5a |
|
|
|
e42c5a |
Its services include symmetric encryption and authentication,
|
|
|
e42c5a |
asymmetric encryption, digital signatures, RSA, DH and ECC, and
|
|
|
e42c5a |
lossless data compression.
|
|
|
e42c5a |
|
|
|
e42c5a |
This package provides user space libraries that allow access to
|
|
|
e42c5a |
Intel QuickAssist devices and expose the Intel QuickAssist APIs.
|
|
|
e42c5a |
|
|
|
e42c5a |
%package devel
|
|
|
e42c5a |
Summary: Headers and libraries to build applications that use qatlib
|
|
|
e42c5a |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
e42c5a |
|
|
|
e42c5a |
%description devel
|
|
|
e42c5a |
This package contains headers and libraries required to build applications
|
|
|
e42c5a |
that use the Intel QuickAssist APIs.
|
|
|
e42c5a |
|
|
|
b1773f |
%package tests
|
|
|
b1773f |
Summary: Sample applications that use qatlib
|
|
|
b1773f |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
b1773f |
|
|
|
b1773f |
%description tests
|
|
|
b1773f |
This package contains sample applications that use the Intel QuickAssists APIs.
|
|
|
b1773f |
|
|
|
490e7d |
%package service
|
|
|
490e7d |
Summary: A daemon for qatlib resources management
|
|
|
490e7d |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
490e7d |
%{?systemd_requires}
|
|
|
490e7d |
|
|
|
490e7d |
%description service
|
|
|
490e7d |
This package contains a daemon that manages QAT resources for the Intel
|
|
|
490e7d |
QuickAssist Technology user space library (qatlib).
|
|
|
490e7d |
|
|
|
e42c5a |
%prep
|
|
|
2e4b2c |
%autosetup -p1
|
|
|
e42c5a |
|
|
|
e42c5a |
%build
|
|
|
e42c5a |
autoreconf -vif
|
|
|
2e4b2c |
%configure --enable-legacy-algorithms
|
|
|
e42c5a |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
e42c5a |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
e42c5a |
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
|
e42c5a |
%make_build
|
|
|
e42c5a |
|
|
|
e42c5a |
%install
|
|
|
e42c5a |
%make_install
|
|
|
b1773f |
make DESTDIR=%{buildroot} samples-install
|
|
|
be0e23 |
rm %{buildroot}/%{_libdir}/libqat.la
|
|
|
be0e23 |
rm %{buildroot}/%{_libdir}/libusdm.la
|
|
|
490e7d |
rm %{buildroot}/%{_libdir}/libqat.a
|
|
|
490e7d |
rm %{buildroot}/%{_libdir}/libusdm.a
|
|
|
e42c5a |
|
|
|
e42c5a |
%pre
|
|
|
e42c5a |
getent group qat >/dev/null || groupadd -r qat
|
|
|
e42c5a |
exit 0
|
|
|
e42c5a |
|
|
|
490e7d |
%post service
|
|
|
e42c5a |
%systemd_post qat.service
|
|
|
e42c5a |
|
|
|
490e7d |
%preun service
|
|
|
e42c5a |
%systemd_preun qat.service
|
|
|
e42c5a |
|
|
|
490e7d |
%postun service
|
|
|
e42c5a |
%systemd_postun_with_restart qat.service
|
|
|
e42c5a |
|
|
|
e42c5a |
%files
|
|
|
be0e23 |
%doc INSTALL README.md
|
|
|
e42c5a |
%license LICENSE*
|
|
|
e42c5a |
%{_libdir}/libqat.so.%{libqat_soversion}*
|
|
|
e42c5a |
%{_libdir}/libusdm.so.%{libusdm_soversion}*
|
|
|
e42c5a |
|
|
|
e42c5a |
%files devel
|
|
|
e42c5a |
%{_libdir}/libqat.so
|
|
|
e42c5a |
%{_libdir}/libusdm.so
|
|
|
2e4b2c |
%{_libdir}/pkgconfig/*.pc
|
|
|
e42c5a |
%{_includedir}/qat
|
|
|
e42c5a |
|
|
|
b1773f |
%files tests
|
|
|
490e7d |
%doc quickassist/lookaside/access_layer/src/sample_code/README.txt
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/cpa_sample_code
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/dc_dp_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/dc_stateless_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/dc_stateless_multi_op_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/algchaining_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/ccm_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/cipher_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/gcm_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/hash_file_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/hash_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/ipsec_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/ssl_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/sym_dp_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/dh_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/eddsa_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/prime_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/hkdf_sample
|
|
|
b1773f |
%attr(0754,-,qat) %{_bindir}/ec_montedwds_sample
|
|
|
b1773f |
%{_datadir}/qat/calgary
|
|
|
b1773f |
%{_datadir}/qat/calgary32
|
|
|
b1773f |
%{_datadir}/qat/canterbury
|
|
|
b1773f |
|
|
|
490e7d |
%files service
|
|
|
490e7d |
%{_sbindir}/qatmgr
|
|
|
490e7d |
%{_sbindir}/qat_init.sh
|
|
|
490e7d |
%{_unitdir}/qat.service
|
|
|
490e7d |
%{_mandir}/man8/qatmgr.8*
|
|
|
490e7d |
%{_mandir}/man8/qat_init.sh.8*
|
|
|
490e7d |
|
|
|
e42c5a |
%changelog
|
|
|
2e4b2c |
* Fri Mar 03 2023 Vladis Dronov <vdronov@redhat.com> - 23.02.0-1
|
|
|
2e4b2c |
- Update to qatlib 23.02.0 (bz 2176879)
|
|
|
2e4b2c |
|
|
|
490e7d |
* Fri Jul 22 2022 Vladis Dronov <vdronov@redhat.com> - 22.07.0-1
|
|
|
490e7d |
- Update to qatlib 22.07 (bz 2040743)
|
|
|
490e7d |
- Moved qat.service to separate rpm
|
|
|
490e7d |
|
|
|
b1773f |
* Thu Nov 11 2021 Vladis Dronov <vdronov@redhat.com> - 21.11.0-1
|
|
|
b1773f |
- Update to qatlib 21.11 (bz 1960303)
|
|
|
b1773f |
- Add qatlib-tests package
|
|
|
b1773f |
- Add OSCI testing harness
|
|
|
b1773f |
|
|
|
be0e23 |
* Fri Aug 27 2021 Vladis Dronov <vdronov@redhat.com> - 21.05.0-2
|
|
|
be0e23 |
- Add documentation files to the main package
|
|
|
be0e23 |
|
|
|
be0e23 |
* Tue Jun 8 2021 Vladis Dronov <vdronov@redhat.com> - 21.05.0-1
|
|
|
be0e23 |
- Update to qatlib 21.05 (bz 1920237)
|
|
|
be0e23 |
|
|
|
e42c5a |
* Tue Feb 9 2021 Vladis Dronov <vdronov@redhat.com> - 20.10.0-3
|
|
|
e42c5a |
- Add OSCI testing harness (bz 1907482)
|
|
|
e42c5a |
|
|
|
e42c5a |
* Mon Dec 14 2020 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 20.10.0-2
|
|
|
e42c5a |
- Add ExcludeArch i686
|
|
|
e42c5a |
|
|
|
e42c5a |
* Mon Nov 16 2020 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 20.10.0-1
|
|
|
e42c5a |
- Update to qatlib 20.10
|
|
|
e42c5a |
- Fixes to spec to address comments from Fedora review
|
|
|
e42c5a |
|
|
|
e42c5a |
* Mon Aug 10 2020 Mateusz Polrola <mateuszx.potrola@intel.com> - 20.08.0-1
|
|
|
e42c5a |
- Initial version of the package
|