From 4f5ecf4e709e2ecba2473fd73fc6cfc7b80e02a9e930a4fa158657677912adcd Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Mon, 16 May 2022 14:49:03 +0000 Subject: [PATCH] Accepting request 973192 from home:jengelh:branches:hardware - Resolve rpmlit reports * libupsclient1.x86_64: E: shlib-policy-name-error SONAME: libnutclient.so.0, expected package suffix: 0 * libupsclient1.x86_64: E: shlib-policy-name-error SONAME: libupsclient.so.4, expected package suffix: 4 OBS-URL: https://build.opensuse.org/request/show/973192 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=98 --- nut.changes | 9 +++++++++ nut.spec | 51 +++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 52 insertions(+), 8 deletions(-) diff --git a/nut.changes b/nut.changes index 8c491e7..795eb88 100644 --- a/nut.changes +++ b/nut.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Apr 27 12:54:07 UTC 2022 - Jan Engelhardt + +- Resolve rpmlit reports + * libupsclient1.x86_64: E: shlib-policy-name-error SONAME: + libnutclient.so.0, expected package suffix: 0 + * libupsclient1.x86_64: E: shlib-policy-name-error SONAME: + libupsclient.so.4, expected package suffix: 4 + ------------------------------------------------------------------- Fri Dec 24 08:09:40 UTC 2021 - Antonio Larrosa diff --git a/nut.spec b/nut.spec index 1a78c3f..58ee2d5 100644 --- a/nut.spec +++ b/nut.spec @@ -1,7 +1,7 @@ # # spec file for package nut # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -133,11 +133,34 @@ together with nut to provide UPS networking support. Network UPS Tools is a collection of programs which provide a common interface for monitoring and administering UPS hardware. -%package -n libupsclient1 +%package -n libnutclient0 Summary: Network UPS Tools Library (Uninterruptible Power Supply Monitoring) Group: System/Libraries +Conflicts: libupsclient1 -%description -n libupsclient1 +%description -n libnutclient0 +Shared library for the Network UPS Tools. + +Network UPS Tools is a collection of programs which provide a common +interface for monitoring and administering UPS hardware. + +%package -n libnutscan1 +Summary: Network UPS Tools Library (Uninterruptible Power Supply Monitoring) +Group: System/Libraries +Conflicts: libupsclient1 + +%description -n libnutscan1 +Shared library for the Network UPS Tools. + +Network UPS Tools is a collection of programs which provide a common +interface for monitoring and administering UPS hardware. + +%package -n libupsclient4 +Summary: Network UPS Tools Library (Uninterruptible Power Supply Monitoring) +Group: System/Libraries +Conflicts: libupsclient1 + +%description -n libupsclient4 Shared library for the Network UPS Tools. Network UPS Tools is a collection of programs which provide a common @@ -161,7 +184,9 @@ interface for monitoring and administering UPS hardware. %package devel Summary: Network UPS Tools (Uninterruptible Power Supply Monitoring) Group: Development/Libraries/C and C++ -Requires: %{name} = %{version} +Requires: libnutclient0 = %{version}-%{release} +Requires: libnutscan1 = %{version}-%{release} +Requires: libupsclient4 = %{version}-%{release} Requires: openssl-devel %description devel @@ -285,8 +310,12 @@ udevadm trigger --subsystem-match=usb --property-match=DEVTYPE=usb_device %postun %service_del_postun nut-driver.service nut-server.service nut-monitor.service -%post -n libupsclient1 -p /sbin/ldconfig -%postun -n libupsclient1 -p /sbin/ldconfig +%post -n libnutclient0 -p /sbin/ldconfig +%postun -n libnutclient0 -p /sbin/ldconfig +%post -n libnutscan1 -p /sbin/ldconfig +%postun -n libnutscan1 -p /sbin/ldconfig +%post -n libupsclient4 -p /sbin/ldconfig +%postun -n libupsclient4 -p /sbin/ldconfig %files %doc AUTHORS ChangeLog MAINTAINERS NEWS README README.SUSE UPGRADING @@ -326,8 +355,14 @@ udevadm trigger --subsystem-match=usb --property-match=DEVTYPE=usb_device %{_mandir}/man8/netxml-ups*%{ext_man} %{_mandir}/man8/snmp-ups*%{ext_man} -%files -n libupsclient1 -%{_libdir}/*.so.* +%files -n libnutclient0 +%{_libdir}/libnutclient.so.* + +%files -n libnutscan1 +%{_libdir}/libnutscan.so.* + +%files -n libupsclient4 +%{_libdir}/libupsclient.so.* %files cgi %{CGIPATH}/nut