File monitoring-plugins-ups_apc.spec of Package monitoring-plugins-ups_apc

#
# spec file for package monitoring-plugins-ups_apc
#
# Copyright (c) 2015, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define realname check_ups_apc
Name:           monitoring-plugins-ups_apc
Version:        1.2
Release:        0
Summary:        Check APC UPS status via SNMP
License:        GPL-2.0+
Group:          System/Monitoring
Url:            unknown
Source0:        check_ups_apc.pl
BuildRequires:  nagios-rpm-macros
Requires:       perl(Net::SNMP)
Requires:       perl(Getopt::Std)
Requires:       perl(Data::Dumper)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This nagios plugin checks APC UPS status via SNMP
Modified version of the original (written by Altinity).

%prep
true

%build
true

%install
mkdir -p %{buildroot}/%{nagios_plugindir}
install -D -m755 %{SOURCE0} %{buildroot}/%{nagios_plugindir}

%files
%defattr(-,root,root)
# avoid build dependency of nagios - own the dirs
%dir %{nagios_libdir}
%{nagios_plugindir}/

%changelog
openSUSE Build Service is sponsored by