Blame SPECS/qatlib.spec

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