Blame SPECS/qatlib.spec

e42c5a
# SPDX-License-Identifier: MIT
e42c5a
e42c5a
%global libqat_soversion  0
e42c5a
%global libusdm_soversion 0
e42c5a
Name:             qatlib
e42c5a
Version:          20.10.0
e42c5a
Release:          3%{?dist}
e42c5a
Summary:          Intel QuickAssist user space library
e42c5a
# The entire source code is released under BSD.
e42c5a
# For a breakdown of inbound licenses see the INSTALL file.
e42c5a
License:          BSD and (BSD or GPLv2)
e42c5a
URL:              https://github.com/intel/%{name}
e42c5a
Source0:          https://github.com/intel/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
e42c5a
BuildRequires:    systemd gcc make autoconf automake libtool systemd-devel openssl-devel zlib-devel
e42c5a
Requires(pre):    shadow-utils
e42c5a
# https://bugzilla.redhat.com/show_bug.cgi?id=1897661
e42c5a
ExcludeArch:      %{arm} aarch64 %{power64} s390x i686
e42c5a
e42c5a
%{?systemd_requires}
e42c5a
e42c5a
%description
e42c5a
Intel QuickAssist Technology (Intel QAT) provides hardware acceleration
e42c5a
for offloading security, authentication and compression services from the
e42c5a
CPU, thus significantly increasing the performance and efficiency of
e42c5a
standard platform solutions.
e42c5a
e42c5a
Its services include symmetric encryption and authentication,
e42c5a
asymmetric encryption, digital signatures, RSA, DH and ECC, and
e42c5a
lossless data compression.
e42c5a
e42c5a
This package provides user space libraries that allow access to
e42c5a
Intel QuickAssist devices and expose the Intel QuickAssist APIs.
e42c5a
e42c5a
%package       devel
e42c5a
Summary:       Headers and libraries to build applications that use qatlib
e42c5a
Requires:      %{name}%{?_isa} = %{version}-%{release}
e42c5a
e42c5a
%description   devel
e42c5a
This package contains headers and libraries required to build applications
e42c5a
that use the Intel QuickAssist APIs.
e42c5a
e42c5a
%prep
e42c5a
%autosetup
e42c5a
e42c5a
%build
e42c5a
autoreconf -vif
e42c5a
%configure
e42c5a
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
e42c5a
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
e42c5a
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
e42c5a
%make_build
e42c5a
e42c5a
%install
e42c5a
%make_install
e42c5a
e42c5a
%pre
e42c5a
getent group qat >/dev/null || groupadd -r qat
e42c5a
exit 0
e42c5a
e42c5a
%post
e42c5a
%systemd_post qat.service
e42c5a
e42c5a
%preun
e42c5a
%systemd_preun qat.service
e42c5a
e42c5a
%postun
e42c5a
%systemd_postun_with_restart qat.service
e42c5a
e42c5a
%files
e42c5a
%license LICENSE*
e42c5a
%{_libdir}/libqat.so.%{libqat_soversion}*
e42c5a
%{_libdir}/libusdm.so.%{libusdm_soversion}*
e42c5a
%{_sbindir}/qatmgr
e42c5a
%{_sbindir}/qat_init.sh
e42c5a
%{_unitdir}/qat.service
e42c5a
%{_mandir}/man8/qat_init.sh.8*
e42c5a
%{_mandir}/man8/qatmgr.8*
e42c5a
e42c5a
%files         devel
e42c5a
%{_libdir}/libqat.so
e42c5a
%{_libdir}/libusdm.so
e42c5a
%{_includedir}/qat
e42c5a
%exclude %{_libdir}/libqat.la
e42c5a
%exclude %{_libdir}/libusdm.la
e42c5a
e42c5a
%changelog
e42c5a
* Tue Feb  9 2021 Vladis Dronov <vdronov@redhat.com> - 20.10.0-3
e42c5a
- Add OSCI testing harness (bz 1907482)
e42c5a
e42c5a
* Mon Dec 14 2020 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 20.10.0-2
e42c5a
- Add ExcludeArch i686
e42c5a
e42c5a
* Mon Nov 16 2020 Giovanni Cabiddu <giovanni.cabiddu@intel.com> - 20.10.0-1
e42c5a
- Update to qatlib 20.10
e42c5a
- Fixes to spec to address comments from Fedora review
e42c5a
e42c5a
* Mon Aug 10 2020 Mateusz Polrola <mateuszx.potrola@intel.com> - 20.08.0-1
e42c5a
- Initial version of the package