%global alt_name nagios-plugin-chrony %global nagiospluginsdir %{_libdir}/nagios/plugins # No binaries in this package %global debug_package %{nil} Name: nagios-plugins-chrony Version: 0.0.3 Release: 1%{?dist} Summary: Nagios plugin to check the clock offset of chronyd Group: Applications/System License: GPLv3+ URL: https://github.com/melmorabity/nagios-plugin-chrony/ Source0: https://github.com/melmorabity/%{alt_name}/archive/%{version}/%{name}-%{version}.tar.gz Requires: chrony Requires: nagios-common Requires: pynag %description %{summary}. %prep %autosetup -n %{alt_name}-%{version} %build %install install -Dpm 0755 check_chrony.py $RPM_BUILD_ROOT%{nagiospluginsdir}/check_chrony %files %doc README.md %license LICENSE %{nagiospluginsdir}/check_chrony %changelog * Fri Jan 26 2018 Mohamed El Morabity - 0.0.3-1 - Update to 0.0.3 * Sat Oct 14 2017 Mohamed El Morabity - 0.0.2-1 - Update to 0.0.2 * Fri Sep 23 2016 Mohamed El Morabity - 0.0.1-1 - Initial RPM release