From bd2576816fb80e2f4340b4b5066471c6d38b3978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Wed, 12 May 2021 16:33:11 +0200 Subject: [PATCH] Install crond.service into /usr/lib The old installation path (bare /lib prefix) is probably a leftover from before the /usr path migration. Related: rhbz#1938697 --- cronie.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cronie.spec b/cronie.spec index c72abf4..b2395aa 100644 --- a/cronie.spec +++ b/cronie.spec @@ -6,7 +6,7 @@ Summary: Cron daemon for executing programs at set times Name: cronie Version: 1.5.7 -Release: 3%{?dist} +Release: 4%{?dist} License: MIT and BSD and ISC and GPLv2+ URL: https://github.com/cronie-crond/cronie Source0: https://github.com/cronie-crond/cronie/releases/download/cronie-%{version}/cronie-%{version}.tar.gz @@ -123,8 +123,7 @@ 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 contrib/cronie.systemd $RPM_BUILD_ROOT/lib/systemd/system/crond.service +install -m 644 -D contrib/cronie.systemd $RPM_BUILD_ROOT/usr/lib/systemd/system/crond.service %post # run after an installation @@ -190,7 +189,7 @@ exit 0 %config(noreplace) %{_sysconfdir}/sysconfig/crond %config(noreplace) %{_sysconfdir}/cron.deny %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cron.d/0hourly -%attr(0644,root,root) /lib/systemd/system/crond.service +%attr(0644,root,root) /usr/lib/systemd/system/crond.service %files anacron %{_sbindir}/anacron @@ -207,6 +206,9 @@ exit 0 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cron.d/dailyjobs %changelog +* Wed May 12 2021 Jan Staněk - 1.5.7-4 +- Install crond.service into /usr/lib + * Fri Apr 30 2021 Jan Staněk - 1.5.7-3 - Address issues found by static scanners