Blame SPECS/qatzip.spec

768da3
# SPDX-License-Identifier: MIT
768da3
768da3
%global githubname QATzip
f88207
%global libqatzip_soversion 3
768da3
768da3
Name:           qatzip
f88207
Version:        1.0.9
cafc18
Release:        1%{?dist}
768da3
Summary:        Intel QuickAssist Technology (QAT) QATzip Library
768da3
License:        BSD
768da3
URL:            https://github.com/intel/%{githubname}
f88207
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
768da3
768da3
BuildRequires:  gcc >= 4.8.5
768da3
BuildRequires:  zlib-devel >= 1.2.7
f88207
BuildRequires:  qatlib-devel >= 22.07.0
f88207
BuildRequires:  autoconf automake libtool make lz4-devel
768da3
# The purpose of the package is to support hardware that only exists on x86_64 platforms
768da3
# https://bugzilla.redhat.com/show_bug.cgi?id=1987280
768da3
ExclusiveArch:  x86_64
768da3
768da3
%description
768da3
QATzip is a user space library which builds on top of the Intel
768da3
QuickAssist Technology user space library, to provide extended
768da3
accelerated compression and decompression services by offloading the
768da3
actual compression and decompression request(s) to the Intel Chipset
768da3
Series. QATzip produces data using the standard gzip* format
768da3
(RFC1952) with extended headers. The data can be decompressed with a
768da3
compliant gzip* implementation. QATzip is designed to take full
768da3
advantage of the performance provided by Intel QuickAssist
768da3
Technology.
768da3
768da3
%package        libs
768da3
Summary:        Libraries for the qatzip package
768da3
768da3
%description    libs
768da3
This package contains libraries for applications to use
768da3
the QATzip APIs.
768da3
768da3
%package        devel
768da3
Summary:        Development components for the libqatzip package
768da3
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
768da3
768da3
%description    devel
768da3
This package contains headers and libraries required to build
768da3
applications that use the QATzip APIs.
768da3
768da3
%prep
cafc18
%autosetup -p0 -n %{githubname}-%{version}
768da3
768da3
%build
768da3
%set_build_flags
768da3
f88207
autoreconf -vif
768da3
./configure \
768da3
    --bindir=%{_bindir} \
f88207
    --libdir=%{_libdir} \
768da3
    --includedir=%{_includedir} \
768da3
    --mandir=%{_mandir} \
768da3
    --prefix=%{_prefix} \
768da3
    --enable-symbol
768da3
768da3
%make_build
768da3
768da3
%install
768da3
%make_install
f88207
rm %{buildroot}/%{_libdir}/libqatzip.a
f88207
rm %{buildroot}/%{_libdir}/libqatzip.la
768da3
rm -vf %{buildroot}%{_mandir}/*.pdf
768da3
768da3
# Check section is not available for these functional and performance tests require special hardware.
768da3
768da3
%files
768da3
%license LICENSE*
768da3
%{_mandir}/man1/qzip.1*
768da3
%{_bindir}/qzip
768da3
768da3
%files libs
768da3
%license LICENSE*
f88207
%{_libdir}/libqatzip.so.%{libqatzip_soversion}*
768da3
768da3
%files devel
768da3
%doc docs/QATzip-man.pdf
768da3
%{_includedir}/qatzip.h
768da3
%{_libdir}/libqatzip.so
768da3
768da3
%changelog
f88207
* Mon Aug 08 2022 Vladis Dronov <vdronov@redhat.com> - 1.0.9-1
f88207
- Rebuild for qatzip v1.0.9 (bz 2047744)
f88207
- Update to require qatlib-devel >= 22.07.0 due to soversion bump
f88207
cafc18
* Wed Feb 09 2022 Vladis Dronov <vdronov@redhat.com> - 1.0.7-1
cafc18
- Rebuild for qatzip v1.0.7
cafc18
- Fix snprintf truncation check (bz 2046925)
cafc18
- Add -fstack-protector-strong build option (bz 2044889)
cafc18
768da3
* Wed Oct 20 2021 Vladis Dronov <vdronov@redhat.com> - 1.0.6-5
768da3
- Add OSCI testing harness (bz 1874207)
768da3
768da3
* Mon Sep 13 2021 zm627 <zheng.ma@intel.com> - 1.0.6-3
768da3
- Rebuild for qatzip v1.0.6
768da3
768da3
* Sun Sep 12 2021 zm627 <zheng.ma@intel.com> - 1.0.6-2
768da3
- Upload new qatzip source package and rebuild
768da3
768da3
* Sun Sep 12 2021 zm627 <zheng.ma@intel.com> - 1.0.6-1
768da3
- Update to latest qatlib and qatzip upstream release
768da3
768da3
* Sun Sep 12 2021 zm627 <zheng.ma@intel.com> - 1.0.5-3
768da3
- Add ExcludeArch ticket number
768da3
768da3
* Sun Sep 12 2021 zm627 <zheng.ma@intel.com> - 1.0.5-2
768da3
- Rebuilt for qatlib v21.08
768da3
768da3
* Tue Jul 13 2021 Ma Zheng <zheng.ma@intel.com> - 1.0.5-1
768da3
- Initial version of RPM Package