]>
Commit | Line | Data |
---|---|---|
38563d88 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | ||
5 | %define pdir Monitoring | |
6 | %define pnam Plugin | |
38563d88 ER |
7 | Summary: Monitoring::Plugin - A family of Perl modules to streamline writing Monitoring plugins |
8 | Summary(pl.UTF-8): Monitoring::Plugin - rodzina modułów Perla ułatwiająca pisanie wtyczek Monitoringa | |
9 | Name: perl-Monitoring-Plugin | |
a10ea223 | 10 | Version: 0.39 |
38563d88 ER |
11 | Release: 1 |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://search.cpan.org/CPAN/authors/id/N/NI/NIERLEIN/Monitoring-Plugin-%{version}.tar.gz | |
a10ea223 | 16 | # Source0-md5: c786ada6289bda2c4380d3df3b5185d5 |
38563d88 ER |
17 | URL: http://search.cpan.org/dist/Monitoring-Plugin/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl(Test::More) >= 0.62 | |
22 | BuildRequires: perl-Class-Accessor | |
23 | BuildRequires: perl-Config-Tiny | |
24 | BuildRequires: perl-Math-Calc-Units | |
25 | BuildRequires: perl-Params-Validate | |
26 | %endif | |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Monitoring::Plugin and its associated Monitoring::Plugin::* modules | |
32 | are a family of Perl modules to streamline writing Monitoring plugins. | |
33 | The main end user modules are Monitoring::Plugin, providing an | |
34 | object-oriented interface to the entire Monitoring::Plugin::* | |
35 | collection, and Monitoring::Plugin::Functions, providing a simpler | |
36 | functional interface to a useful subset of the available | |
37 | functionality. | |
38 | ||
39 | The purpose of the collection is to make it as simple as possible for | |
40 | developers to create plugins that conform the Monitoring Plugin | |
41 | guidelines <https://www.monitoring-plugins.org/doc/guidelines.html>. | |
42 | ||
43 | %description -l pl.UTF-8 | |
44 | Monitoring::Plugin i związane z nim moduły Monitoring::Plugin::* to | |
45 | rodzina modułów Perla ułatwiająca pisanie wtyczek Monitoringa. Główne | |
46 | moduły dla użytkownika końcowego to Monitoring::Plugin, udostępniający | |
47 | zorientowany obiektowo interfejs do całej kolekcji | |
48 | Monitoring::Plugin::*, oraz Monitoring::Plugin::Functions, | |
49 | udostępniający prostszy, funkcyjny interfejs do przydatnego podzbioru | |
50 | dostępnej funkcjonalności. | |
51 | ||
52 | Celem tej kolekcji jest jak największe ułatwienie programistom | |
53 | tworzenia wtyczek zgodnych z zaleceniami dla wtyczek Monitoringa: | |
54 | <https://www.monitoring-plugins.org/doc/guidelines.html>. | |
55 | ||
56 | %prep | |
57 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
58 | ||
59 | %build | |
60 | %{__perl} Makefile.PL \ | |
61 | INSTALLDIRS=vendor | |
62 | %{__make} | |
63 | ||
64 | %{?with_tests:%{__make} test} | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
0e502f4d ER |
71 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
72 | cp -p t/*.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
73 | ||
38563d88 ER |
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}/Monitoring | |
81 | %{perl_vendorlib}/Monitoring/*.pm | |
82 | %{perl_vendorlib}/Monitoring/Plugin | |
83 | %{_mandir}/man3/Monitoring::Plugin*.3pm* | |
0e502f4d | 84 | %{_examplesdir}/%{name}-%{version} |