]> git.pld-linux.org Git - packages/dbus.git/commitdiff
fix build without systemd
authorJan Palus <atler@pld-linux.org>
Sun, 15 Nov 2020 22:01:46 +0000 (23:01 +0100)
committerJan Palus <atler@pld-linux.org>
Sun, 15 Nov 2020 22:01:46 +0000 (23:01 +0100)
dbus.spec

index 29d9df71d9deeb635db1ad92fdf2c90879d62c95..89399031d1947bbc8d3f501f14c386517c6d3964 100644 (file)
--- a/dbus.spec
+++ b/dbus.spec
@@ -204,13 +204,15 @@ install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d
 
 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
 
+%if %{with systemd}
 ln -s dbus.service $RPM_BUILD_ROOT%{systemdunitdir}/messagebus.service
 
-# for local configuration in dbus 1.10+
-install -d $RPM_BUILD_ROOT/etc/dbus-1/{session.d,system.d}
-
 # we are creating messagebus user from rpm pre
 %{__rm} $RPM_BUILD_ROOT/usr/lib/sysusers.d/dbus.conf
+%endif
+
+# for local configuration in dbus 1.10+
+install -d $RPM_BUILD_ROOT/etc/dbus-1/{session.d,system.d}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -282,6 +284,7 @@ fi
 %{_mandir}/man1/dbus-test-tool.1*
 %{_mandir}/man1/dbus-update-activation-environment.1*
 
+%if %{with systemd}
 %{systemdunitdir}/dbus.service
 %{systemdunitdir}/dbus.socket
 %{systemdunitdir}/messagebus.service
@@ -290,6 +293,7 @@ fi
 %{systemduserunitdir}/dbus.service
 %{systemduserunitdir}/dbus.socket
 %{systemduserunitdir}/sockets.target.wants/dbus.socket
+%endif
 
 %files libs
 %defattr(644,root,root,755)
This page took 0.052054 seconds and 4 git commands to generate.