- 531963 creating noanacron package
This commit is contained in:
parent
1462d4065f
commit
2bb05b688d
27
cronie.spec
27
cronie.spec
@ -6,12 +6,13 @@
|
||||
Summary: Cron daemon for executing programs at set times
|
||||
Name: cronie
|
||||
Version: 1.4.2
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: MIT and BSD and GPLv2
|
||||
Group: System Environment/Base
|
||||
URL: https://fedorahosted.org/cronie
|
||||
Source0: https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz
|
||||
Patch0: cronie-service-stop.patch
|
||||
Patch1: contrib.patch
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Requires: syslog, bash >= 2.0
|
||||
@ -19,6 +20,7 @@ Requires: /usr/sbin/sendmail
|
||||
Conflicts: sysklogd < 1.4.1
|
||||
Provides: vixie-cron = 4:4.4
|
||||
Obsoletes: vixie-cron <= 4:4.3
|
||||
Requires: dailyjobs
|
||||
|
||||
%if %{with selinux}
|
||||
Requires: libselinux >= 2.0.64
|
||||
@ -48,6 +50,7 @@ SELinux.
|
||||
Summary: Utility for running regular jobs
|
||||
Requires: crontabs
|
||||
Group: System Environment/Base
|
||||
Provides: dailyjobs
|
||||
Provides: anacron = 2.4
|
||||
Obsoletes: anacron <= 2.3
|
||||
Requires(post): coreutils
|
||||
@ -57,9 +60,19 @@ Anacron becames part of cronie. Anacron is used only for running regular jobs.
|
||||
The default settings execute regular jobs by anacron, however this could be
|
||||
overloaded in settings.
|
||||
|
||||
%package noanacron
|
||||
Summary: Utility for running simple regular jobs in old cron style
|
||||
Group: System Environment/Base
|
||||
Provides: dailyjobs
|
||||
Requires: crontabs
|
||||
|
||||
%description noanacron
|
||||
Old style of {hourly,daily,weekly,monthly}.jobs without anacron. No features.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
|
||||
@ -102,6 +115,9 @@ touch $RPM_BUILD_ROOT/var/spool/anacron/cron.daily
|
||||
touch $RPM_BUILD_ROOT/var/spool/anacron/cron.weekly
|
||||
touch $RPM_BUILD_ROOT/var/spool/anacron/cron.monthly
|
||||
|
||||
# noanacron package
|
||||
install -m 644 $RPM_SOURCE_DIR/dailyjobs $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/dailyjobs
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
@ -161,11 +177,11 @@ cp -a /var/lock/subsys/crond /var/lock/subsys/cronie > /dev/null 2>&1 ||:
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/crond
|
||||
%config(noreplace) %{_sysconfdir}/cron.deny
|
||||
%config(noreplace) %{_sysconfdir}/anacrontab
|
||||
%attr(0644,root,root) %{_sysconfdir}/cron.d/0hourly
|
||||
|
||||
%files anacron
|
||||
%defattr(-,root,root,-)
|
||||
%{_sbindir}/anacron
|
||||
%attr(0644,root,root) %{_sysconfdir}/cron.d/0hourly
|
||||
%attr(0755,root,root) %{_sysconfdir}/cron.hourly/0anacron
|
||||
%dir /var/spool/anacron
|
||||
%ghost %verify(not md5 size mtime) /var/spool/anacron/cron.daily
|
||||
@ -174,7 +190,14 @@ cp -a /var/lock/subsys/crond /var/lock/subsys/cronie > /dev/null 2>&1 ||:
|
||||
%{_mandir}/man5/anacrontab.*
|
||||
%{_mandir}/man8/anacron.*
|
||||
|
||||
%files noanacron
|
||||
%defattr(-,root,root,-)
|
||||
%attr(0644,root,root) %{_sysconfdir}/cron.d/dailyjobs
|
||||
|
||||
%changelog
|
||||
* Fri Oct 30 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.2-3
|
||||
- 531963 creating noanacron package
|
||||
|
||||
* Mon Oct 19 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.2-2
|
||||
- 529632 service crond stop returns appropriate value
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user