diff --git a/cronie.spec b/cronie.spec index eba4455..37b378c 100644 --- a/cronie.spec +++ b/cronie.spec @@ -37,6 +37,9 @@ Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units Requires(post): systemd-sysv +Conflicts: systemd < 38 +BuildRequires: systemd-units +Conflicts: filesystem < 3 %description Cronie contains the standard UNIX daemon crond that runs specified programs at @@ -133,8 +136,8 @@ touch $RPM_BUILD_ROOT/var/spool/anacron/cron.monthly 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 %SOURCE1 $RPM_BUILD_ROOT/lib/systemd/system/crond.service +mkdir -p $RPM_BUILD_ROOT%{_unitdir}/ +install -m 644 %SOURCE1 $RPM_BUILD_ROOT%{_unitdir}/crond.service # install sysvinit initscript into sub-package mkdir -pm755 $RPM_BUILD_ROOT%{_initrddir} install -m 755 cronie.init $RPM_BUILD_ROOT%{_initrddir}/crond @@ -212,7 +215,7 @@ exit 0 %config(noreplace) %{_sysconfdir}/sysconfig/crond %config(noreplace) %{_sysconfdir}/cron.deny %attr(0644,root,root) %{_sysconfdir}/cron.d/0hourly -%attr(0644,root,root) /lib/systemd/system/crond.service +%attr(0644,root,root) %{_unitdir}/crond.service %files anacron %{_sbindir}/anacron