Blame SPECS/qatzip.spec

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