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

#
# spec file for package monitoring-plugins-meinberg_lantime
#
# Copyright (c) 2025, 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 https://bugs.opensuse.org/
#


%define         realname monitoring-check_meinberg_lantime
Name:           monitoring-plugins-meinberg_lantime
Version:        0.2.0
Release:        0
Summary:        This plugin checks the health of Meinberg LANTIME devices
License:        GPL-3.0-or-later
Group:          System/Monitoring
URL:            https://github.com/DinoTools/monitoring-check_meinberg_lantime
Source:         https://github.com/DinoTools/monitoring-check_meinberg_lantime/archive/refs/tags/0.2.0.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires:  nagios-rpm-macros
Requires:       perl-Nagios-Plugin
Requires:       perl-Net-SNMP
BuildArch:      noarch

%description
This plugin checks the health and various metrics from
Meinberg LANTIME devices.

%prep
%autosetup -n %{realname}-%{version}

%build

%install
install -D -m0755 check_meinberg_lantime_hw.pl %{buildroot}/%{nagios_plugindir}/check_meinberg_lantime_hw
install -D -m0755 check_meinberg_lantime_ntp.pl %{buildroot}/%{nagios_plugindir}/check_meinberg_lantime_ntp

%files
%license LICENSES/GPL-3.0-or-later.txt
%doc CHANGELOG.md README.md
# avoid build dependency of nagios - own the dirs
%dir %{nagios_libdir}
%{nagios_plugindir}/

%changelog
openSUSE Build Service is sponsored by