diff --git a/cronie.spec b/cronie.spec index 46b87bd..60ce7f7 100644 --- a/cronie.spec +++ b/cronie.spec @@ -6,7 +6,7 @@ Summary: Cron daemon for executing programs at set times Name: cronie Version: 1.4.1 -Release: 1%{?dist} +Release: 2%{?dist} License: MIT and BSD and GPLv2 Group: System Environment/Base URL: https://fedorahosted.org/cronie @@ -31,7 +31,7 @@ Buildrequires: pam-devel >= 1.0.1 Buildrequires: audit-libs-devel >= 1.4.1 %endif -Requires(post): /sbin/chkconfig coreutils +Requires(post): /sbin/chkconfig coreutils sed Requires(postun): /sbin/chkconfig Requires(postun): /sbin/service Requires(preun): /sbin/chkconfig @@ -49,6 +49,7 @@ Requires: crontabs Group: System Environment/Base Provides: anacron = 2.4 Obsoletes: anacron <= 2.3 +Requires(post): coreutils %description anacron Anacron becames part of cronie. Anacron is used only for running regular jobs. @@ -104,6 +105,8 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add crond + +%post anacron [ -e /var/spool/anacron/cron.daily ] || touch /var/spool/anacron/cron.daily [ -e /var/spool/anacron/cron.weekly ] || touch /var/spool/anacron/cron.weekly [ -e /var/spool/anacron/cron.monthly ] || touch /var/spool/anacron/cron.monthly @@ -170,6 +173,9 @@ cp -a /var/lock/subsys/crond /var/lock/subsys/cronie > /dev/null 2>&1 ||: %{_mandir}/man8/anacron.* %changelog +* Fri Aug 14 2009 Tomas Mraz - 1.4.1-2 +- create the anacron timestamps in correct post script + * Fri Aug 14 2009 Marcela Mašláňová - 1.4.1-1 - update to 1.4.1 - create and own /var/spool/anacron/cron.{daily,weekly,monthly} to