2008-05-19 15:02:12 +00:00
|
|
|
%define cpan_name Nagios-Plugin
|
|
|
|
|
|
|
|
Name: perl-%cpan_name
|
2008-12-04 12:31:40 +00:00
|
|
|
Summary: A family of perl modules to streamline writing Nagios plugins
|
|
|
|
Version: 0.28
|
2008-05-19 15:02:12 +00:00
|
|
|
Release: 1
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Artistic
|
2008-12-04 12:31:40 +00:00
|
|
|
Url: http://search.cpan.org/dist/Nagios-Plugin/
|
|
|
|
Provides: %cpan_name = %{version}-%{release}
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Requires: perl-Class-Accessor
|
|
|
|
Requires: perl-Config-Tiny
|
|
|
|
Requires: perl-Math-Calc-Units
|
|
|
|
Requires: perl-Params-Validate
|
|
|
|
BuildRequires: perl-Class-Accessor
|
|
|
|
BuildRequires: perl-Config-Tiny
|
|
|
|
BuildRequires: perl-Math-Calc-Units
|
|
|
|
BuildRequires: perl-Params-Validate
|
|
|
|
Source: %cpan_name-%{version}.tar.bz2
|
2008-05-19 15:02:12 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2008-12-04 12:31:40 +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.
|
|
|
|
|
|
|
|
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).
|
|
|
|
|
|
|
|
Author(s):
|
|
|
|
----------
|
|
|
|
Ton Voon, <ton.voon@altinity.com> (original Author)
|
|
|
|
Maintained by the Nagios Plugin development team
|
|
|
|
(http://nagiosplug.sourceforge.net.)
|
2008-05-19 15:02:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %cpan_name-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
2008-12-04 12:31:40 +00:00
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
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
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%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
|
|
|
|
/var/adm/perl-modules/%{name}
|
|
|
|
|
2008-12-04 12:31:40 +00:00
|
|
|
%changelog
|