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

#
# spec file for package monitoring-plugins-vmware_esx
#
# Copyright (c) 2014-2019, 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_vmware_esx
Name:           monitoring-plugins-vmware_esx
Version:        1.2.3
Release:        0
Summary:        A Monitoring plugin to monitor VMware's products
License:        GPL-2.0-or-later
Group:          System/Monitoring
URL:            https://github.com/BaldMansMojo/check_vmware_esx
Source:         https://github.com/BaldMansMojo/check_vmware_esx/archive/v%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires:  nagios-rpm-macros
Requires:       perl(File::Basename)
Requires:       perl(Getopt::Long)
Requires:       perl(HTTP::Date)
Requires:       perl(Time::Duration)
Requires:       perl(Time::HiRes)
Requires:       perl(VMware::VIRuntime)
BuildArch:      noarch

%description
The plugin uses the VMWare API (via HTTPS) to do a wide variety of checks.

%prep
%setup -q -n %{realname}-%{version}

%build
make %{?_smp_mflags}

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

%files
%license LICENSE
%doc command_reference HISTORY README.md
%dir %{nagios_libdir}
%{nagios_plugindir}/

%changelog
openSUSE Build Service is sponsored by