]> git.pld-linux.org Git - packages/perl-Nagios-Plugin.git/blame - perl-Nagios-Plugin.spec
- up to 0.36
[packages/perl-Nagios-Plugin.git] / perl-Nagios-Plugin.spec
CommitLineData
93559fee
ER
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir Nagios
7%define pnam Plugin
180b82f7
JB
8Summary: Nagios::Plugin - A family of Perl modules to streamline writing Nagios plugins
9Summary(pl.UTF-8): Nagios::Plugin - rodzina modułów Perla ułatwiająca pisanie wtyczek Nagiosa
93559fee 10Name: perl-Nagios-Plugin
c8695174 11Version: 0.36
dd86379d 12Release: 1
93559fee
ER
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-authors/id/T/TO/TONVOON/Nagios-Plugin-%{version}.tar.gz
c8695174 17# Source0-md5: b897f6d5d66a655dde7caec579efcf2e
93559fee
ER
18URL: http://search.cpan.org/dist/Nagios-Plugin/
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
180b82f7
JB
22BuildRequires: perl-Class-Accessor
23BuildRequires: perl-Config-Tiny
24BuildRequires: perl-Math-Calc-Units
25BuildRequires: perl-Params-Validate
93559fee
ER
26BuildRequires: perl(Test::More) >= 0.62
27%endif
9f2c46e5
ER
28# Not catched by `use base qw(Class::Accessor::Fast)'; construct
29Requires: perl-Class-Accessor
30Requires: perl-Config-Tiny
93559fee
ER
31BuildArch: noarch
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35Nagios::Plugin and its associated Nagios::Plugin::* modules are a
36family of Perl modules to streamline writing Nagios plugins. The main
37end user modules are Nagios::Plugin, providing an object-oriented
38interface to the entire Nagios::Plugin::* collection, and
39Nagios::Plugin::Functions, providing a simpler functional interface to
40a useful subset of the available functionality.
41
42The purpose of the collection is to make it as simple as possible for
43developers to create plugins that conform the Nagios Plugin guidelines
44<http://nagiosplug.sourceforge.net/developer-guidelines.html>.
45
180b82f7
JB
46%description -l pl.UTF-8
47Nagios::Plugin i związane z nim moduły Nagios::Plugin::* to rodzina
48modułów Perla ułatwiająca pisanie wtyczek Nagiosa. Główne moduły dla
49użytkownika końcowego to Nagios::Plugin, udostępniający zorientowany
50obiektowo interfejs do całej kolekcji Nagios::Plugin::*, oraz
51Nagios::Plugin::Functions, udostępniający prostszy, funkcyjny
52interfejs do przydatnego podzbioru dostępnej funkcjonalności.
53
54Celem tej kolekcji jest jak największe ułatwienie programistom
55tworzenia wtyczek zgodnych z zaleceniami dla wtyczek Nagiosa:
56<http://nagiosplug.sourceforge.net/developer-guidelines.html>.
57
93559fee
ER
58%prep
59%setup -q -n %{pdir}-%{pnam}-%{version}
60
61%build
62%{__perl} Makefile.PL \
63 INSTALLDIRS=vendor
64%{__make}
65
66%{?with_tests:%{__make} test}
67
68%install
69rm -rf $RPM_BUILD_ROOT
70
71%{__make} install \
72 DESTDIR=$RPM_BUILD_ROOT
73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%files
78%defattr(644,root,root,755)
79%doc Changes README
215da35a 80%dir %{perl_vendorlib}/Nagios
93559fee
ER
81%{perl_vendorlib}/Nagios/*.pm
82%{perl_vendorlib}/Nagios/Plugin
83%{_mandir}/man3/*
This page took 0.072786 seconds and 4 git commands to generate.