Initial import (#1955394)

This commit is contained in:
zm627 2021-07-29 18:38:19 +08:00
parent 8972ff2d35
commit 02fd05bd5a
3 changed files with 87 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/qatzip-1.0.5.tar.gz

85
qatzip.spec Normal file
View File

@ -0,0 +1,85 @@
# SPDX-License-Identifier: MIT
%global githubname QATzip
%global libqatzip_soversion 1
Name: qatzip
Version: 1.0.5
Release: 1%{?dist}
Summary: Intel QuickAssist Technology (QAT) QATzip Library
License: BSD
URL: https://github.com/intel/%{githubname}
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc >= 4.8.5
BuildRequires: zlib-devel >= 1.2.7
BuildRequires: qatlib-devel >= 20.10.0
# The purpose of the package is to support hardware that only exists on x86_64 platforms
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
%autosetup -n %{githubname}-%{version}
%build
%set_build_flags
./configure \
--bindir=%{_bindir} \
--sharedlib-dir=%{_libdir} \
--includedir=%{_includedir} \
--mandir=%{_mandir} \
--prefix=%{_prefix} \
--enable-symbol
%make_build
%install
%make_install
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
%files libs
%license LICENSE*
%{_libdir}/libqatzip.so.%{libqatzip_soversion}
%{_libdir}/libqatzip.so.%{version}
%files devel
%doc docs/QATzip-man.pdf
%{_includedir}/qatzip.h
%{_libdir}/libqatzip.so
%changelog
* Tue Jul 13 2021 Ma Zheng <zheng.ma@intel.com> - 1.0.5-1
- Initial version of RPM Package

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (qatzip-1.0.5.tar.gz) = 44788df92a050bcf63bf8db5856fe98854a605baa793de39708a7b7fb0ce5ed1c64de374520ed70da42fc5c7e0944ceb99ec73ac1e8c10d57ac3cd26ccb5c5a5