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 <teg@jklm.no>
This commit is contained in:
parent
5a8f8e63cb
commit
09cb4f85bc
@ -87,6 +87,7 @@ Group: System Environment/Libraries
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
Requires: fedora-release >= %{fedora_release_version}
|
Requires: fedora-release >= %{fedora_release_version}
|
||||||
|
Requires: /usr/bin/systemctl
|
||||||
|
|
||||||
%description common
|
%description common
|
||||||
The %{name}-common package provides the configuration and setup files for D-Bus
|
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
|
%package daemon
|
||||||
Summary: D-BUS message bus
|
Summary: D-BUS message bus
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
|
%{?systemd_requires}
|
||||||
Requires: libselinux%{?_isa} >= %{libselinux_version}
|
Requires: libselinux%{?_isa} >= %{libselinux_version}
|
||||||
Requires: dbus-common = %{epoch}:%{version}-%{release}
|
Requires: dbus-common = %{epoch}:%{version}-%{release}
|
||||||
Requires: dbus-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: dbus-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires: dbus-tools = %{epoch}:%{version}-%{release}
|
Requires: dbus-tools = %{epoch}:%{version}-%{release}
|
||||||
Requires(pre): /usr/sbin/useradd
|
Requires(pre): /usr/sbin/useradd
|
||||||
|
Requires: /usr/bin/systemctl
|
||||||
|
|
||||||
%description daemon
|
%description daemon
|
||||||
D-BUS is a system for sending messages between applications. It is
|
D-BUS is a system for sending messages between applications. It is
|
||||||
|
Loading…
Reference in New Issue
Block a user