%global commit 09069de39b8b9db737abe5118c70bbb54d38f3b0 %global short_commit %(c=%{commit}; echo ${c:0:7}) %global commit_date 20150416 %global nagiospluginsdir %{_libdir}/nagios/plugins # No binaries in this package %global debug_package %{nil} Name: nagios-plugins-domain Version: 1.1.0 Release: 1.%{commit_date}git%{short_commit}%{?dist} Summary: Nagios plugin for checking a domain expiration date by registry name Group: Applications/System License: GPLv2 URL: https://github.com/lgroschen/check_domain/ Source0: https://github.com/lgroschen/check_domain/archive/%{short_commit}/%{name}-%{short_commit}.tar.gz Requires: jwhois Requires: nagios-common Requires: php-cli %description %{summary}. %prep %autosetup -n check_domain-%{commit} %build %install install -Dpm 0755 check_domain.php $RPM_BUILD_ROOT%{nagiospluginsdir}/check_domain %files %doc README.md %{nagiospluginsdir}/check_domain %changelog * Tue Jul 25 2017 Mohamed El Morabity - 1.1.0-1.20150416git09069de - Initial RPM release