SHA256
1
0
forked from pool/nut

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
This commit is contained in:
Stanislav Brabec 2022-05-16 14:49:03 +00:00 committed by Git OBS Bridge
parent 60b24b3549
commit 4f5ecf4e70
2 changed files with 52 additions and 8 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Apr 27 12:54:07 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- 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 <alarrosa@suse.com>

View File

@ -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