From 9cfdff2430569ae050d9528c9f80532dace27776dbd8ff919b77786c68a7201e Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 23 Feb 2024 08:56:58 +0000 Subject: [PATCH] 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 --- monitoring-plugins-sentry3.changes | 5 +++++ monitoring-plugins-sentry3.spec | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/monitoring-plugins-sentry3.changes b/monitoring-plugins-sentry3.changes index 92c4a76..a53b3b9 100644 --- a/monitoring-plugins-sentry3.changes +++ b/monitoring-plugins-sentry3.changes @@ -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 diff --git a/monitoring-plugins-sentry3.spec b/monitoring-plugins-sentry3.spec index 0113a98..e3b1b62 100644 --- a/monitoring-plugins-sentry3.spec +++ b/monitoring-plugins-sentry3.spec @@ -1,7 +1,7 @@ # # 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 # 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) # 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 Release: 0 Summary: Monitor Servertech devices that use the Sentry3 MIB -License: GPL-2.0+ +License: GPL-2.0-or-later Group: System/Monitoring -Url: http://www.linuxhomenetworking.com/ +URL: http://www.linuxhomenetworking.com/ Requires: perl(Nagios::Plugin) >= 0.36 Requires: perl(Net::SNMP) Source0: check_sentry3 @@ -44,14 +44,14 @@ It checks the following: 2) Environmental humidity (Auto-detects all sensors) 3) Input power (Auto-detects all input feeds) - %prep %setup -q -T -c %{name} install -m755 %{SOURCE0} . -%patch0 -p0 +%patch -P 0 -p0 install -m644 %{SOURCE2} . %build + # %install install -Dm755 check_sentry3 %{buildroot}/%{nagios_plugindir}/check_sentry3