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

#
# spec file for package monitoring-plugins-mtr
#
# 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_mtr
Name:           monitoring-plugins-mtr
Version:        0.2
Release:        0
Summary:        An Icinga plugin to monitor all reachable routers on the network path
License:        GPL-3.0-or-later
Group:          System/Monitoring
URL:            https://www.dinotools.de/en/project/monitoring-plugins/
Source:         https://github.com/DinoTools/monitoring-check_mtr/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  nagios-rpm-macros
Requires:       mtr
Requires:       perl(Monitoring::Plugin)
BuildArch:      noarch

%description
Use My traceroute(MTR) to monitor all reachable routers on the
network path.

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

%build

%install
install -D -m755 check_mtr.pl %{buildroot}/%{nagios_plugindir}/check_mtr

%files
%license LICENSE.md
%doc CHANGELOG.md README.md
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_mtr

%changelog
openSUSE Build Service is sponsored by