diff --git a/watchdog.spec b/watchdog.spec index 22b2583..ce74c4d 100644 --- a/watchdog.spec +++ b/watchdog.spec @@ -25,7 +25,10 @@ Requires(post): /sbin/chkconfig Requires(postun): /sbin/chkconfig Requires(post): /sbin/service Requires(postun): /sbin/service - +BuildRequires: systemd-units +Requires: systemd-units +Conflicts: systemd < 38 +Conflicts: filesystem < 3 %description The watchdog program can be used as a powerful software watchdog daemon @@ -68,7 +71,7 @@ install -d -m0755 ${RPM_BUILD_ROOT}%{_sysconfdir} make DESTDIR=${RPM_BUILD_ROOT} install install -Dp -m0644 %{name}.sysconfig ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/watchdog install -Dp -m0755 %{SOURCE1} ${RPM_BUILD_ROOT}%{_initrddir}/watchdog -install -Dp -m0644 %{SOURCE4} ${RPM_BUILD_ROOT}/lib/systemd/system/watchdog.service +install -Dp -m0644 %{SOURCE4} ${RPM_BUILD_ROOT}%{_unitdir}/watchdog.service %clean @@ -107,7 +110,7 @@ fi %{_mandir}/man8/watchdog.8* %{_mandir}/man8/wd_identify.8* %{_mandir}/man8/wd_keepalive.8* -/lib/systemd/system/watchdog.service +%{_unitdir}/watchdog.service %changelog