Blame SPECS/qatzip.spec

891da8
# SPDX-License-Identifier: MIT
891da8
891da8
%global githubname QATzip
196b81
%global libqatzip_soversion 3
891da8
891da8
Name:           qatzip
196b81
Version:        1.0.9
196b81
Release:        1%{?dist}
891da8
Summary:        Intel QuickAssist Technology (QAT) QATzip Library
891da8
License:        BSD
891da8
URL:            https://github.com/intel/%{githubname}
196b81
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
891da8
891da8
BuildRequires:  gcc >= 4.8.5
891da8
BuildRequires:  zlib-devel >= 1.2.7
196b81
BuildRequires:  qatlib-devel >= 22.07.0
196b81
BuildRequires:  autoconf automake libtool make lz4-devel
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
196b81
%autosetup -p0 -n %{githubname}-%{version}
891da8
891da8
%build
891da8
%set_build_flags
891da8
196b81
autoreconf -vif
891da8
./configure \
891da8
    --bindir=%{_bindir} \
196b81
    --libdir=%{_libdir} \
891da8
    --includedir=%{_includedir} \
891da8
    --mandir=%{_mandir} \
891da8
    --prefix=%{_prefix} \
891da8
    --enable-symbol
891da8
891da8
%make_build
891da8
891da8
%install
891da8
%make_install
196b81
rm %{buildroot}/%{_libdir}/libqatzip.a
196b81
rm %{buildroot}/%{_libdir}/libqatzip.la
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*
196b81
%{_libdir}/libqatzip.so.%{libqatzip_soversion}*
891da8
891da8
%files devel
891da8
%doc docs/QATzip-man.pdf
891da8
%{_includedir}/qatzip.h
891da8
%{_libdir}/libqatzip.so
891da8
891da8
%changelog
196b81
* Mon Aug 08 2022 Vladis Dronov <vdronov@redhat.com> - 1.0.9-1
196b81
- Rebuild for qatzip v1.0.9 (bz 2048039)
196b81
- Update to require qatlib-devel >= 22.07.0 due to soversion bump
196b81
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