|
|
fabfcd |
# Keep the *.la file around
|
|
|
fabfcd |
# See https://fedoraproject.org/wiki/Changes/RemoveLaFiles
|
|
|
fabfcd |
%global __brp_remove_la_files %nil
|
|
|
fabfcd |
|
|
|
fabfcd |
Name: libnxz
|
|
|
fabfcd |
Version: 0.63
|
|
|
fabfcd |
Release: 2%{?dist}
|
|
|
fabfcd |
Summary: Zlib implementation for POWER processors
|
|
|
fabfcd |
License: ASL 2.0 or GPLv2+
|
|
|
fabfcd |
Url: https://github.com/libnxz/power-gzip
|
|
|
fabfcd |
BuildRequires: zlib-devel
|
|
|
fabfcd |
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
fabfcd |
|
|
|
fabfcd |
# https://github.com/libnxz/power-gzip/pull/150
|
|
|
fabfcd |
Patch0: pr150.patch
|
|
|
fabfcd |
# https://github.com/libnxz/power-gzip/pull/155
|
|
|
fabfcd |
Patch1: pr155.patch
|
|
|
fabfcd |
# https://github.com/libnxz/power-gzip/pull/174
|
|
|
fabfcd |
Patch2: pr174.patch
|
|
|
fabfcd |
|
|
|
fabfcd |
# Be explicit about the soname in order to avoid unintentional changes.
|
|
|
fabfcd |
%global soname libnxz.so.0
|
|
|
fabfcd |
|
|
|
fabfcd |
ExclusiveArch: ppc64le
|
|
|
fabfcd |
BuildRequires: gcc
|
|
|
fabfcd |
BuildRequires: make
|
|
|
fabfcd |
BuildRequires: systemd-rpm-macros
|
|
|
fabfcd |
|
|
|
fabfcd |
%description
|
|
|
fabfcd |
libnxz is a zlib-compatible library that uses the NX GZIP Engine available on
|
|
|
fabfcd |
POWER9 or newer processors in order to provide a faster zlib/gzip compression
|
|
|
fabfcd |
without using the general-purpose cores.
|
|
|
fabfcd |
|
|
|
fabfcd |
%package devel
|
|
|
fabfcd |
Summary: Development files for %{name}
|
|
|
fabfcd |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
fabfcd |
|
|
|
fabfcd |
%description devel
|
|
|
fabfcd |
The %{name}-devel package contains header files for developing application that
|
|
|
fabfcd |
use %{name}.
|
|
|
fabfcd |
|
|
|
fabfcd |
%package static
|
|
|
fabfcd |
Summary: Static library for %{name} development
|
|
|
fabfcd |
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
fabfcd |
|
|
|
fabfcd |
%description static
|
|
|
fabfcd |
The %{name}-static package contains static libraries for developing
|
|
|
fabfcd |
application that use %{name}.
|
|
|
fabfcd |
|
|
|
fabfcd |
%prep
|
|
|
fabfcd |
%autosetup -p1 -n power-gzip-%{version}
|
|
|
fabfcd |
|
|
|
fabfcd |
%build
|
|
|
fabfcd |
%configure --enable-zlib-api
|
|
|
fabfcd |
%make_build
|
|
|
fabfcd |
|
|
|
fabfcd |
%check
|
|
|
fabfcd |
# libnxz tests only work on P9 servers or newer, with Linux >= 5.8.
|
|
|
fabfcd |
# This combination is not guaranteed to have at build time. Check if
|
|
|
fabfcd |
# NX GZIP engine device is available before deciding to run the tests.
|
|
|
fabfcd |
if [[ -w "/dev/crypto/nx-gzip" ]]; then
|
|
|
fabfcd |
make check
|
|
|
fabfcd |
fi
|
|
|
fabfcd |
|
|
|
fabfcd |
%install
|
|
|
fabfcd |
%make_install
|
|
|
fabfcd |
|
|
|
fabfcd |
%pre
|
|
|
fabfcd |
%{_sbindir}/groupadd -r -f nx-gzip
|
|
|
fabfcd |
|
|
|
fabfcd |
%files
|
|
|
fabfcd |
%{_libdir}/%{soname}
|
|
|
fabfcd |
%{_libdir}/libnxz.so.0.%{version}
|
|
|
fabfcd |
%license %{_docdir}/%{name}/APACHE-2.0.txt
|
|
|
fabfcd |
%license %{_docdir}/%{name}/gpl-2.0.txt
|
|
|
fabfcd |
%doc README.md
|
|
|
fabfcd |
|
|
|
fabfcd |
%files devel
|
|
|
fabfcd |
%{_includedir}/libnxz.h
|
|
|
fabfcd |
%{_libdir}/libnxz.so
|
|
|
fabfcd |
|
|
|
fabfcd |
%files static
|
|
|
fabfcd |
%{_libdir}/libnxz.a
|
|
|
fabfcd |
%{_libdir}/libnxz.la
|
|
|
fabfcd |
|
|
|
fabfcd |
%changelog
|
|
|
fabfcd |
* Mon Aug 29 2022 Jakub Čajka <jcajka@redhat.com> - 0.63-2
|
|
|
fabfcd |
- bump for gating
|
|
|
fabfcd |
- Related: RHBZ#2101334
|
|
|
fabfcd |
|
|
|
fabfcd |
* Fri Jul 29 2022 Jakub Čajka <jcajka@redhat.com> - 0.63-1
|
|
|
fabfcd |
- initial package import
|
|
|
fabfcd |
- Resolves: RHBZ#2101334
|