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