3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Nagios::Plugin - A family of perl modules to streamline writing Nagios plugins
9 Name: perl-Nagios-Plugin
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-authors/id/T/TO/TONVOON/Nagios-Plugin-%{version}.tar.gz
16 # Source0-md5: 7eb466f122ea83788506d78d7bf2c402
17 URL: http://search.cpan.org/dist/Nagios-Plugin/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(Class::Accessor)
22 BuildRequires: perl(Config::Tiny)
23 BuildRequires: perl(Math::Calc::Units)
24 BuildRequires: perl(Params::Validate)
25 BuildRequires: perl(Test::More) >= 0.62
27 # Not catched by `use base qw(Class::Accessor::Fast)'; construct
28 Requires: perl-Class-Accessor
29 Requires: perl-Config-Tiny
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Nagios::Plugin and its associated Nagios::Plugin::* modules are a
35 family of Perl modules to streamline writing Nagios plugins. The main
36 end user modules are Nagios::Plugin, providing an object-oriented
37 interface to the entire Nagios::Plugin::* collection, and
38 Nagios::Plugin::Functions, providing a simpler functional interface to
39 a useful subset of the available functionality.
41 The purpose of the collection is to make it as simple as possible for
42 developers to create plugins that conform the Nagios Plugin guidelines
43 <http://nagiosplug.sourceforge.net/developer-guidelines.html>.
46 %setup -q -n %{pdir}-%{pnam}-%{version}
49 %{__perl} Makefile.PL \
53 %{?with_tests:%{__make} test}
56 rm -rf $RPM_BUILD_ROOT
59 DESTDIR=$RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %dir %{perl_vendorlib}/Nagios
68 %{perl_vendorlib}/Nagios/*.pm
69 %{perl_vendorlib}/Nagios/Plugin