From 38490c794f1df9787b4815e719f6f2e48a4f219e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 17 Jun 2023 11:46:20 +0200 Subject: [PATCH] Resolves: #2207649, Add udev rule for the nx-gzip in to the core subpackage --- nx-gzip.udev | 1 + powerpc-utils.spec | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 nx-gzip.udev diff --git a/nx-gzip.udev b/nx-gzip.udev new file mode 100644 index 0000000..a880692 --- /dev/null +++ b/nx-gzip.udev @@ -0,0 +1 @@ +KERNEL=="nx-gzip", MODE="0666" diff --git a/powerpc-utils.spec b/powerpc-utils.spec index 4ea0ae0..96befe4 100644 --- a/powerpc-utils.spec +++ b/powerpc-utils.spec @@ -1,12 +1,13 @@ Name: powerpc-utils Version: 1.3.10 -Release: 4%{?dist} +Release: 5%{?dist} Summary: PERL-based scripts for maintaining and servicing PowerPC systems Group: System Environment/Base License: GPLv2 URL: https://github.com/ibm-power-utilities/powerpc-utils Source0: https://github.com/ibm-power-utilities/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +Source1: nx-gzip.udev Patch0: powerpc-utils-1.3.10-manpages.patch Patch1: powerpc-utils-1.3.10-distro.patch # bz#2121470, Fix lsslot -c mem output when using 4GB LMB size @@ -78,6 +79,9 @@ install $RPM_BUILD_ROOT/usr/share/doc/packages/powerpc-utils/* -t $RPM_BUILD_ROO rm -rf $RPM_BUILD_ROOT/usr/share/doc/packages/powerpc-utils rm -f $RPM_BUILD_ROOT%{_pkgdocdir}/COPYING +# install udev rule for the nx-gzip accelerator +install -pDm 644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/90-nx-gzip.rules + # remove init script and perl script. They are deprecated rm -rf $RPM_BUILD_ROOT/etc/init.d/ibmvscsis.sh $RPM_BUILD_ROOT/usr/sbin/vscsisadmin @@ -158,6 +162,7 @@ systemctl enable hcn-init.service >/dev/null 2>&1 || : %{_sbindir}/pseries_platform %{_sbindir}/drmgr %{_sbindir}/lparnumascore +%{_udevrulesdir}/90-nx-gzip.rules %{_mandir}/man1/amsstat.1* %{_mandir}/man5/lparcfg.5* %{_mandir}/man8/activate_firmware.8* @@ -192,6 +197,9 @@ systemctl enable hcn-init.service >/dev/null 2>&1 || : %{_mandir}/man8/lparnumascore.8* %changelog +* Sat Jun 17 2023 Than Ngo - 1.3.10-5 +- Resolves: #2207649, Add udev rule for the nx-gzip in to the core subpackage + * Tue Apr 25 2023 Than Ngo - 1.3.10-4 - Resolves: #2166871, lparstat showing incorrect mode in a dedicated-donating LPAR