Blame SPECS/qatlib.spec

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