From 08e8b3bd1353ec79dde3c3d8e5fa4853e997c79c Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 14 May 2014 11:04:07 +0200 Subject: [PATCH] contrib/rpm: update spec file adding new wifi plugin NetworkManager-wifi Commit a544aa374eaf603916b4b00a732378d8c96392c1 extracts the wifi device into a shared library. Update the (currently broken) default spec file to build the new package NetworkManager-wifi. Signed-off-by: Thomas Haller --- contrib/fedora/rpm/NetworkManager.spec | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec index 33f185bd25..91cdfb7f3d 100644 --- a/contrib/fedora/rpm/NetworkManager.spec +++ b/contrib/fedora/rpm/NetworkManager.spec @@ -30,6 +30,7 @@ %global with_adsl 1 %global with_bluetooth 1 +%global with_wifi 1 %global with_wimax 0 %global with_wwan 1 @@ -173,6 +174,18 @@ This package contains NetworkManager support for Bluetooth devices. %endif +%if 0%{?with_wifi} +%package wifi +Summary: Wifi plugin for NetworkManager +Group: System Environment/Base +Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} +Obsoletes: NetworkManager < 1:0.9.9.1-2 + +%description wifi +This package contains NetworkManager support for Wifi and OLPC devices. +%endif + + %if 0%{?with_wwan} %package wwan Summary: Mobile broadband device plugin for NetworkManager @@ -448,6 +461,14 @@ fi %exclude %{_libdir}/%{name}/libnm-device-plugin-bluetooth.so %endif +%if 0%{?with_wifi} +%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} %files wwan %defattr(-,root,root,0755)