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

#
# spec file for package monitoring-plugins-aaccli
#
# Copyright (c) 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_aaccli
Name:           monitoring-plugins-aaccli
Version:        1.1.1
Release:        0
Summary:        Checks the hardware health of Adaptec Raid controllers
License:        GPL-2.0-or-later
Group:          System/Monitoring
URL:            https://labs.consol.de/de/nagios/check_aaccli/index.html
Source0:        https://labs.consol.de/assets/downloads/nagios/%{realname}-%{version}.tar.gz
BuildRequires:  nagios-rpm-macros
BuildRequires:  perl
Requires:       perl
BuildArch:      noarch

%description
This plugin checks the hardware health of Adaptec Raid controllers with the
aaccli software installed. It uses the aaccli command to acquire the
condition of the adapter's disks and containers.

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

%build
%configure \
    --bindir=%{nagios_plugindir} \
    --libdir=%{nagios_plugindir} \
    --prefix=%{nagios_plugindir} \
    --with-aaccli="%{_sbindir}/aaccli"
make #%%{?_smp_mflags} # parallel build is broken

%install
install -D -m 0755 plugins-scripts/check_aaccli %{buildroot}/%{nagios_plugindir}/check_aaccli

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

%changelog
openSUSE Build Service is sponsored by