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-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
Name: cronie
Version: 1.4.7
Release: 3%{?dist}
Version: 1.4.8
Release: 1%{?dist}
License: MIT and BSD and ISC and GPLv2
Group: System Environment/Base
URL: https://fedorahosted.org/cronie
@ -78,6 +78,15 @@ Requires: %{name} = %{version}-%{release}
%description noanacron
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
%setup -q
@ -123,14 +132,12 @@ touch $RPM_BUILD_ROOT/var/spool/anacron/cron.monthly
# noanacron package
install -m 644 contrib/dailyjobs $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/dailyjobs
%if %{with systemd}
# install systemd initscript
mkdir -p $RPM_BUILD_ROOT/lib/systemd/system/
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}
install -m 755 cronie.init $RPM_BUILD_ROOT%{_initrddir}/crond
%endif
%post
%if %{with systemd}
@ -205,7 +212,6 @@ service crond condrestart > /dev/null 2>&1 ||:
%endif
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING INSTALL README ChangeLog
%attr(755,root,root) %{_sbindir}/crond
%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
%if %{with systemd}
%attr(0644,root,root) /lib/systemd/system/crond.service
%else
%{_initrddir}/crond
%endif
%files anacron
%defattr(-,root,root,-)
%{_sbindir}/anacron
%attr(0755,root,root) %{_sysconfdir}/cron.hourly/0anacron
%config(noreplace) %{_sysconfdir}/anacrontab
@ -240,10 +243,16 @@ service crond condrestart > /dev/null 2>&1 ||:
%{_mandir}/man8/anacron.*
%files noanacron
%defattr(-,root,root,-)
%attr(0644,root,root) %{_sysconfdir}/cron.d/dailyjobs
%files sysvinit
%attr(0644,root,root) %{_initrddir}/crond
%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
- missing requirement on systemd-sysv for scriptlets

View File

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