# SPDX-License-Identifier: MIT
%global githubname QAT_Engine
%global enginesdir %(pkg-config --variable=enginesdir libcrypto)
Name: qatengine
Version: 0.6.10
Release: 1%{?dist}
Summary: Intel QuickAssist Technology (QAT) OpenSSL Engine
# Most of the source code is BSD, with the following exceptions:
# - e_qat.txt, e_qat_err.c, and e_qat_err.h are OpenSSL
# - qat/config/* are (BSD or GPLv2), but are not used during compilation
# - qat_contig_mem/* are GPLv2, but are not used during compilation
License: BSD and OpenSSL
URL: https://github.com/intel/%{githubname}
Source0: https://github.com/intel/%{githubname}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc make pkg-config
BuildRequires: autoconf automake libtool
BuildRequires: openssl-devel >= 1.1.1
BuildRequires: qatlib-devel >= 21.08.0
# https://bugzilla.redhat.com/show_bug.cgi?id=1909065
ExcludeArch: %{arm} aarch64 %{power64} s390x i686
%description
This package provides the Intel QuickAssist Technology OpenSSL Engine
(an OpenSSL Plug-In Engine) which provides cryptographic acceleration
for both hardware and optimized software using Intel QuickAssist Technology
enabled Intel platforms.
%prep
%autosetup -n %{githubname}-%{version}
%build
autoreconf -ivf
%configure
%make_build
%install
%make_install
%files
%license LICENSE*
%doc README.md docs*
%{enginesdir}/qatengine.so
%exclude %{enginesdir}/qatengine.la
%changelog
* Mon Nov 15 2021 Vladis Dronov <vdronov@redhat.com> - 0.6.10-1
- Update to qatengine v0.6.10 (bz 2012945)
- Add OSCI testing harness
* Wed Aug 18 2021 Vladis Dronov <vdronov@redhat.com> - 0.6.7-1
- Update to qatengine v0.6.7 with openssl-3 support (bz 1874206, bz 1953498)
- Add documentation files to a package
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.6.4-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.6.4-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Fri Dec 11 2020 Yogaraj Alamenda <yogarajx.alamenda@intel.com> 0.6.4-1
- Update to qatengine v0.6.4
* Mon Nov 30 2020 Yogaraj Alamenda <yogarajx.alamenda@intel.com> 0.6.3-1
- Update to qatengine v0.6.3
- Update License and library installation
* Wed Nov 18 2020 Dinesh Balakrishnan <dineshx.balakrishnan@intel.com> 0.6.2-1
- Update to qatengine v0.6.2
- Address review comments
* Tue Sep 08 2020 Dinesh Balakrishnan <dineshx.balakrishnan@intel.com> 0.6.1-1
- Initial version of rpm package