update to 1.4.8

create sub-package sysvinit for initscript
This commit is contained in:
Marcela Mašláňová 2011-06-28 12:25:53 +02:00
parent d841f5f5e2
commit b7c4281128
3 changed files with 21 additions and 12 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
cronie.systemd cronie.systemd
cronie-1.4.7.tar.gz cronie-1.4.7.tar.gz
/cronie-1.4.8.tar.gz

View File

@ -6,8 +6,8 @@
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.7 Version: 1.4.8
Release: 3%{?dist} Release: 1%{?dist}
License: MIT and BSD and ISC and GPLv2 License: MIT and BSD and ISC and GPLv2
Group: System Environment/Base Group: System Environment/Base
URL: https://fedorahosted.org/cronie URL: https://fedorahosted.org/cronie
@ -78,6 +78,15 @@ Requires: %{name} = %{version}-%{release}
%description noanacron %description noanacron
Old style of {hourly,daily,weekly,monthly}.jobs without anacron. No features. Old style of {hourly,daily,weekly,monthly}.jobs without anacron. No features.
%package sysvinit
Summary: Sysvinit script
Group: System Environment/Base
Requires: cronie
Requires: %{name} = %{version}-%{release}
%description sysvinit
Sysvinit initscript.
%prep %prep
%setup -q %setup -q
@ -123,14 +132,12 @@ touch $RPM_BUILD_ROOT/var/spool/anacron/cron.monthly
# noanacron package # noanacron package
install -m 644 contrib/dailyjobs $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/dailyjobs install -m 644 contrib/dailyjobs $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/dailyjobs
%if %{with systemd}
# install systemd initscript # install systemd initscript
mkdir -p $RPM_BUILD_ROOT/lib/systemd/system/ mkdir -p $RPM_BUILD_ROOT/lib/systemd/system/
install -m 644 %SOURCE1 $RPM_BUILD_ROOT/lib/systemd/system/crond.service install -m 644 %SOURCE1 $RPM_BUILD_ROOT/lib/systemd/system/crond.service
%else # install sysvinit initscript into sub-package
mkdir -pm755 $RPM_BUILD_ROOT%{_initrddir} mkdir -pm755 $RPM_BUILD_ROOT%{_initrddir}
install -m 755 cronie.init $RPM_BUILD_ROOT%{_initrddir}/crond install -m 755 cronie.init $RPM_BUILD_ROOT%{_initrddir}/crond
%endif
%post %post
%if %{with systemd} %if %{with systemd}
@ -205,7 +212,6 @@ service crond condrestart > /dev/null 2>&1 ||:
%endif %endif
%files %files
%defattr(-,root,root,-)
%doc AUTHORS COPYING INSTALL README ChangeLog %doc AUTHORS COPYING INSTALL README ChangeLog
%attr(755,root,root) %{_sbindir}/crond %attr(755,root,root) %{_sbindir}/crond
%attr(6755,root,root) %{_bindir}/crontab %attr(6755,root,root) %{_bindir}/crontab
@ -223,12 +229,9 @@ service crond condrestart > /dev/null 2>&1 ||:
%attr(0644,root,root) %{_sysconfdir}/cron.d/0hourly %attr(0644,root,root) %{_sysconfdir}/cron.d/0hourly
%if %{with systemd} %if %{with systemd}
%attr(0644,root,root) /lib/systemd/system/crond.service %attr(0644,root,root) /lib/systemd/system/crond.service
%else
%{_initrddir}/crond
%endif %endif
%files anacron %files anacron
%defattr(-,root,root,-)
%{_sbindir}/anacron %{_sbindir}/anacron
%attr(0755,root,root) %{_sysconfdir}/cron.hourly/0anacron %attr(0755,root,root) %{_sysconfdir}/cron.hourly/0anacron
%config(noreplace) %{_sysconfdir}/anacrontab %config(noreplace) %{_sysconfdir}/anacrontab
@ -240,10 +243,16 @@ service crond condrestart > /dev/null 2>&1 ||:
%{_mandir}/man8/anacron.* %{_mandir}/man8/anacron.*
%files noanacron %files noanacron
%defattr(-,root,root,-)
%attr(0644,root,root) %{_sysconfdir}/cron.d/dailyjobs %attr(0644,root,root) %{_sysconfdir}/cron.d/dailyjobs
%files sysvinit
%attr(0644,root,root) %{_initrddir}/crond
%changelog %changelog
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.8-1
- update to 1.4.8
- create sub-package sysvinit for initscript
* Mon May 9 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.7-3 * Mon May 9 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.7-3
- missing requirement on systemd-sysv for scriptlets - missing requirement on systemd-sysv for scriptlets

View File

@ -1,2 +1 @@
01014d53a9ede7c45f2419dc023cc372 cronie.systemd 9b1d2ce6db8d1883e06635f437170657 cronie-1.4.8.tar.gz
dfc26c47756d0c40ee27ae3c7ee98e0d cronie-1.4.7.tar.gz