forked from nagios-plugins-rabbitmq/nagios-plugins-rabbitmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nagios-plugins-rabbitmq.spec
75 lines (55 loc) · 1.84 KB
/
nagios-plugins-rabbitmq.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Name: nagios-plugins-rabbitmq
Version: 1.0.3
Release: 1%{?dist}
Summary: Nagios checks for RabbitMQ
Group: Applications/System
License: ASL 2.0
URL: http://github.com/jamesc/nagios-plugins-rabbitmq
Source0: nagios-plugins-rabbitmq-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# Correct for lots of packages, other common choices include eg. Module::Build
BuildRequires: perl(Module::Build)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(JSON)
Requires: perl(Nagios::Plugin)
Requires: perl(LWP::UserAgent)
Requires: perl(Getopt::Long)
Requires: perl(Pod::Usage)
%{?perl_default_filter}
%description
Nagios checks for RabbitMQ messaging server.
These use the RabbitMQ management interface for gathering various
information about the server
%prep
%setup -q
%build
%{__perl} Build.PL --installdirs=vendor
Build
%install
rm -rf $RPM_BUILD_ROOT
Build pure_install --destdir=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
%{_fixperms} $RPM_BUILD_ROOT/*
%check
Build test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE.txt README.md
%{_bindir}/*
%{_mandir}/man1/*.1*
%changelog
* Wed Oct 26 2011 James Casey <[email protected]> 1.0.4-1
- added check_rabbitmq_queue
* Wed Sep 07 2011 James Casey <[email protected]> 1.0.3-1
- Added extra Basic Auth domain for rabbitmq 2.6.0
Thanks to Bill Gerrard for spotting it
* Mon Jun 06 2011 James Casey <[email protected]> 1.0.2-1
- Build fixes
* Wed Jan 12 2011 James Casey <[email protected]> 1.0.1-1
- Add more checks
* Sun Jan 09 2011 James Casey <[email protected]> 1.0.0-1
- Initial version