diff options
author | Thomas Haller <thaller@redhat.com> | 2015-01-23 14:12:02 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-01-30 22:20:13 +0100 |
commit | 5439fbd77cd245b0a69cede67280767f6ffdc996 (patch) | |
tree | 83c00f6883084a62eaf33527a3642fe4a3b453d0 /contrib | |
parent | b3944cfc712564ebd03e1b88e12cba205c71914c (diff) |
build: add compile option to disable building of Wi-Fi plugin
Before, the Wi-Fi plugin was always build. Users who didn't want
to use it would simply drop "libnm-device-plugin-wifi.so".
Add a compile time option to disable needlessly building the plugin.
https://bugzilla.gnome.org/show_bug.cgi?id=743388
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/fedora/rpm/NetworkManager.spec | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec index 0b3f702710..f88ce95892 100644 --- a/contrib/fedora/rpm/NetworkManager.spec +++ b/contrib/fedora/rpm/NetworkManager.spec @@ -389,6 +389,11 @@ by nm-connection-editor and nm-applet in a non-graphical environment. %else --with-modem-manager-1=no \ %endif +%if 0%{?with_wifi} + --enable-wifi=yes \ +%else + --enable-wifi=no \ +%endif %if 0%{?with_wimax} --enable-wimax=yes \ %else @@ -576,8 +581,6 @@ fi %files wifi %defattr(-,root,root,0755) %{_libdir}/%{name}/libnm-device-plugin-wifi.so -%else -%exclude %{_libdir}/%{name}/libnm-device-plugin-wifi.so %endif %if 0%{?with_wwan} |