Blame SPECS/qatzip.spec

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