%global alt_name nagios-plugin-systemd-service %global nagiospluginsdir %{_libdir}/nagios/plugins # No binaries in this package %global debug_package %{nil} Name: nagios-plugins-systemd-service Version: 0.0.3 Release: 1%{?dist} Summary: Nagios plugin to check the status of a systemd service Group: Applications/System License: GPLv3+ URL: https://github.com/melmorabity/nagios-plugin-systemd-service/ Source0: https://github.com/melmorabity/%{alt_name}/archive/%{version}/%{name}-%{version}.tar.gz Requires: nagios-common Requires: nagios-plugins %description %{summary}. %prep %setup -q -n %{alt_name}-%{version} %build %install install -Dpm 0755 check_systemd_service.sh $RPM_BUILD_ROOT%{nagiospluginsdir}/check_systemd_service %files %doc README.md %license LICENSE %{nagiospluginsdir}/check_systemd_service %changelog * Mon Aug 21 2017 Mohamed El Morabity - 0.0.3-1 - Update to 0.0.3 - Add missing dependency on nagios-plugins * Fri Apr 08 2016 Mohamed El Morabity - 0.0.2-1 - Update to 0.0.2 * Wed Mar 09 2016 Mohamed El Morabity - 0.0.1-1 - Initial RPM release