diff --git a/system-setup-keyboard.spec b/system-setup-keyboard.spec index a83b2a2..a74d1d3 100644 --- a/system-setup-keyboard.spec +++ b/system-setup-keyboard.spec @@ -22,6 +22,9 @@ Obsoletes: fedora-setup-keyboard < 0.7 Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units +BuildRequires: systemd-units +Conflicts: systemd < 38 +Conflicts: filesystem < 3 %description %{name} is a daemon to monitor the keyboard layout configured in @@ -30,6 +33,8 @@ snippet. %prep %setup -q +# FIXME +sed -i -e 's#/lib/systemd/system#%{_unitdir}#g' Makefile %build make CFLAGS="%{optflags}" %{?_smp_mflags} @@ -69,7 +74,7 @@ fi %{_bindir}/%{name} %{_sysconfdir}/init/%{name}.conf %{_mandir}/man1/system-setup-keyboard.1* -/lib/systemd/system/system-setup-keyboard.service +%{_unitdir}/system-setup-keyboard.service # Own directories to avoid hard requirement on a upstart # can be removed once we decided to stay with systemd %dir %{_sysconfdir}/init/