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

#
# spec file for package monitoring-plugins-modbus
#
# Copyright (c) 2020, 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_modbus
Name:           monitoring-plugins-modbus
Version:        0.47+git.20180123
Release:        0
Summary:        Monitoring plugin for Modbus TCP and Modbus RTU
License:        GPL-3.0-or-later
Group:          System/Monitoring
URL:            https://github.com/AndreySV/check_modbus
Source:         %{realname}-%{version}.tar.xz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  nagios-rpm-macros
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libmodbus)

%description
A monitoring plugin that can be used to check industrial devices
which support Modbus RTU/TCP.

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

%build
autoreconf -fiv
%configure
%make_build

%install
%make_install
install -d %{buildroot}/%{nagios_plugindir}/
mv %{buildroot}%{_bindir}/check_modbus %{buildroot}/%{nagios_plugindir}/check_modbus

%files
%license COPYING
%doc AUTHORS NEWS README
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_modbus
%{_mandir}/man1/check_modbus.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by