From 09cb4f85bc7942bb45b32a25ea12d6712261f2eb Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Nov 05 2018 13:46:51 +0000 Subject: Add missing requires to 'common' and 'daemon' subpackage Both subpackages call various %systemd scriptlets, so they need the %systmd_requires macro. Their %triggerpostun also call systemctl directly, so add an explicit Requires on that. Some of this may in practice prove redundant, but let's be explicit and hopefully more robust. Signed-off-by: Tom Gundersen --- diff --git a/dbus.spec b/dbus.spec index 79b3bd4..8cd65a5 100644 --- a/dbus.spec +++ b/dbus.spec @@ -87,6 +87,7 @@ Group: System Environment/Libraries BuildArch: noarch %{?systemd_requires} Requires: fedora-release >= %{fedora_release_version} +Requires: /usr/bin/systemctl %description common The %{name}-common package provides the configuration and setup files for D-Bus @@ -95,11 +96,13 @@ implementations to provide a System and User Message Bus. %package daemon Summary: D-BUS message bus Group: System Environment/Libraries +%{?systemd_requires} Requires: libselinux%{?_isa} >= %{libselinux_version} Requires: dbus-common = %{epoch}:%{version}-%{release} Requires: dbus-libs%{?_isa} = %{epoch}:%{version}-%{release} Requires: dbus-tools = %{epoch}:%{version}-%{release} Requires(pre): /usr/sbin/useradd +Requires: /usr/bin/systemctl %description daemon D-BUS is a system for sending messages between applications. It is