2020-11-16 22:29:39 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2022-07-22 12:40:52 +00:00
|
|
|
%global libqat_soversion 3
|
2020-11-16 22:29:39 +00:00
|
|
|
%global libusdm_soversion 0
|
|
|
|
Name: qatlib
|
2023-02-24 09:49:34 +00:00
|
|
|
Version: 23.02.0
|
2023-07-21 15:46:34 +00:00
|
|
|
Release: 2%{?dist}
|
2020-11-16 22:29:39 +00:00
|
|
|
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
|
2022-11-15 11:09:38 +00:00
|
|
|
BuildRequires: systemd gcc make autoconf automake libtool systemd-devel openssl-devel zlib-devel nasm
|
2020-11-16 22:29:39 +00:00
|
|
|
Requires(pre): shadow-utils
|
2022-07-22 12:40:52 +00:00
|
|
|
Recommends: qatlib-service
|
2020-11-16 22:29:39 +00:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1897661
|
2020-12-14 23:11:44 +00:00
|
|
|
ExcludeArch: %{arm} aarch64 %{power64} s390x i686
|
2020-11-16 22:29:39 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2021-11-10 12:47:07 +00:00
|
|
|
%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.
|
|
|
|
|
2022-07-22 12:40:52 +00:00
|
|
|
%package service
|
|
|
|
Summary: A daemon for qatlib resources management
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
%description service
|
|
|
|
This package contains a daemon that manages QAT resources for the Intel
|
|
|
|
QuickAssist Technology user space library (qatlib).
|
|
|
|
|
2020-11-16 22:29:39 +00:00
|
|
|
%prep
|
2022-03-24 11:25:40 +00:00
|
|
|
%autosetup -p1
|
2020-11-16 22:29:39 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -vif
|
2023-02-24 09:49:34 +00:00
|
|
|
%configure --enable-legacy-algorithms
|
2020-11-16 22:29:39 +00:00
|
|
|
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
|
2021-11-10 12:47:07 +00:00
|
|
|
make DESTDIR=%{buildroot} samples-install
|
2021-05-18 16:55:19 +00:00
|
|
|
rm %{buildroot}/%{_libdir}/libqat.la
|
|
|
|
rm %{buildroot}/%{_libdir}/libusdm.la
|
2022-07-22 12:40:52 +00:00
|
|
|
rm %{buildroot}/%{_libdir}/libqat.a
|
|
|
|
rm %{buildroot}/%{_libdir}/libusdm.a
|
2020-11-16 22:29:39 +00:00
|
|
|
|
|
|
|
%pre
|
|
|
|
getent group qat >/dev/null || groupadd -r qat
|
|
|
|
exit 0
|
|
|
|
|
2022-07-22 12:40:52 +00:00
|
|
|
%post service
|
2020-11-16 22:29:39 +00:00
|
|
|
%systemd_post qat.service
|
|
|
|
|
2022-07-22 12:40:52 +00:00
|
|
|
%preun service
|
2020-11-16 22:29:39 +00:00
|
|
|
%systemd_preun qat.service
|
|
|
|
|
2022-07-22 12:40:52 +00:00
|
|
|
%postun service
|
2020-11-16 22:29:39 +00:00
|
|
|
%systemd_postun_with_restart qat.service
|
|
|
|
|
|
|
|
%files
|
2021-08-16 13:00:39 +00:00
|
|
|
%doc INSTALL README.md
|
2020-11-16 22:29:39 +00:00
|
|
|
%license LICENSE*
|
|
|
|
%{_libdir}/libqat.so.%{libqat_soversion}*
|
|
|
|
%{_libdir}/libusdm.so.%{libusdm_soversion}*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/libqat.so
|
|
|
|
%{_libdir}/libusdm.so
|
2022-11-15 11:09:38 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2020-11-16 22:29:39 +00:00
|
|
|
%{_includedir}/qat
|
|
|
|
|
2021-11-10 12:47:07 +00:00
|
|
|
%files tests
|
2022-03-24 11:25:40 +00:00
|
|
|
%doc quickassist/lookaside/access_layer/src/sample_code/README.txt
|
2021-11-10 12:47:07 +00:00
|
|
|
%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
|
|
|
|
|
2022-07-22 12:40:52 +00:00
|
|
|
%files service
|
|
|
|
%{_sbindir}/qatmgr
|
|
|
|
%{_sbindir}/qat_init.sh
|
|
|
|
%{_unitdir}/qat.service
|
|
|
|
%{_mandir}/man8/qatmgr.8*
|
|
|
|
%{_mandir}/man8/qat_init.sh.8*
|
|
|
|
|
2020-11-16 22:29:39 +00:00
|
|
|
%changelog
|
2023-07-21 15:46:34 +00:00
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 23.02.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-02-24 09:49:34 +00:00
|
|
|
* Fri Feb 24 2023 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 23.02.0-1
|
|
|
|
- Update to qatlib 23.02.0
|
|
|
|
|
2023-01-20 18:48:44 +00:00
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 22.07.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-11-15 11:09:38 +00:00
|
|
|
* Tue Nov 15 2022 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 22.07.2-1
|
|
|
|
- Update to qatlib 22.07.2
|
|
|
|
|
2022-10-20 20:55:45 +00:00
|
|
|
* Thu Oct 20 2022 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 22.07.1-1
|
|
|
|
- Update to qatlib 22.07.1
|
|
|
|
|
2022-07-22 23:50:44 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 22.07.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-07-22 12:40:52 +00:00
|
|
|
* Fri Jul 22 2022 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 22.07.0-1
|
|
|
|
- Update to qatlib 22.07
|
|
|
|
- Removed patches as fixes are present in qatlib 22.07
|
|
|
|
- Moved qat.service to separate rpm
|
|
|
|
|
2022-03-24 11:25:40 +00:00
|
|
|
* Tue Mar 22 2022 Vladis Dronov <vdronov@redhat.com> - 21.11.0-3
|
|
|
|
- Fix small issues in qatlib-tests package
|
|
|
|
- Update documentation from the upstream
|
|
|
|
|
2022-01-21 16:52:33 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 21.11.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-11-10 12:47:07 +00:00
|
|
|
* Wed Nov 10 2021 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 21.11.0-1
|
|
|
|
- Update to qatlib 21.11
|
|
|
|
- Add qatlib-tests package
|
|
|
|
|
2021-09-14 17:12:46 +00:00
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 21.08.0-2
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
2021-09-08 20:36:24 +00:00
|
|
|
* Wed Sep 08 2021 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 21.08.0-1
|
|
|
|
- Update to qatlib 21.08
|
|
|
|
|
2021-08-16 13:00:39 +00:00
|
|
|
* Mon Aug 16 2021 Vladis Dronov <vdronov@redhat.com> - 21.05.0-3
|
|
|
|
- Add documentation files to the package
|
|
|
|
|
2021-07-23 10:35:16 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 21.05.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-05-18 16:55:19 +00:00
|
|
|
* Tue May 18 2021 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 21.05.0-1
|
|
|
|
- Update to qatlib 21.05
|
|
|
|
|
2021-03-02 15:12:55 +00:00
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 20.10.0-4
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
2021-01-27 14:31:07 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.10.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-14 23:11:44 +00:00
|
|
|
* Mon Dec 14 2020 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 20.10.0-2
|
|
|
|
- Add ExcludeArch i686
|
|
|
|
|
2020-11-16 22:29:39 +00:00
|
|
|
* Mon Nov 16 2020 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 20.10.0-1
|
|
|
|
- Update to qatlib 20.10
|
|
|
|
- Fixes to spec to address comments from Fedora review
|
2020-12-14 23:11:44 +00:00
|
|
|
|
2020-11-16 22:29:39 +00:00
|
|
|
* Mon Aug 10 2020 Mateusz Polrola <mateuszx.potrola@intel.com> - 20.08.0-1
|
|
|
|
- Initial version of the package
|