From 2da563359d94f2876719448110cb4cd6eb82983d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Mon, 22 Jul 2013 14:10:15 +0200 Subject: [PATCH] Scriptlets are not created correctly if systemd is not in BR 986698. Remove sub-package sysvinit, which is not needed anymore --- cronie.spec | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/cronie.spec b/cronie.spec index f52d3fd..ac42b81 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.11 -Release: 1%{?dist} +Release: 2%{?dist} License: MIT and BSD and ISC and GPLv2 Group: System Environment/Base URL: https://fedorahosted.org/cronie @@ -26,6 +26,9 @@ Buildrequires: pam-devel >= 1.0.1 Buildrequires: audit-libs-devel >= 1.4.1 %endif +BuildRequires: systemd +Obsoletes: %{name}-sysvinit + Requires(post): coreutils sed Requires(post): systemd Requires(preun): systemd @@ -70,16 +73,6 @@ Requires: %{name} = %{version}-%{release} Old style of running {hourly,daily,weekly,monthly}.jobs without anacron. No extra features. -%package sysvinit -Summary: SysV init script for cronie -Group: System Environment/Base -Requires: %{name} = %{version}-%{release} -Requires(post): /sbin/chkconfig - -%description sysvinit -SysV style init script for cronie. It needs to be installed only if systemd -is not used as the system init process. - %prep %setup -q @@ -128,9 +121,6 @@ install -m 644 contrib/dailyjobs $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/dailyjobs # install systemd initscript mkdir -p $RPM_BUILD_ROOT/lib/systemd/system/ install -m 644 contrib/cronie.systemd $RPM_BUILD_ROOT/lib/systemd/system/crond.service -# install sysvinit initscript into sub-package -mkdir -pm755 $RPM_BUILD_ROOT%{_initrddir} -install -m 755 cronie.init $RPM_BUILD_ROOT%{_initrddir}/crond %post # run after an installation @@ -176,9 +166,6 @@ exit 0 # when it calls pam /bin/systemctl try-restart crond.service >/dev/null 2>&1 || : -%triggerpostun -n cronie-sysvinit -- cronie < 1.4.8-1 -/sbin/chkconfig --add crond >/dev/null 2>&1 || : - %files %doc AUTHORS COPYING INSTALL README ChangeLog %attr(755,root,root) %{_sbindir}/crond @@ -211,10 +198,11 @@ exit 0 %files noanacron %attr(0644,root,root) %{_sysconfdir}/cron.d/dailyjobs -%files sysvinit -%attr(0755,root,root) %{_initrddir}/crond - %changelog +* Mon Jul 22 2013 Marcela Mašláňová - 1.4.11-2 +- scriptlets are not created correctly if systemd is not in BR 986698 +- remove sub-package sysvinit, which is not needed anymore + * Thu Jul 18 2013 Marcela Mašláňová - 1.4.11-1 - new release 1.4.11 (contains previous bug fixes from 1.4.10-5)