mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-02 08:30:35 +01:00
contrib/rpm: use proper check for nmtui conditional build
(cherry picked from commit0f4819ab36) (cherry picked from commitcca752af94)
This commit is contained in:
parent
2d3df2e6ef
commit
627dc8a933
1 changed files with 11 additions and 1 deletions
|
|
@ -503,7 +503,7 @@ configurations using "/etc/sysconfig/network-scripts/rule-NAME" files
|
|||
(eg, to do policy-based routing).
|
||||
|
||||
|
||||
%if 0%{with_nmtui}
|
||||
%if %{with nmtui}
|
||||
%package tui
|
||||
Summary: NetworkManager curses-based UI
|
||||
Group: System Environment/Base
|
||||
|
|
@ -570,6 +570,11 @@ by nm-connection-editor and nm-applet in a non-graphical environment.
|
|||
-Diwd=true \
|
||||
%else
|
||||
-Diwd=false \
|
||||
%endif
|
||||
%if %{with nmtui}
|
||||
-Dnmtui=true \
|
||||
%else
|
||||
-Dnmtui=false \
|
||||
%endif
|
||||
-Dvapi=true \
|
||||
-Dintrospection=true \
|
||||
|
|
@ -695,6 +700,11 @@ intltoolize --automake --copy --force
|
|||
--with-iwd=yes \
|
||||
%else
|
||||
--with-iwd=no \
|
||||
%endif
|
||||
%if %{with nmtui}
|
||||
--with-nmtui=yes \
|
||||
%else
|
||||
--with-nmtui=no \
|
||||
%endif
|
||||
--enable-vala=yes \
|
||||
--enable-introspection \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue