diff options
author | Thomas Haller <thaller@redhat.com> | 2017-12-13 16:15:13 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-12-27 09:18:54 +0100 |
commit | 02a26de6f81400212e425385dd34f8c6d4a68813 (patch) | |
tree | a04ee91e109a314aafce3238fbf0642316b5ff09 | |
parent | bbcd0e9018fe229057a140b584526e03b10ee2fb (diff) | |
download | NetworkManager-02a26de6f81400212e425385dd34f8c6d4a68813.tar.gz |
contrib/rpm: conditionally enable iwd Wi-Fi plugin
-rw-r--r-- | contrib/fedora/rpm/NetworkManager.spec | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec index e0a0849933..3d15ee550e 100644 --- a/contrib/fedora/rpm/NetworkManager.spec +++ b/contrib/fedora/rpm/NetworkManager.spec @@ -50,6 +50,7 @@ %bcond_without wwan %bcond_without team %bcond_without wifi +%bcond_with iwd %bcond_without ovs %bcond_without ppp %bcond_without nmtui @@ -221,6 +222,11 @@ Summary: Wifi plugin for NetworkManager Group: System Environment/Base Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} Requires: wpa_supplicant >= 1:1.1 +# the wifi plugin doesn't require iwd, even if it was build with +# iwd support. Note that the plugin supports both supplicant and +# iwd backend, that doesn't mean that the user requires to have them +# both installed. Maybe both iwd and supplicant should Provide a "wireless-daemon" +# meta package. Obsoletes: NetworkManager < %{obsoletes_device_plugins} %description wifi @@ -426,6 +432,11 @@ intltoolize --automake --copy --force %else --enable-wifi=no \ %endif +%if %{with iwd} + --with-iwd=yes \ +%else + --with-iwd=no \ +%endif --enable-vala=yes \ --enable-introspection \ %if %{with regen_docs} |