1 |
|
2 |
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) |
3 |
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) |
4 |
|
5 |
%define real_name Nagios-Plugin |
6 |
|
7 |
Summary: Perl module with common stuff for nagios plugins |
8 |
Name: perl-Nagios-Plugin |
9 |
Version: 0.17 |
10 |
Release: 1%{?dist} |
11 |
License: Artistic/GPL |
12 |
Group: Applications/CPAN |
13 |
URL: http://search.cpan.org/dist/Nagios-Plugin/ |
14 |
|
15 |
Source: http://search.cpan.org/CPAN/authors/id/G/GA/GAVINC/Nagios-Plugin-%{version}.tar.gz |
16 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
17 |
|
18 |
BuildArch: noarch |
19 |
BuildRequires: perl |
20 |
|
21 |
Requires: perl-Class-Accessor |
22 |
|
23 |
%description |
24 |
Nagios::Plugin and its associated Nagios::Plugin::* modules are a |
25 |
family of perl modules to streamline writing Nagios plugins. The main |
26 |
end user modules are Nagios::Plugin, providing an object-oriented |
27 |
interface to the entire Nagios::Plugin::* collection, and |
28 |
Nagios::Plugin::Functions, providing a simpler functional interface to |
29 |
a useful subset of the available functionality. |
30 |
|
31 |
The purpose of the collection is to make it as simple as possible for |
32 |
developers to create plugins that conform the Nagios Plugin guidelines |
33 |
(http://nagiosplug.sourceforge.net/developer-guidelines.html). |
34 |
|
35 |
|
36 |
%prep |
37 |
%setup -n %{real_name}-%{version} |
38 |
|
39 |
%build |
40 |
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" |
41 |
%{__make} %{?_smp_mflags} |
42 |
|
43 |
%install |
44 |
%{__rm} -rf %{buildroot} |
45 |
%makeinstall |
46 |
%{__rm} -rf %{buildroot}%{perl_archlib} %{buildroot}%{perl_vendorarch} |
47 |
|
48 |
%clean |
49 |
%{__rm} -rf %{buildroot} |
50 |
|
51 |
%files |
52 |
%defattr(-, root, root, 0755) |
53 |
%doc Changes |
54 |
%doc %{_mandir}/man3/* |
55 |
%{perl_vendorlib}/Nagios/Plugin.pm |
56 |
%{perl_vendorlib}/Nagios/Plugin/ExitResult.pm |
57 |
%{perl_vendorlib}/Nagios/Plugin/Functions.pm |
58 |
%{perl_vendorlib}/Nagios/Plugin/Getopt.pm |
59 |
%{perl_vendorlib}/Nagios/Plugin/Performance.pm |
60 |
%{perl_vendorlib}/Nagios/Plugin/Range.pm |
61 |
%{perl_vendorlib}/Nagios/Plugin/Threshold.pm |
62 |
%{perl_vendorlib}/Nagios/Plugin/Config.pm |
63 |
|
64 |
|
65 |
%changelog |
66 |
* Fri Feb 23 2007 Christoph Maser <cmr@financial.com> - 0.15 |
67 |
- Initial package. |