Require sysvinit-tools only when using systemd
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bind?expand=0&rev=156
This commit is contained in:
parent
249e44318a
commit
b514cd4214
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user