Blame SPECS/qatlib.spec

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