- 531963 creating noanacron package

This commit is contained in:
Marcela Mašláňová 2009-10-30 16:35:11 +00:00
parent 1462d4065f
commit 2bb05b688d

View File

@ -6,12 +6,13 @@
Summary: Cron daemon for executing programs at set times Summary: Cron daemon for executing programs at set times
Name: cronie Name: cronie
Version: 1.4.2 Version: 1.4.2
Release: 2%{?dist} Release: 3%{?dist}
License: MIT and BSD and GPLv2 License: MIT and BSD and GPLv2
Group: System Environment/Base Group: System Environment/Base
URL: https://fedorahosted.org/cronie URL: https://fedorahosted.org/cronie
Source0: https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz Source0: https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz
Patch0: cronie-service-stop.patch Patch0: cronie-service-stop.patch
Patch1: contrib.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: syslog, bash >= 2.0 Requires: syslog, bash >= 2.0
@ -19,6 +20,7 @@ Requires: /usr/sbin/sendmail
Conflicts: sysklogd < 1.4.1 Conflicts: sysklogd < 1.4.1
Provides: vixie-cron = 4:4.4 Provides: vixie-cron = 4:4.4
Obsoletes: vixie-cron <= 4:4.3 Obsoletes: vixie-cron <= 4:4.3
Requires: dailyjobs
%if %{with selinux} %if %{with selinux}
Requires: libselinux >= 2.0.64 Requires: libselinux >= 2.0.64
@ -48,6 +50,7 @@ SELinux.
Summary: Utility for running regular jobs Summary: Utility for running regular jobs
Requires: crontabs Requires: crontabs
Group: System Environment/Base Group: System Environment/Base
Provides: dailyjobs
Provides: anacron = 2.4 Provides: anacron = 2.4
Obsoletes: anacron <= 2.3 Obsoletes: anacron <= 2.3
Requires(post): coreutils 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 The default settings execute regular jobs by anacron, however this could be
overloaded in settings. 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 %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1
%build %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.weekly
touch $RPM_BUILD_ROOT/var/spool/anacron/cron.monthly 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 %clean
rm -rf $RPM_BUILD_ROOT 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}/sysconfig/crond
%config(noreplace) %{_sysconfdir}/cron.deny %config(noreplace) %{_sysconfdir}/cron.deny
%config(noreplace) %{_sysconfdir}/anacrontab %config(noreplace) %{_sysconfdir}/anacrontab
%attr(0644,root,root) %{_sysconfdir}/cron.d/0hourly
%files anacron %files anacron
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_sbindir}/anacron %{_sbindir}/anacron
%attr(0644,root,root) %{_sysconfdir}/cron.d/0hourly
%attr(0755,root,root) %{_sysconfdir}/cron.hourly/0anacron %attr(0755,root,root) %{_sysconfdir}/cron.hourly/0anacron
%dir /var/spool/anacron %dir /var/spool/anacron
%ghost %verify(not md5 size mtime) /var/spool/anacron/cron.daily %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}/man5/anacrontab.*
%{_mandir}/man8/anacron.* %{_mandir}/man8/anacron.*
%files noanacron
%defattr(-,root,root,-)
%attr(0644,root,root) %{_sysconfdir}/cron.d/dailyjobs
%changelog %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 * Mon Oct 19 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.2-2
- 529632 service crond stop returns appropriate value - 529632 service crond stop returns appropriate value