rpm: disable dhclient on Fedora 41 and RHEL 10

They're off by default, but SPEC file turns them on. Don't do that in
future distros.

https://issues.redhat.com/browse/RHEL-24622
This commit is contained in:
Lubomir Rintel
2024-07-09 18:11:50 +02:00
parent 05b4610667
commit a2914f1d0a

View File

@@ -50,8 +50,10 @@
###############################################################################
%if 0%{?fedora} > 40 || 0%{?rhel} >= 10
%bcond_without meson
%bcond_with dhclient
%else
%bcond_with meson
%bcond_without dhclient
%endif
%bcond_without adsl
%bcond_without bluetooth
@@ -655,7 +657,11 @@ Preferably use nmcli instead.
%endif
-Dnft=%{_sbindir}/nft \
-Diptables=%{_sbindir}/iptables \
%if %{with dhclient}
-Ddhclient=%{_sbindir}/dhclient \
%else
-Ddhclient=no \
%endif
-Ddhcpcanon=no \
-Ddhcpcd=no \
-Dconfig_dhcp_default=%{dhcp_default} \
@@ -797,7 +803,11 @@ autoreconf --install --force
--enable-static=no \
--with-nft=%{_sbindir}/nft \
--with-iptables=%{_sbindir}/iptables \
%if %{with dhclient}
--with-dhclient=%{_sbindir}/dhclient \
%else
--with-dhclient=no \
%endif
--with-dhcpcd=no \
--with-dhcpcanon=no \
--with-config-dhcp-default=%{dhcp_default} \