]> git.pld-linux.org Git - packages/wpa_supplicant.git/commitdiff
- madwifi bcond
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 4 Oct 2005 18:22:11 +0000 (18:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    wpa_supplicant.spec -> 1.10

wpa_supplicant.spec

index eba08074fe3c0db80cb0e369456ba83fc5335da0..17f83a6ee5ef40fade6f9fb81881a44eefc64cda 100644 (file)
@@ -1,3 +1,10 @@
+%bcond_without madfiwi
+
+# sync archlist with madwifi.spec
+%ifnarch %{x8664} arm %{ix86} mips ppc xscale
+%undefine      with_madwifi
+%endif
+
 Summary:       Linux WPA/WPA2/RSN/IEEE 802.1X supplicant
 Summary(pl):   Suplikant WPA/WPA2/RSN/IEEE 802.1X dla Linuksa
 Name:          wpa_supplicant
@@ -10,7 +17,7 @@ Source0:      http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
 Source1:       %{name}.config
 Patch0:                %{name}-makefile.patch
 URL:           http://hostap.epitest.fi/wpa_supplicant/
-BuildRequires: madwifi-devel
+%{?with_madwifi:BuildRequires: madwifi-devel}
 BuildRequires: ncurses-devel
 BuildRequires: openssl-devel
 BuildRequires: readline-devel
@@ -66,6 +73,10 @@ sed -i -e 's#-O2#$(OPT)#g' Makefile
 
 install %{SOURCE1} .config
 
+%if %{with madwifi}
+echo 'CONFIG_DRIVER_MADWIFI=y' >> .config
+%endif
+
 %build
 %{__make} \
        CC="%{__cc}" \
This page took 0.072606 seconds and 4 git commands to generate.