File monitoring-plugins-wut_health.spec of Package monitoring-plugins-wut_health
#
# spec file for package monitoring-plugins-wut_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_wut_health
Name: monitoring-plugins-wut_health
Version: 4.4
Release: 0
Summary: A Plugin that checks various parameters from WUT devices
License: GPL-2.0-or-later
Group: System/Monitoring
URL: https://labs.consol.de/nagios/check_wut_health/
#Git-Clone: https://github.com/lausser/check_wut_health
# obs_scm fails, tarball manually built with submodules
Source: %{realname}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: nagios-rpm-macros
Requires: perl(Data::Dumper)
Requires: perl(Digest::MD5)
Requires: perl(File::Basename)
Requires: perl(Getopt::Long)
Requires: perl(IO::File)
BuildArch: noarch
%description
A Plugin that checks various parameters from WUT (Wiesemann&Theis)
Web-Thermograph devices.
%prep
%setup -q -n %{realname}-%{version}
# fix broken permissions
chmod 644 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 \
--enable-extendedinfo
%make_build
%install
%make_install
%files
%license COPYING
%doc ChangeLog README
%dir %{nagios_libdir}
%{nagios_plugindir}/
%changelog