File monitoring-plugins-rittal_health.spec of Package monitoring-plugins-rittal_health
#
# spec file for package monitoring-plugins-rittal_health
#
# Copyright (c) 2015-2025, 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_rittal_health
Name: monitoring-plugins-rittal_health
Version: 4.1.1
Release: 0
Summary: This plugin checks Rittal CMC-TC devices
License: GPL-2.0-or-later
Group: System/Monitoring
URL: http://labs.consol.de/nagios/check_rittal_health
#Git-Clone: https://github.com/lausser/check_rittal_health
Source: %{realname}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: nagios-rpm-macros
Requires: perl(File::Basename)
BuildArch: noarch
%description
This plugin checks the hardware health of Rittal CMC devices.
%prep
%autosetup -n %{realname}-%{version}
chmod -x AUTHORS ChangeLog COPYING README
%build
autoreconf -fiv
%configure \
--libexecdir=%{nagios_plugindir} \
--with-nagios-user=%{nagios_user} \
--with-nagios-group=%{nagios_group} \
--with-perl=%{_bindir}/perl \
--with-degrees \
--enable-perfdata \
--enable-extendedinfo \
--enable-hwinfo
%make_build
%install
%make_install
%files
%license COPYING
%doc ChangeLog README
%dir %{nagios_libdir}
%{nagios_plugindir}/
%changelog