2021-07-29 10:38:19 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
%global githubname QATzip
|
2022-08-08 14:35:11 +00:00
|
|
|
%global libqatzip_soversion 3
|
2021-07-29 10:38:19 +00:00
|
|
|
|
|
|
|
Name: qatzip
|
2024-03-23 18:53:32 +00:00
|
|
|
Version: 1.2.0
|
2024-10-29 16:09:58 +00:00
|
|
|
Release: 4%{?dist}
|
2021-07-29 10:38:19 +00:00
|
|
|
Summary: Intel QuickAssist Technology (QAT) QATzip Library
|
2023-09-08 14:50:33 +00:00
|
|
|
License: BSD-3-Clause
|
2021-07-29 10:38:19 +00:00
|
|
|
URL: https://github.com/intel/%{githubname}
|
2022-08-08 14:35:11 +00:00
|
|
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
2021-07-29 10:38:19 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc >= 4.8.5
|
|
|
|
BuildRequires: zlib-devel >= 1.2.7
|
2023-09-08 14:50:33 +00:00
|
|
|
BuildRequires: qatlib-devel >= 23.08.0
|
2022-08-08 14:35:11 +00:00
|
|
|
BuildRequires: autoconf automake libtool make lz4-devel
|
2021-07-29 10:38:19 +00:00
|
|
|
# The purpose of the package is to support hardware that only exists on x86_64 platforms
|
2021-09-12 03:47:22 +00:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1987280
|
2021-07-29 10:38:19 +00:00
|
|
|
ExclusiveArch: x86_64
|
|
|
|
|
|
|
|
%description
|
|
|
|
QATzip is a user space library which builds on top of the Intel
|
|
|
|
QuickAssist Technology user space library, to provide extended
|
|
|
|
accelerated compression and decompression services by offloading the
|
|
|
|
actual compression and decompression request(s) to the Intel Chipset
|
|
|
|
Series. QATzip produces data using the standard gzip* format
|
|
|
|
(RFC1952) with extended headers. The data can be decompressed with a
|
|
|
|
compliant gzip* implementation. QATzip is designed to take full
|
|
|
|
advantage of the performance provided by Intel QuickAssist
|
|
|
|
Technology.
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Libraries for the qatzip package
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
This package contains libraries for applications to use
|
|
|
|
the QATzip APIs.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development components for the libqatzip package
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains headers and libraries required to build
|
|
|
|
applications that use the QATzip APIs.
|
|
|
|
|
|
|
|
%prep
|
2023-09-08 14:50:33 +00:00
|
|
|
%autosetup -n %{githubname}-%{version}
|
2021-07-29 10:38:19 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%set_build_flags
|
|
|
|
|
2022-08-08 14:35:11 +00:00
|
|
|
autoreconf -vif
|
2021-07-29 10:38:19 +00:00
|
|
|
./configure \
|
|
|
|
--bindir=%{_bindir} \
|
2022-08-08 14:35:11 +00:00
|
|
|
--libdir=%{_libdir} \
|
2021-07-29 10:38:19 +00:00
|
|
|
--includedir=%{_includedir} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--enable-symbol
|
|
|
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2022-08-08 14:35:11 +00:00
|
|
|
rm %{buildroot}/%{_libdir}/libqatzip.a
|
|
|
|
rm %{buildroot}/%{_libdir}/libqatzip.la
|
2021-07-29 10:38:19 +00:00
|
|
|
rm -vf %{buildroot}%{_mandir}/*.pdf
|
|
|
|
|
|
|
|
# Check section is not available for these functional and performance tests require special hardware.
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE*
|
|
|
|
%{_mandir}/man1/qzip.1*
|
|
|
|
%{_bindir}/qzip
|
2024-03-23 18:53:32 +00:00
|
|
|
%{_bindir}/qatzip-test
|
2021-07-29 10:38:19 +00:00
|
|
|
|
|
|
|
%files libs
|
|
|
|
%license LICENSE*
|
2022-08-08 14:35:11 +00:00
|
|
|
%{_libdir}/libqatzip.so.%{libqatzip_soversion}*
|
2021-07-29 10:38:19 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc docs/QATzip-man.pdf
|
|
|
|
%{_includedir}/qatzip.h
|
|
|
|
%{_libdir}/libqatzip.so
|
2023-01-11 18:56:41 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2021-07-29 10:38:19 +00:00
|
|
|
|
|
|
|
%changelog
|
2024-10-29 16:09:58 +00:00
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.2.0-4
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
2024-03-24 22:08:03 +00:00
|
|
|
* Wed Jun 26 2024 Vladis Dronov <vdronov@redhat.com> - 1.2.0-3
|
|
|
|
- Add self-tests and an OSCI harness (RHEL-20179)
|
|
|
|
|
2024-06-24 16:20:47 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.2.0-2
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-03-23 18:53:32 +00:00
|
|
|
* Fri Mar 22 2024 Vladis Dronov <vdronov@redhat.com> - 1.2.0-1
|
|
|
|
- Update to qatzip v1.2.0 (RHEL-20179)
|
|
|
|
- Add qatzip-test tool
|
|
|
|
- SW fallback
|
|
|
|
- Fix some bugs
|
|
|
|
|
2024-03-24 22:08:03 +00:00
|
|
|
* Fri Jan 26 2024 Vladis Dronov <vdronov@redhat.com> - 1.1.2-5
|
|
|
|
- Initial import from Fedora 40
|