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
|
Provides: dns_daemon
|
||||||
Obsoletes: bind8 < %{version}
|
Obsoletes: bind8 < %{version}
|
||||||
Obsoletes: bind9 < %{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}
|
%if %{with_systemd}
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: sysuser-shadow
|
BuildRequires: sysuser-shadow
|
||||||
BuildRequires: sysuser-tools
|
BuildRequires: sysuser-tools
|
||||||
BuildRequires: pkgconfig(libsystemd)
|
BuildRequires: pkgconfig(libsystemd)
|
||||||
BuildRequires: pkgconfig(systemd)
|
BuildRequires: pkgconfig(systemd)
|
||||||
|
# named.init (systemd) calls start_daemon, so require it when using systemd
|
||||||
|
Requires: (/sbin/start_daemon if systemd)
|
||||||
%{?systemd_ordering}
|
%{?systemd_ordering}
|
||||||
%sysusers_requires
|
%sysusers_requires
|
||||||
%else
|
%else
|
||||||
|
Loading…
Reference in New Issue
Block a user