2020-10-28 02:16:32 +00:00
|
|
|
Name: libnxz
|
2022-03-04 17:40:18 +00:00
|
|
|
Version: 0.63
|
2022-04-14 14:51:14 +00:00
|
|
|
Release: 2%{?dist}
|
2020-10-28 02:16:32 +00:00
|
|
|
Summary: Zlib implementation for POWER processors
|
2022-03-04 17:40:18 +00:00
|
|
|
License: ASL 2.0 or GPLv2+
|
2020-10-28 02:16:32 +00:00
|
|
|
Url: https://github.com/libnxz/power-gzip
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
2022-04-14 14:51:14 +00:00
|
|
|
Source1: nx-gzip.udev
|
|
|
|
|
|
|
|
# https://github.com/libnxz/power-gzip/pull/150
|
|
|
|
Patch0: pr150.patch
|
|
|
|
# https://github.com/libnxz/power-gzip/pull/155
|
|
|
|
Patch1: pr155.patch
|
2020-10-28 02:16:32 +00:00
|
|
|
|
|
|
|
# Be explicit about the soname in order to avoid unintentional changes.
|
2022-03-04 17:40:18 +00:00
|
|
|
%global soname libnxz.so.0
|
2020-10-28 02:16:32 +00:00
|
|
|
|
|
|
|
ExclusiveArch: ppc64le
|
|
|
|
BuildRequires: gcc
|
2022-04-14 14:51:14 +00:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: systemd-rpm-macros
|
2020-10-28 02:16:32 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
libnxz is a zlib-compatible library that uses the NX GZIP Engine available on
|
|
|
|
POWER9 or newer processors in order to provide a faster zlib/gzip compression
|
|
|
|
without using the general-purpose cores.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains header files for developing application that
|
|
|
|
use %{name}.
|
|
|
|
|
|
|
|
%package static
|
|
|
|
Summary: Static library for %{name} development
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description static
|
|
|
|
The %{name}-static package contains static libraries for developing
|
|
|
|
application that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n power-gzip-%{version}
|
|
|
|
|
|
|
|
%build
|
2022-03-04 17:40:18 +00:00
|
|
|
%configure --enable-zlib-api
|
|
|
|
%make_build
|
2020-10-28 02:16:32 +00:00
|
|
|
|
|
|
|
%check
|
2021-12-03 13:57:15 +00:00
|
|
|
# libnxz tests only work on P9 servers or newer, with Linux >= 5.8.
|
|
|
|
# This combination is not guaranteed to have at build time. Check if
|
|
|
|
# NX GZIP engine device is available before deciding to run the tests.
|
|
|
|
if [[ -w "/dev/crypto/nx-gzip" ]]; then
|
2022-03-04 17:40:18 +00:00
|
|
|
make check
|
2021-12-03 13:57:15 +00:00
|
|
|
fi
|
2020-10-28 02:16:32 +00:00
|
|
|
|
|
|
|
%install
|
2022-03-04 17:40:18 +00:00
|
|
|
%make_install
|
2022-04-14 14:51:14 +00:00
|
|
|
install -Dm 644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/90-nx-gzip.rules
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%{_sbindir}/groupadd -r -f nx-gzip
|
2020-10-28 02:16:32 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_libdir}/%{soname}
|
2022-03-04 17:40:18 +00:00
|
|
|
%{_libdir}/libnxz.so.0.%{version}
|
|
|
|
%license %{_docdir}/%{name}/APACHE-2.0.txt
|
|
|
|
%license %{_docdir}/%{name}/gpl-2.0.txt
|
2020-10-28 02:16:32 +00:00
|
|
|
%doc README.md
|
2022-04-14 14:51:14 +00:00
|
|
|
%{_udevrulesdir}/90-nx-gzip.rules
|
2020-10-28 02:16:32 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/libnxz.h
|
|
|
|
%{_libdir}/libnxz.so
|
|
|
|
|
|
|
|
%files static
|
|
|
|
%{_libdir}/libnxz.a
|
2022-03-04 17:40:18 +00:00
|
|
|
%{_libdir}/libnxz.la
|
2020-10-28 02:16:32 +00:00
|
|
|
|
|
|
|
%changelog
|
2022-04-14 14:51:14 +00:00
|
|
|
* Thu Apr 14 2022 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> - 0.63-2
|
|
|
|
- Backport fixes from upstream.
|
|
|
|
- Create the nx-gzip group and add udev rules.
|
|
|
|
|
2022-03-04 17:40:18 +00:00
|
|
|
* Fri Mar 04 2022 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> - 0.63-1
|
|
|
|
- Update to libnxz 0.63.
|
|
|
|
- Fix the soname to the right string.
|
|
|
|
- Properly list the dual-licensing scenario of the project.
|
|
|
|
|
2022-01-26 14:52:40 +00:00
|
|
|
* Wed Jan 26 2022 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> - 0.62-4
|
|
|
|
- Fix issue with GCC 12.
|
|
|
|
|
2022-01-20 16:51:37 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.62-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-12-03 13:57:15 +00:00
|
|
|
* Fri Dec 03 2021 Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> - 0.62-2
|
|
|
|
- Enable tests if the NX GZIP engine is available.
|
|
|
|
|
2021-08-16 17:06:57 +00:00
|
|
|
* Mon Aug 16 2021 Raphael Moreira Zinsly <rzinsly@linux.ibm.com> - 0.62-1
|
|
|
|
- Update version.
|
|
|
|
|
2021-07-22 11:59:56 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.61-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-01-26 17:39:51 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.61-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-11-10 22:25:30 +00:00
|
|
|
* Tue Nov 10 2020 Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> - 0.61-2
|
|
|
|
- Fix release version and match with changelog.
|
|
|
|
|
2020-10-28 02:16:32 +00:00
|
|
|
* Tue Oct 27 2020 Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> - 0.61-0
|
|
|
|
- Initial packaging
|