summaryrefslogtreecommitdiff
path: root/contrib/fedora
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-11-21 15:14:50 +0100
committerThomas Haller <thaller@redhat.com>2019-11-22 15:32:52 +0100
commit0f4819ab3651bcd7bc0916c1a3c1e2fcc6612f71 (patch)
tree214dac2386b7f4d01c78c12c2e08a6a33f89cb6e /contrib/fedora
parent09e5a0e805eba8cd41de2ec4c826a44a9c3aea12 (diff)
downloadNetworkManager-0f4819ab3651bcd7bc0916c1a3c1e2fcc6612f71.tar.gz
contrib/rpm: use proper check for nmtui conditional build
Diffstat (limited to 'contrib/fedora')
-rw-r--r--contrib/fedora/rpm/NetworkManager.spec12
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec
index 317fe9a82a..9b7af5d353 100644
--- a/contrib/fedora/rpm/NetworkManager.spec
+++ b/contrib/fedora/rpm/NetworkManager.spec
@@ -466,7 +466,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
@@ -534,6 +534,11 @@ by nm-connection-editor and nm-applet in a non-graphical environment.
%else
-Diwd=false \
%endif
+%if %{with nmtui}
+ -Dnmtui=true \
+%else
+ -Dnmtui=false \
+%endif
-Dvapi=true \
-Dintrospection=true \
%if %{with regen_docs}
@@ -650,6 +655,11 @@ intltoolize --automake --copy --force
%else
--with-iwd=no \
%endif
+%if %{with nmtui}
+ --with-nmtui=yes \
+%else
+ --with-nmtui=no \
+%endif
--enable-vala=yes \
--enable-introspection \
%if %{with regen_docs}