commit 053853c2b0282d08d912ffa308f8490f098ed24df9a898dfa2efc02f8b17abba Author: Adrian Schröter Date: Fri May 3 15:24:22 2024 +0200 Sync from SUSE:SLFO:Main libnxz revision 5bb4d3c5c434ed08c3e3d135955870a4 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/libnxz-0.64.tar.gz b/libnxz-0.64.tar.gz new file mode 100644 index 0000000..b8fb8dd --- /dev/null +++ b/libnxz-0.64.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86b11ad8b512204816241d5dd98ac0561d1f6b06180f658c532c3ffbc16925df +size 1515624 diff --git a/libnxz.changes b/libnxz.changes new file mode 100644 index 0000000..1b47ca5 --- /dev/null +++ b/libnxz.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Fri Dec 15 09:35:03 UTC 2023 - Danilo Spinella + +- Update summary to have a more sensible explanation + +------------------------------------------------------------------- +Thu Nov 30 08:38:35 UTC 2023 - Danilo Spinella + +- Initial packaging of version 0.64 + diff --git a/libnxz.spec b/libnxz.spec new file mode 100644 index 0000000..f5acd12 --- /dev/null +++ b/libnxz.spec @@ -0,0 +1,92 @@ +# +# spec file for package libnxz +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global soversion 0 +%define libname %{name}%{soversion} +Name: libnxz +Version: 0.64 +Release: 0 +Summary: Zlib implementation for POWER processors +License: Apache-2.0 OR GPL-2.0-or-later +Group: Development/Libraries/C and C++ +URL: https://github.com/%{name}/power-gzip +Source: %{url}/archive/v%{version}.tar.gz#:/%{name}-%{version}.tar.gz +BuildRequires: dos2unix +BuildRequires: pkgconfig +BuildRequires: pkgconfig(zlib) +ExclusiveArch: ppc64 ppc64le + +%description +libnxz implements a zlib-compatible API for Linux userspace programs that exploit the NX GZIP accelerator available on POWER9 and newer processors. + +%package -n %{libname} +Summary: Zlib implementation for POWER processors + +%description -n %{libname} +libnxz implements a zlib-compatible API for Linux userspace programs that exploit the NX GZIP accelerator available on POWER9 and newer processors. + +This package contains the shared library for %{name}. + +%package devel +Summary: Development files for %{name} +Requires: %{name}0 = %{version} + +%description devel +libnxz implements a zlib-compatible API for Linux userspace programs that exploit the NX GZIP accelerator available on POWER9 and newer processors. + +This package contains the development files for %{name}. + +%prep +%autosetup -p1 -n power-gzip-%{version} +dos2unix doc/Addendum-NX-GZIP-for-PowerVM.txt + +%build +export CFLAGS="-ffat-lto-objects %optflags" +%configure --enable-zlib-api +%make_build + +%install +%make_install +# Remove the installed licenses +rm %{buildroot}%{_datadir}/doc/libnxz/{APACHE-2.0,gpl-2.0}.txt +# Remove the static library +rm %{buildroot}%{_libdir}/%{name}.a + +%check +# libnxz tests only work on P9 servers or newer, with Linux >= 5.8. +# This combination is not guaranteed to be present at build time. Check if +# NX GZIP engine device is available before deciding to run the tests. +if [ -w "/dev/crypto/nx-gzip" ]; then + %make_build check +fi + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files -n %{libname} +%license licenses/* +%{_libdir}/%{name}.so.%{soversion} +%{_libdir}/%{name}.so.%{soversion}.* + +%files devel +%doc doc/Addendum-NX-GZIP-for-PowerVM.txt README.md +%exclude %{_libdir}/%{name}.so.%{soversion}* +%{_libdir}/%{name}.* +%{_includedir}/%{name}.h + +%changelog