# SPEC file overview:
# https://docs.fedoraproject.org/en-US/quick-docs/creating-rpm-packages/#con_rpm-spec-file-overview
# Fedora packaging guidelines:
# https://docs.fedoraproject.org/en-US/packaging-guidelines/

%global  debug_package %{nil}

Name:    nagios-plugins-check_chrony
Version: 0.bf6b2d0

Release: 2.ndias%{?dist}
Summary: Nagios plugin to check Chrony NTP

License: GPLv3
URL:     https://github.com/Decstasy/check_chrony
Source0: https://github.com/Decstasy/check_chrony/archive/refs/heads/check_chrony-master.tar.gz 


%description
Icinga2 / Nagios check for Chrony NTP & PTP offset to reference.
Performance data is also included and no sudo privileges are needed for
execution.


%prep
%setup -q -n check_chrony-master


%build


%install
install -p -m 755 -D check_chrony %{buildroot}%{_libdir}/nagios/plugins/check_chrony


%files
%doc README.md
%license LICENSE

%{_libdir}/nagios/plugins/

%changelog
* Mon Dec 13 2021 Nuno Dias <Nuno.Dias@gmail.com> - 0.bf6b2d0-2.ndias
- Version bf6b2d0