]>
Commit | Line | Data |
---|---|---|
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 |
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 | |
93559fee | 10 | Name: perl-Nagios-Plugin |
c8695174 | 11 | Version: 0.36 |
dd86379d | 12 | Release: 1 |
93559fee ER |
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 | |
c8695174 | 17 | # Source0-md5: b897f6d5d66a655dde7caec579efcf2e |
93559fee ER |
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} | |
180b82f7 JB |
22 | BuildRequires: perl-Class-Accessor |
23 | BuildRequires: perl-Config-Tiny | |
24 | BuildRequires: perl-Math-Calc-Units | |
25 | BuildRequires: perl-Params-Validate | |
93559fee ER |
26 | BuildRequires: perl(Test::More) >= 0.62 |
27 | %endif | |
9f2c46e5 ER |
28 | # Not catched by `use base qw(Class::Accessor::Fast)'; construct |
29 | Requires: perl-Class-Accessor | |
30 | Requires: perl-Config-Tiny | |
93559fee ER |
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 | ||
180b82f7 JB |
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 | ||
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 | |
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 | |
215da35a | 80 | %dir %{perl_vendorlib}/Nagios |
93559fee ER |
81 | %{perl_vendorlib}/Nagios/*.pm |
82 | %{perl_vendorlib}/Nagios/Plugin | |
83 | %{_mandir}/man3/* |