[packages/nagios-plugin-check_raid] up to 4.0.10

glen glen at pld-linux.org
Thu May 16 22:56:58 CEST 2019


commit 35562ff8e03a6b9158d6d0f86edb9396a995aa55
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Thu May 16 23:56:36 2019 +0300

    up to 4.0.10

 nagios-plugin-check_raid.spec | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/nagios-plugin-check_raid.spec b/nagios-plugin-check_raid.spec
index 4cbe7a4..27fd973 100644
--- a/nagios-plugin-check_raid.spec
+++ b/nagios-plugin-check_raid.spec
@@ -4,12 +4,12 @@
 %include	/usr/lib/rpm/macros.perl
 Summary:	Nagios plugin to check current server's RAID status
 Name:		nagios-plugin-%{plugin}
-Version:	4.0.9
+Version:	4.0.10
 Release:	1
 License:	GPL v2
 Group:		Applications
 Source0:	https://github.com/glensc/nagios-plugin-check_raid/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	8448e9437b63dd5cb2617b4a0bd8511d
+# Source0-md5:	44d42b711ea234f69c1103f731a4c461
 Patch0:		maxcache.patch
 Patch1:		bbu.patch
 URL:		https://github.com/glensc/nagios-plugin-check_raid
@@ -79,11 +79,16 @@ mv nagios-plugin-check_raid-*/* .
 %patch0 -p1
 %patch1 -p1
 
+# set version
+%{__sed} -i -e '
+    s#my $VERSION = q.*;#my $VERSION = q/%{version}-%{release}/;#
+' bin/%{plugin}.pl
+
 %build
 # version check exits with "3", here's explanation:
 # https://github.com/monitoring-plugins/monitoring-plugins/pull/1363
 ver=$(./%{plugin}.sh -V || :)
-test "$(echo "$ver" | awk '{print $NF}')" = %{version}-dev
+test "$(echo "$ver" | awk '{print $NF}')" = %{version}-%{release}
 
 LC_ALL=en_US.utf8 \
 %{__perl} Makefile.PL \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_raid.git/commitdiff/35562ff8e03a6b9158d6d0f86edb9396a995aa55



More information about the pld-cvs-commit mailing list