import qatlib-22.07.0-1.el8

This commit is contained in:
CentOS Sources 2022-11-08 01:53:06 -05:00 committed by Stepan Oksanichenko
parent c73c6cbaa1
commit f598ff9224
3 changed files with 32 additions and 15 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/qatlib-21.11.0.tar.gz
SOURCES/qatlib-22.07.0.tar.gz

View File

@ -1 +1 @@
e6362cc84b97e17beda16b83e51d956bc2097d24 SOURCES/qatlib-21.11.0.tar.gz
00c56119a51b6da207c0d009f343dcf90e595ef9 SOURCES/qatlib-22.07.0.tar.gz

View File

@ -1,9 +1,9 @@
# SPDX-License-Identifier: MIT
%global libqat_soversion 2
%global libqat_soversion 3
%global libusdm_soversion 0
Name: qatlib
Version: 21.11.0
Version: 22.07.0
Release: 1%{?dist}
Summary: Intel QuickAssist user space library
# The entire source code is released under BSD.
@ -11,13 +11,12 @@ Summary: Intel QuickAssist user space library
License: BSD and (BSD or GPLv2)
URL: https://github.com/intel/%{name}
Source0: https://github.com/intel/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: systemd gcc make autoconf automake libtool systemd-devel openssl-devel zlib-devel
BuildRequires: systemd gcc make autoconf automake libtool systemd-devel openssl-devel zlib-devel yasm
Requires(pre): shadow-utils
Recommends: qatlib-service
# https://bugzilla.redhat.com/show_bug.cgi?id=1897661
ExcludeArch: %{arm} aarch64 %{power64} s390x i686
%{?systemd_requires}
%description
Intel QuickAssist Technology (Intel QAT) provides hardware acceleration
for offloading security, authentication and compression services from the
@ -46,6 +45,15 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%description tests
This package contains sample applications that use the Intel QuickAssists APIs.
%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).
%prep
%autosetup
@ -62,18 +70,20 @@ sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
make DESTDIR=%{buildroot} samples-install
rm %{buildroot}/%{_libdir}/libqat.la
rm %{buildroot}/%{_libdir}/libusdm.la
rm %{buildroot}/%{_libdir}/libqat.a
rm %{buildroot}/%{_libdir}/libusdm.a
%pre
getent group qat >/dev/null || groupadd -r qat
exit 0
%post
%post service
%systemd_post qat.service
%preun
%preun service
%systemd_preun qat.service
%postun
%postun service
%systemd_postun_with_restart qat.service
%files
@ -81,11 +91,6 @@ exit 0
%license LICENSE*
%{_libdir}/libqat.so.%{libqat_soversion}*
%{_libdir}/libusdm.so.%{libusdm_soversion}*
%{_sbindir}/qatmgr
%{_sbindir}/qat_init.sh
%{_unitdir}/qat.service
%{_mandir}/man8/qat_init.sh.8*
%{_mandir}/man8/qatmgr.8*
%files devel
%{_libdir}/libqat.so
@ -93,6 +98,7 @@ exit 0
%{_includedir}/qat
%files tests
%doc quickassist/lookaside/access_layer/src/sample_code/README.txt
%attr(0754,-,qat) %{_bindir}/cpa_sample_code
%attr(0754,-,qat) %{_bindir}/dc_dp_sample
%attr(0754,-,qat) %{_bindir}/dc_stateless_sample
@ -115,7 +121,18 @@ exit 0
%{_datadir}/qat/calgary32
%{_datadir}/qat/canterbury
%files service
%{_sbindir}/qatmgr
%{_sbindir}/qat_init.sh
%{_unitdir}/qat.service
%{_mandir}/man8/qatmgr.8*
%{_mandir}/man8/qat_init.sh.8*
%changelog
* Fri Jul 22 2022 Vladis Dronov <vdronov@redhat.com> - 22.07.0-1
- Update to qatlib 22.07 (bz 2040743)
- Moved qat.service to separate rpm
* Thu Nov 11 2021 Vladis Dronov <vdronov@redhat.com> - 21.11.0-1
- Update to qatlib 21.11 (bz 1960303)
- Add qatlib-tests package