Blame SPECS/qatzip.spec

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