109 lines
2.7 KiB
RPMSpec
109 lines
2.7 KiB
RPMSpec
|
|
%global githubname QATzip
|
||
|
|
%global libqatzip_soversion 3
|
||
|
|
|
||
|
|
Name: qatzip
|
||
|
|
Version: 1.2.0
|
||
|
|
Release: 1
|
||
|
|
Summary: Intel QuickAssist Technology (QAT) QATzip Library
|
||
|
|
License: BSD
|
||
|
|
URL: https://github.com/intel/%{githubname}
|
||
|
|
Source0: %{githubname}-%{version}.tar.gz
|
||
|
|
|
||
|
|
BuildRequires: gcc >= 4.8.5
|
||
|
|
BuildRequires: zlib-devel >= 1.2.7
|
||
|
|
BuildRequires: qatlib-devel
|
||
|
|
BuildRequires: autoconf automake libtool make lz4-devel
|
||
|
|
|
||
|
|
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 static
|
||
|
|
Summary: Provides the static lib for the qatzip package
|
||
|
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
|
||
|
|
%description static
|
||
|
|
This package contains libraries for applications to use
|
||
|
|
the QATzip APIs.
|
||
|
|
|
||
|
|
%package devel
|
||
|
|
Summary: Development components for the libqatzip package
|
||
|
|
Requires: %{name}-libs = %{version}-%{release}
|
||
|
|
|
||
|
|
%description devel
|
||
|
|
This package contains headers and libraries required to build
|
||
|
|
applications that use the QATzip APIs.
|
||
|
|
|
||
|
|
%package doc
|
||
|
|
Summary: Documentation files for %{name}
|
||
|
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
BuildArch: noarch
|
||
|
|
|
||
|
|
%description doc
|
||
|
|
The %{name}-doc package contains documentation files for %{name}.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -p0 -n %{githubname}-%{version}
|
||
|
|
|
||
|
|
%build
|
||
|
|
%set_build_flags
|
||
|
|
|
||
|
|
autoreconf -vif
|
||
|
|
./configure \
|
||
|
|
--bindir=%{_bindir} \
|
||
|
|
--libdir=%{_libdir} \
|
||
|
|
--includedir=%{_includedir} \
|
||
|
|
--mandir=%{_mandir} \
|
||
|
|
--prefix=%{_prefix} \
|
||
|
|
--enable-symbol
|
||
|
|
|
||
|
|
%make_build
|
||
|
|
|
||
|
|
%install
|
||
|
|
%make_install
|
||
|
|
rm %{buildroot}/%{_libdir}/libqatzip.la
|
||
|
|
rm -vf %{buildroot}%{_mandir}/*.pdf
|
||
|
|
|
||
|
|
%files
|
||
|
|
%license LICENSE*
|
||
|
|
%{_mandir}/man1/qzip.1*
|
||
|
|
%{_bindir}/qzip
|
||
|
|
%{_bindir}/qatzip-test
|
||
|
|
|
||
|
|
%files libs
|
||
|
|
%license LICENSE*
|
||
|
|
%{_libdir}/libqatzip.so.%{libqatzip_soversion}*
|
||
|
|
|
||
|
|
%files static
|
||
|
|
%{_libdir}/libqatzip.a
|
||
|
|
|
||
|
|
%files devel
|
||
|
|
%{_includedir}/qatzip.h
|
||
|
|
%{_libdir}/libqatzip.so
|
||
|
|
%{_libdir}/pkgconfig/*.pc
|
||
|
|
%doc docs/QATzip-man.pdf
|
||
|
|
|
||
|
|
%files doc
|
||
|
|
%doc docs/QATzip-man.pdf
|
||
|
|
%doc README.md
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Thu Aug 29 2024 Aichun Shi <aichun.shi@intel.com> - 1.2.0-1
|
||
|
|
- Initial Package
|