contrib/rpm: update spec file adding new wifi plugin NetworkManager-wifi

Commit a544aa374e 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 <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-05-14 11:04:07 +02:00
parent a2430f01d6
commit 08e8b3bd13

View file

@ -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)