Name: rcron Version: 0.1.1 Release: 10%{?dist} Summary: Cron job redundancy and failover Group: System Environment/Base License: MIT URL: https://code.google.com/p/rcron/ Source0: https://rcron.googlecode.com/files/%{name}-%{version}.tar.gz Source1: rcron.conf BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: gcc byacc flex flex-devel %description rcron is a minimal tool aiming to help sysadmins in setting up cron jobs redundancy and failover over groups of machines. It just ensures that a job installed on several machines will only run on the active one at any time. %prep %setup -q %build ./configure CFLAGS="%{optflags} -fcommon" --prefix=/usr --sysconfdir=/etc make %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} %{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/rcron %{__install} -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rcron %{__install} -d -m 0755 %{buildroot}%{_localstatedir}/run/rcron echo 'passive' >> %{buildroot}%{_localstatedir}/run/rcron/state %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_bindir}/%{name} %{_mandir}/man8/%{name}.8* %{_localstatedir}/run/%{name}/state %config %{_sysconfdir}/%{name}/%{name}.conf #%doc README LICENSE %doc LICENSE %changelog * Wed Feb 12 2014 Jakov Sosic - 0.1.1-1 - initial build