SPECS: perl-Nagios-Plugin.spec (NEW) - created with pldcpan

glen glen at pld-linux.org
Fri Jan 4 13:24:09 CET 2008


Author: glen                         Date: Fri Jan  4 12:24:09 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- created with pldcpan

---- Files affected:
SPECS:
   perl-Nagios-Plugin.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Nagios-Plugin.spec
diff -u /dev/null SPECS/perl-Nagios-Plugin.spec:1.1
--- /dev/null	Fri Jan  4 13:24:09 2008
+++ SPECS/perl-Nagios-Plugin.spec	Fri Jan  4 13:24:04 2008
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Nagios
+%define	pnam	Plugin
+Summary:	Nagios::Plugin - A family of perl modules to streamline writing Nagios plugins
+Name:		perl-Nagios-Plugin
+Version:	0.23
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/T/TO/TONVOON/Nagios-Plugin-%{version}.tar.gz
+# Source0-md5:	7eb466f122ea83788506d78d7bf2c402
+URL:		http://search.cpan.org/dist/Nagios-Plugin/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Class::Accessor)
+BuildRequires:	perl(Config::Tiny)
+BuildRequires:	perl(Math::Calc::Units)
+BuildRequires:	perl(Params::Validate)
+BuildRequires:	perl(Test::More) >= 0.62
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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>.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Nagios/*.pm
+%{perl_vendorlib}/Nagios/Plugin
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-01-04 12:24:04  glen
+- created with pldcpan
+
================================================================


More information about the pld-cvs-commit mailing list