2008-12-04 12:32:18 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Nagios-Plugin
|
|
|
|
#
|
2015-08-27 13:41:47 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-11-17 15:41:43 +00:00
|
|
|
#
|
2008-12-04 12:32:18 +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.
|
|
|
|
|
2011-11-17 15:41:43 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-01-15 16:13:04 +00:00
|
|
|
|
|
|
|
%define cpan_name Nagios-Plugin
|
2011-11-17 15:41:43 +00:00
|
|
|
|
2008-12-04 12:32:18 +00:00
|
|
|
Name: perl-%cpan_name
|
2011-12-29 10:25:04 +00:00
|
|
|
Version: 0.36
|
|
|
|
Release: 0
|
2013-01-15 16:13:04 +00:00
|
|
|
Summary: A family of perl modules to streamline writing Nagios plugins
|
2013-02-27 19:06:39 +00:00
|
|
|
License: Artistic-1.0 or GPL-2.0+
|
2013-01-15 16:13:04 +00:00
|
|
|
Group: Development/Languages/Perl
|
2014-09-23 19:33:03 +00:00
|
|
|
Url: http://search.cpan.org/perldoc?Nagios%3A%3APlugin
|
2013-01-15 16:13:04 +00:00
|
|
|
Source: %cpan_name-%{version}.tar.gz
|
2025-08-12 18:15:55 +02:00
|
|
|
Source100: README.md
|
2015-08-27 13:31:43 +00:00
|
|
|
Patch0: perl522.patch
|
2011-12-29 10:25:04 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2013-01-15 16:13:04 +00:00
|
|
|
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)
|
|
|
|
Provides: %cpan_name = %{version}
|
2008-12-04 12:32:18 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-01-15 16:13:04 +00:00
|
|
|
%perl_requires
|
2008-05-19 15:02:12 +00:00
|
|
|
|
|
|
|
%description
|
2011-12-29 10:25:04 +00:00
|
|
|
Nagios::Plugin and its associated Nagios::Plugin::* modules are a family of
|
|
|
|
perl modules to streamline writing Nagios plugins. The main end user modules
|
|
|
|
are Nagios::Plugin, providing an object-oriented interface to the entire
|
|
|
|
Nagios::Plugin::* collection, and Nagios::Plugin::Functions, providing a
|
|
|
|
simpler functional interface to a useful subset of the available functionality.
|
2008-12-04 12:31:40 +00:00
|
|
|
|
2011-12-29 10:25:04 +00:00
|
|
|
The purpose of the collection is to make it as simple as possible for
|
|
|
|
developers to create plugins that conform the Nagios Plugin guidelines
|
|
|
|
(http://nagiosplug.sourceforge.net/developer-guidelines.html).
|
2008-05-19 15:02:12 +00:00
|
|
|
|
|
|
|
%prep
|
2024-03-06 15:45:09 +00:00
|
|
|
%autosetup -p2 -n %cpan_name-%{version}
|
2008-05-19 15:02:12 +00:00
|
|
|
|
|
|
|
%build
|
2011-12-29 10:25:04 +00:00
|
|
|
perl Makefile.PL OPTIMIZE="%{optflags} -Wall"
|
|
|
|
make %{?_smp_mflags}
|
2008-12-04 12:31:40 +00:00
|
|
|
|
2008-05-19 15:02:12 +00:00
|
|
|
%if 0%{?suse_version} >= 1010
|
2008-12-04 12:31:40 +00:00
|
|
|
%check
|
2008-05-19 15:02:12 +00:00
|
|
|
make test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
2008-12-04 12:31:40 +00:00
|
|
|
%perl_make_install
|
2008-05-19 15:02:12 +00:00
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-12-04 12:31:40 +00:00
|
|
|
%doc Changes MANIFEST README
|
2008-05-19 15:02:12 +00:00
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
%{perl_vendorlib}/Nagios
|
|
|
|
%{perl_vendorarch}/auto/Nagios
|
|
|
|
|
2008-12-04 12:31:40 +00:00
|
|
|
%changelog
|