Debian Codegraph @

check_hp_bladechassis/src/check_hp_bladechassis.spec

raw
1 Summary: A Nagios plugin to check HP blade enclosures
2 Name: check_hp_bladechassis
3 Version: 1.0.1
4 Release: 1%{?dist}
5 License: GPL
6 Packager: Trond Hasle Amundsen <[email protected]>
7 Group: Applications/System
8 BuildRoot: %{_tmppath}/%{name}-%{version}-root
9 URL: http://folk.uio.no/trondham/software/%{name}.html
10 Source0: http://folk.uio.no/trondham/software/%{name}-%{version}.tar.gz
11 BuildRequires: perl
12
13 Requires: perl >= 5.6.0
14 Requires: perl(Net::SNMP)
15 Requires: perl(Getopt::Long)
16
17 %description
18 check_hp_bladechassis is a plugin for the Nagios monitoring
19 software which checks the hardware health of HP blade enclosures via
20 SNMP. The plugin is only tested with the c7000 enclosure.
21
22 %prep
23 %setup -q
24
25 %build
26 pod2man -s 8 -r "%{name} %{version}" -c "Nagios plugin" %{name}.pod %{name}.8
27 gzip %{name}.8
28
29 %install
30 mkdir -p %{buildroot}/%{_libdir}/nagios/plugins
31 mkdir -p %{buildroot}/%{_mandir}/man8
32 install -p -m 0755 %{name} %{buildroot}/%{_libdir}/nagios/plugins
33 install -m 0644 %{name}.8.gz %{buildroot}/%{_mandir}/man8
34
35 %clean
36 rm -rf %{buildroot}
37
38 %files
39 %defattr(-, root, root, -)
40 %doc README COPYING CHANGES
41 %{_libdir}/nagios/plugins/%{name}
42 %attr(0755, root, root) %{_mandir}/man8/%{name}.8.gz
43
44
45 %changelog
46 * Fri Jan 22 2010 Trond H. Amundsen <[email protected]> - 1.0.1-1
47 - Version 1.0.1
48 - Added buildrequires perl, fixed requires for perl modules
49 - New location of script and manpage
50
51 * Fri Aug 14 2009 Trond H. Amundsen <[email protected]> - 1.0.0-1
52 - Initial release