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

#
# spec file for package monitoring-plugins-fujitsu_health
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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_fujitsu_health
Name:           monitoring-plugins-fujitsu_health
Version:        1.5.0.1
Release:        0
Summary:        This plugin checks the hardware health of Fujitsu servers
License:        GPL-2.0-or-later
Group:          System/Monitoring
URL:            https://labs.consol.de/de/nagios/check_fujitsu_health/index.html
#Git-Clone:     https://github.com/lausser/check_fujitsu_health.git
Source:         https://labs.consol.de/assets/downloads/nagios/%{realname}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  nagios-rpm-macros
Requires:       perl(Data::Dumper)
Requires:       perl(Date::Manip)
Requires:       perl(Digest::MD5)
Requires:       perl(File::Basename)
Requires:       perl(File::Path)
Requires:       perl(Getopt::Long)
Requires:       perl(Nagios::Plugin)
BuildArch:      noarch

%description
This plugin checks the hardware health of Fujitsu servers (using SERVERVIEW-STATUS-MIB)

%prep
%setup -q -n %{realname}-%{version}
# broken permissions
chmod -x AUTHORS ChangeLog COPYING INSTALL README THANKS

%build
autoreconf -fiv
%configure \
	--libexecdir=%{nagios_plugindir} \
	--with-nagios-user=%{nagios_user} \
	--with-nagios-group=%{nagios_group} \
	--with-perl=%{_bindir}/perl
make %{?_smp_mflags}

%install
%make_install

%files
%license COPYING
%doc AUTHORS ChangeLog README THANKS
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_fujitsu_health

%changelog
openSUSE Build Service is sponsored by