%define debug_package %{nil} Summary: A Nagios plugin to compare time on remote host with localhost Name: nagios-okplugin-check_time Version: 1.0.3 Release: 1%{?dist} License: GPLv2+ Group: Applications/System URL: http://opensource.is/trac/wiki/check_time Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_time/releases/nagios-okplugin-check_time-%{version}.tar.gz Requires: nagios-nrpe Requires: bc BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Packager: Pall Sigurdsson %description A Nagios plugin to compare time on remote host with localhost %prep %setup -q perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/check_time.cfg %build %install rm -rf %{buildroot} install -D -p -m 0755 check_time.sh %{buildroot}%{_libdir}/nagios/plugins/check_time.sh install -D -p -m 0755 nrpe.d/check_time.cfg %{buildroot}/etc/nrpe.d/check_time.cfg %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) #%doc README LICENSE %{_libdir}/nagios/plugins/* /etc/nrpe.d/check_time.cfg %changelog * Fri Apr 04 2014 Tomas Edwardsson 1.0.3-1 - check_time - Added requirement for bc (tommi@tommi.org) * Tue Mar 25 2014 Tomas Edwardsson 1.0.2-1 - Bump version * Mon Mar 12 2012 Pall Sigurdsson 1.0.1-1 - new package built with tito * Thu Nov 25 2010 Pall Sigurdsson 0.1-1 - Initial packaging