From b514cd42141f4565a8e3b94cbe26001e4a78678b7d7b20f33236169f38ecafd9 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 1 Sep 2020 07:49:42 +0000 Subject: [PATCH] Require sysvinit-tools only when using systemd OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bind?expand=0&rev=156 --- bind.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bind.spec b/bind.spec index 7689ae2..728f944 100644 --- a/bind.spec +++ b/bind.spec @@ -106,14 +106,14 @@ Provides: bind9 = %{version} Provides: dns_daemon Obsoletes: bind8 < %{version} Obsoletes: bind9 < %{version} -# named.init (systemd) and init/named both call start_daemon, so unconditional require it -Requires: /sbin/start_daemon %if %{with_systemd} BuildRequires: systemd-rpm-macros BuildRequires: sysuser-shadow BuildRequires: sysuser-tools BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(systemd) +# named.init (systemd) calls start_daemon, so require it when using systemd +Requires: (/sbin/start_daemon if systemd) %{?systemd_ordering} %sysusers_requires %else