spec: add iputils as recommended dependency for ping command

NetworkManager relies on the ping command provided by `/usr/bin/ping`
from the iputils package to proceed the gateway or ip addresses
connectivity check.  This change ensures that iputils is recommended as a
dependency, making the ping command available for use during runtime but
not enforcing its installation as mandatory since NM can still proceed
to activate the connection even if the ping operation failed.
This commit is contained in:
Wen Liang 2024-10-25 14:00:58 -04:00 committed by Wen Liang
parent 984d56e6f6
commit 7ab3362940

View file

@ -204,6 +204,8 @@ Requires: dbus >= %{dbus_version}
Requires: glib2 >= %{glib2_version} Requires: glib2 >= %{glib2_version}
Requires: %{name}-libnm%{?_isa} = %{epoch}:%{version}-%{release} Requires: %{name}-libnm%{?_isa} = %{epoch}:%{version}-%{release}
Recommends: iputils
%if 0%{?rhel} == 8 %if 0%{?rhel} == 8
# Older libndp versions use select() (rh#1933041). On well known distros, # Older libndp versions use select() (rh#1933041). On well known distros,
# choose a version that has the necessary fix. # choose a version that has the necessary fix.