8
0

Accepting request 327317 from home:hsk17:branches:devel:languages:perl

patch test to work with perl-5.22

OBS-URL: https://build.opensuse.org/request/show/327317
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Nagios-Plugin?expand=0&rev=22
This commit is contained in:
Stephan Kulow
2015-08-27 13:31:43 +00:00
committed by Git OBS Bridge
parent c8cca5fa9b
commit fdd829a00b
3 changed files with 18 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 27 10:20:20 UTC 2015 - hsk@imb-jena.de
- fix test to work with perl-5.22
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 23 19:32:49 UTC 2014 - lars@linux-schulserver.de Tue Sep 23 19:32:49 UTC 2014 - lars@linux-schulserver.de

View File

@@ -26,6 +26,7 @@ License: Artistic-1.0 or GPL-2.0+
Group: Development/Languages/Perl Group: Development/Languages/Perl
Url: http://search.cpan.org/perldoc?Nagios%3A%3APlugin Url: http://search.cpan.org/perldoc?Nagios%3A%3APlugin
Source: %cpan_name-%{version}.tar.gz Source: %cpan_name-%{version}.tar.gz
Patch0: perl522.patch
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Class::Accessor) BuildRequires: perl(Class::Accessor)
@@ -53,6 +54,7 @@ developers to create plugins that conform the Nagios Plugin guidelines
%prep %prep
%setup -q -n %cpan_name-%{version} %setup -q -n %cpan_name-%{version}
%patch0 -p2
%build %build
perl Makefile.PL OPTIMIZE="%{optflags} -Wall" perl Makefile.PL OPTIMIZE="%{optflags} -Wall"

11
perl522.patch Normal file
View File

@@ -0,0 +1,11 @@
--- a/Nagios-Plugin-0.36/t/Nagios-Plugin-Functions-01.t 2010-12-03 12:46:21.000000000 +0100
+++ b/Nagios-Plugin-0.36/t/Nagios-Plugin-Functions-01.t 2015-08-27 12:16:13.649140550 +0200
@@ -19,7 +19,7 @@
is(get_shortname, "NAGIOS-PLUGIN-FUNCTIONS-01", "get_shortname ok");
# Hardcoded checks of constants
-ok(defined %ERRORS, '%ERRORS defined');
+ok(%ERRORS, '%ERRORS defined');
is(OK, $ERRORS{OK}, "OK => $ERRORS{OK}");
is(WARNING, $ERRORS{WARNING}, "WARNING => $ERRORS{WARNING}");
is(CRITICAL, $ERRORS{CRITICAL}, "CRITICAL => $ERRORS{CRITICAL}");