Accepting request 1149729 from home:pgajdos:m

- Use %patch -P N instead of deprecated %patchN.

OBS-URL: https://build.opensuse.org/request/show/1149729
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-sentry3?expand=0&rev=6
This commit is contained in:
Michael Vetter 2024-02-23 08:56:58 +00:00 committed by Git OBS Bridge
parent 83c8aea501
commit 9cfdff2430
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Feb 23 08:36:14 UTC 2024 - pgajdos@suse.com
- Use %patch -P N instead of deprecated %patchN.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 3 11:54:36 UTC 2017 - lars@linux-schulserver.de Mon Jul 3 11:54:36 UTC 2017 - lars@linux-schulserver.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package monitoring-plugins-sentry3 # spec file for package monitoring-plugins-sentry3
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -20,9 +20,9 @@ Name: monitoring-plugins-sentry3
Version: 2012 Version: 2012
Release: 0 Release: 0
Summary: Monitor Servertech devices that use the Sentry3 MIB Summary: Monitor Servertech devices that use the Sentry3 MIB
License: GPL-2.0+ License: GPL-2.0-or-later
Group: System/Monitoring Group: System/Monitoring
Url: http://www.linuxhomenetworking.com/ URL: http://www.linuxhomenetworking.com/
Requires: perl(Nagios::Plugin) >= 0.36 Requires: perl(Nagios::Plugin) >= 0.36
Requires: perl(Net::SNMP) Requires: perl(Net::SNMP)
Source0: check_sentry3 Source0: check_sentry3
@ -44,14 +44,14 @@ It checks the following:
2) Environmental humidity (Auto-detects all sensors) 2) Environmental humidity (Auto-detects all sensors)
3) Input power (Auto-detects all input feeds) 3) Input power (Auto-detects all input feeds)
%prep %prep
%setup -q -T -c %{name} %setup -q -T -c %{name}
install -m755 %{SOURCE0} . install -m755 %{SOURCE0} .
%patch0 -p0 %patch -P 0 -p0
install -m644 %{SOURCE2} . install -m644 %{SOURCE2} .
%build %build
# #
%install %install
install -Dm755 check_sentry3 %{buildroot}/%{nagios_plugindir}/check_sentry3 install -Dm755 check_sentry3 %{buildroot}/%{nagios_plugindir}/check_sentry3