mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-27 03:10:27 +01:00
rpm: disable CLAT on i686
There is no bpftool compiled for i686.
This commit is contained in:
parent
6ec321d21b
commit
6ac6d4f14e
1 changed files with 16 additions and 1 deletions
|
|
@ -105,7 +105,12 @@ Release: __RELEASE_VERSION__%{?dist}
|
|||
%else
|
||||
%bcond_with polkit_noauth_group
|
||||
%endif
|
||||
|
||||
%ifarch %{ix86}
|
||||
# there is no bpftool in i686
|
||||
%bcond_with clat
|
||||
%else
|
||||
%bcond_without clat
|
||||
%endif
|
||||
###############################################################################
|
||||
|
||||
%global dbus_version 1.9.18
|
||||
|
|
@ -182,7 +187,10 @@ Requires(postun): systemd
|
|||
Requires: dbus >= %{dbus_version}
|
||||
Requires: glib2 >= %{glib2_version}
|
||||
Requires: %{name}-libnm%{?_isa} = %{epoch}:%{version}-%{release}
|
||||
|
||||
%if %{with clat}
|
||||
Requires: libbpf
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} == 8
|
||||
# Older libndp versions use select() (rh#1933041). On well known distros,
|
||||
|
|
@ -286,8 +294,10 @@ BuildRequires: firewalld-filesystem
|
|||
BuildRequires: iproute
|
||||
BuildRequires: iproute-tc
|
||||
BuildRequires: libnvme-devel >= 1.5
|
||||
%if %{with clat}
|
||||
BuildRequires: libbpf-devel
|
||||
BuildRequires: bpftool
|
||||
%endif
|
||||
|
||||
Provides: %{name}-dispatcher%{?_isa} = %{epoch}:%{version}-%{release}
|
||||
|
||||
|
|
@ -616,6 +626,11 @@ Preferably use nmcli instead.
|
|||
%else
|
||||
-Diwd=false \
|
||||
%endif
|
||||
%if %{with clat}
|
||||
-Dclat=true \
|
||||
%else
|
||||
-Dclat=false \
|
||||
%endif
|
||||
%if %{with bluetooth}
|
||||
-Dbluez5_dun=true \
|
||||
%else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue