2016-01-18 08:31:27 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Monitoring-Plugin
|
|
|
|
#
|
2017-10-06 10:37:22 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-01-18 08:31:27 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Monitoring-Plugin
|
|
|
|
Version: 0.39
|
|
|
|
Release: 0
|
|
|
|
%define cpan_name Monitoring-Plugin
|
|
|
|
Summary: Family of Perl modules to streamline writing Nagios compatible plugins
|
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/Monitoring-Plugin/
|
|
|
|
Source0: Monitoring-Plugin-0.39.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-10-06 10:37:22 +00:00
|
|
|
# Obsolete the old Nagios::Plugin module, if available, but provide only the current version
|
|
|
|
# to allow users to install newer Nagios::Plugins versions, if they like
|
|
|
|
Obsoletes: perl-Nagios-Plugin <= 0.36
|
|
|
|
Provides: perl-Nagios-Plugin = 0.39
|
|
|
|
Obsoletes: perl(Nagios::Plugin) <= 0.36
|
|
|
|
Provides: perl(Nagios::Plugin) = 0.39
|
|
|
|
Obsoletes: perl(Nagios::Plugin::Config) <= 0.36
|
|
|
|
Provides: perl(Nagios::Plugin::Config) = 0.39
|
|
|
|
Obsoletes: perl(Nagios::Plugin::ExitResult) <= 0.36
|
|
|
|
Provides: perl(Nagios::Plugin::ExitResult) = 0.39
|
|
|
|
Obsoletes: perl(Nagios::Plugin::Functions) <= 0.36
|
|
|
|
Provides: perl(Nagios::Plugin::Functions) = 0.39
|
|
|
|
Obsoletes: perl(Nagios::Plugin::Getopt) <= 0.36
|
|
|
|
Provides: perl(Nagios::Plugin::Getopt) = 0.39
|
|
|
|
Obsoletes: perl(Nagios::Plugin::Performance) <= 0.36
|
|
|
|
Provides: perl(Nagios::Plugin::Performance) = 0.39
|
|
|
|
Obsoletes: perl(Nagios::Plugin::Range) <= 0.36
|
|
|
|
Provides: perl(Nagios::Plugin::Range) = 0.39
|
|
|
|
Obsoletes: perl(Nagios::Plugin::Threshold) <= 0.36
|
|
|
|
Provides: perl(Nagios::Plugin::Threshold) = 0.39
|
2016-01-18 08:31:27 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Class::Accessor)
|
|
|
|
BuildRequires: perl(Config::Tiny)
|
|
|
|
BuildRequires: perl(Math::Calc::Units)
|
|
|
|
BuildRequires: perl(Params::Validate)
|
|
|
|
Requires: perl(Class::Accessor)
|
|
|
|
Requires: perl(Config::Tiny)
|
|
|
|
Requires: perl(Math::Calc::Units)
|
|
|
|
Requires: perl(Params::Validate)
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Monitoring::Plugin and its associated Monitoring::Plugin::* modules are a
|
|
|
|
family of perl modules to streamline writing Monitoring plugins. The main
|
|
|
|
end user modules are Monitoring::Plugin, providing an object-oriented
|
|
|
|
interface to the entire Monitoring::Plugin::* collection, and
|
|
|
|
Monitoring::Plugin::Functions, providing a simpler functional interface to
|
|
|
|
a useful subset of the available functionality.
|
|
|
|
|
|
|
|
The purpose of the collection is to make it as simple as possible for
|
|
|
|
developers to create plugins that conform the Monitoring Plugin guidelines
|
|
|
|
(https://www.monitoring-plugins.org/doc/guidelines.html).
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes notes README
|
|
|
|
|
|
|
|
%changelog
|