Blame SPECS/qatzip.spec

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