8
0
Files
perl-Nagios-Plugin/perl-Nagios-Plugin.spec

69 lines
1.9 KiB
RPMSpec
Raw Normal View History

%define cpan_name Nagios-Plugin
Name: perl-%cpan_name
Summary: A family of perl modules to streamline writing Nagios plugins
Version: 0.28
Release: 1
Group: Development/Libraries/Perl
License: Artistic
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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.)
%prep
%setup -q -n %cpan_name-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?jobs:-j%jobs}
%if 0%{?suse_version} >= 1010
%check
make test
%endif
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc Changes MANIFEST README
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Nagios
%{perl_vendorarch}/auto/Nagios
/var/adm/perl-modules/%{name}
%changelog