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

#
# spec file for package monitoring-plugins-sqlbase_health
#
# Copyright (c) 2017, 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_sqlbase_health

Name:           monitoring-plugins-sqlbase_health
Version:        1.0.0.2
Release:        0
Summary:        This plugin checks SQLBase (Gupta) databases
License:        GPL-2.0+
Group:          System/Monitoring
# https://github.com/lausser/check_sqlbase_health
Url:            https://labs.consol.de/nagios/check_sqlbase_health/index.html
Source:         https://labs.consol.de/assets/downloads/nagios/%{realname}-%{version}.tar.gz
BuildRequires:  make
BuildRequires:  nagios-rpm-macros
Requires:       perl(Data::Dumper)
Requires:       perl(Digest::MD5)
Requires:       perl(File::Basename)
Requires:       perl(File::Temp)
Requires:       perl(Getopt::Long)
Requires:       perl(IO::File)
BuildArch:      noarch

%description
This plugin checks various parameters from SQLBase (Gupta) databases.

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

%build
%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
%doc AUTHORS ChangeLog COPYING README
%dir %{nagios_libdir}
%{nagios_plugindir}/

%changelog
openSUSE Build Service is sponsored by