]>
Commit | Line | Data |
---|---|---|
df27e1a5 | 1 | # TODO: |
bdc271c3 | 2 | # - wpa_gui can be built with qt4 - bcond? |
486800af | 3 | # - icon for wpa_gui |
bdc271c3 | 4 | # - reverse madwifi bcond when appropriate packages will be available on ftp |
495a1931 | 5 | # / as of madwifi-ng > r1499 and kernel > 2.6.14 wext driver could be |
6 | # used instead of madwifi - so madwifi bcond will become obsolete soon / | |
51864755 JB |
7 | # |
8 | # Conditional build | |
bdc271c3 | 9 | %bcond_with madwifi # with madwifi support |
080360b4 | 10 | %bcond_without gui # don't build gui |
04647465 | 11 | # |
f25b25b9 AM |
12 | # sync archlist with madwifi.spec |
13 | %ifnarch %{x8664} arm %{ix86} mips ppc xscale | |
14 | %undefine with_madwifi | |
15 | %endif | |
04647465 | 16 | # |
bde40618 | 17 | Summary: Linux WPA/WPA2/RSN/IEEE 802.1X supplicant |
47cec9ef | 18 | Summary(pl.UTF-8): Suplikant WPA/WPA2/RSN/IEEE 802.1X dla Linuksa |
bde40618 | 19 | Name: wpa_supplicant |
2342e5a0 | 20 | Version: 0.5.8 |
21 | Release: 1 | |
bde40618 | 22 | License: GPL v2 |
bdc271c3 | 23 | Group: Networking |
bde40618 | 24 | Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz |
2342e5a0 | 25 | # Source0-md5: 7bb22f2bcdeed54b3fb5407d6d8bc9bb |
bde40618 | 26 | Source1: %{name}.config |
486800af | 27 | Source2: %{name}-wpa_gui.desktop |
bde40618 | 28 | Patch0: %{name}-makefile.patch |
0d44a591 | 29 | Patch1: %{name}-0.4.7_dscape-02.patch |
7d1011e3 | 30 | Patch2: %{name}-OPTCFLAGS.patch |
bde40618 | 31 | URL: http://hostap.epitest.fi/wpa_supplicant/ |
f25b25b9 | 32 | %{?with_madwifi:BuildRequires: madwifi-devel} |
2af19e57 | 33 | BuildRequires: ncurses-devel |
bde40618 | 34 | BuildRequires: openssl-devel |
bed81893 | 35 | %if %{with gui} |
df27e1a5 | 36 | BuildRequires: qmake |
fe593bae | 37 | BuildRequires: qt-devel |
bed81893 | 38 | %endif |
bde40618 | 39 | BuildRequires: readline-devel |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
42 | %description | |
bdc271c3 AG |
43 | wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE |
44 | 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is | |
45 | used in the client stations. It implements key negotiation with a WPA | |
46 | Authenticator and it controls the roaming and IEEE 802.11 | |
bde40618 | 47 | authentication/association of the wlan driver. |
48 | ||
855d62cf | 49 | wpa_supplicant is designed to be a "daemon" program that runs in the |
50 | background and acts as the backend component controlling the wireless | |
51 | connection. Support for separate frontend programs is included and an | |
52 | example text-based frontend, wpa_cli, is included with wpa_supplicant. | |
53 | ||
54 | Supported WPA/IEEE 802.11i features: | |
55 | - WPA-PSK ("WPA-Personal") | |
90dcf215 JB |
56 | - WPA with EAP (e.g., with RADIUS authentication server) |
57 | ("WPA-Enterprise") (currently, EAP-TLS and EAP-PEAP/MSCHAPv2 are | |
58 | supported with an integrated IEEE 802.1X Supplicant; other EAP types | |
59 | may be used with an external program, Xsupplicant) | |
855d62cf | 60 | - key management for CCMP, TKIP, WEP104, WEP40 |
61 | - RSN/WPA2 (IEEE 802.11i) | |
62 | ||
6c208807 JR |
63 | %description -l pl.UTF-8 |
64 | wpa_supplicant to suplikant WPA z obsługą WPA oraz WPA2 (IEEE 802.11i | |
65 | / RSN). Suplikant to element IEEE 802.1X/WPA używany na stacjach | |
66 | klienckich. Implementuje negocjację kluczy z elementem | |
67 | uwierzytelniającym WPA (WPA Authenticator) i kontroluje roaming oraz | |
90dcf215 JB |
68 | uwierzytelnianie/kojarzenie sterownika wlan zgodnie z IEEE 802.11. |
69 | ||
6c208807 JR |
70 | wpa_supplicant jest zaprojektowany tak, by był wspólnym programem |
71 | działającym w tle i działa jako element backendu sterujący połączeniem | |
72 | bezprzewodowym. Dostępna jest obsługa oddzielnych programów | |
73 | frontendowych, a w pakiecie wpa_supplicant załączony jest prosty | |
90dcf215 JB |
74 | frontend tekstowy - wpa_cli. |
75 | ||
6c208807 | 76 | Obsługiwane możliwości WPA/IEEE 802.11i: |
90dcf215 | 77 | - WPA-PSK ("WPA-Personal") |
6c208807 JR |
78 | - WPA z EAP (np. z serwerem uwierzytleniającym RADIUS) |
79 | ("WPA-Enterprise") (aktualnie EAP-TLS i EAP-PEAP/MSCHAPv2 są | |
80 | obsługiwane przez załączonego suplikanta IEEE 802.1X; inne rodzaje EAP | |
81 | mogą być używane przez zewnętrzny program - Xsupplicant) | |
82 | - zarządzanie kluczy dla CCMP, TKIP, WEP104, WEP40 | |
90dcf215 | 83 | - RSN/WPA2 (IEEE 802.11i) |
bde40618 | 84 | |
df27e1a5 PG |
85 | %package -n wpa_gui |
86 | Summary: Linux WPA/WPA2/RSN/IEEE 802.1X supplicant GUI | |
47cec9ef | 87 | Summary(pl.UTF-8): Graficzny interfejs suplikanta WPA/WPA2/RSN/IEEE 802.1X dla Linuksa |
df27e1a5 | 88 | Group: X11/Applications/Networking |
fcaa0e79 | 89 | Requires: %{name} = %{version}-%{release} |
df27e1a5 PG |
90 | |
91 | %description -n wpa_gui | |
fcaa0e79 JB |
92 | Linux WPA/WPA2/RSN/IEEE 802.1X supplicant GUI. |
93 | ||
6c208807 | 94 | %description -n wpa_gui -l pl.UTF-8 |
fcaa0e79 | 95 | Graficzny interfejs suplikanta WPA/WPA2/RSN/IEEE 802.1X dla Linuksa. |
df27e1a5 | 96 | |
bde40618 | 97 | %prep |
98 | %setup -q | |
99 | %patch0 -p1 | |
0d44a591 | 100 | %patch1 -p1 |
7d1011e3 | 101 | %patch2 -p1 |
bde40618 | 102 | |
103 | install %{SOURCE1} .config | |
104 | ||
f25b25b9 AM |
105 | %if %{with madwifi} |
106 | echo 'CONFIG_DRIVER_MADWIFI=y' >> .config | |
107 | %endif | |
108 | ||
bde40618 | 109 | %build |
2af19e57 AM |
110 | %{__make} \ |
111 | CC="%{__cc}" \ | |
ff93f915 | 112 | LDFLAGS="%{rpmldflags}" \ |
7d1011e3 | 113 | OPTCFLAGS="%{rpmcflags}" |
bde40618 | 114 | |
bed81893 | 115 | %if %{with gui} |
df27e1a5 PG |
116 | %{__make} wpa_gui \ |
117 | QTDIR=/usr \ | |
118 | UIC=%{_bindir}/uic \ | |
119 | CC="%{__cc}" \ | |
dda8d679 | 120 | CXX="%{__cxx}" \ |
ff93f915 | 121 | LDFLAGS="%{rpmldflags}" \ |
7d1011e3 | 122 | OPTCFLAGS="%{rpmcflags}" |
bed81893 | 123 | %endif |
df27e1a5 | 124 | |
bde40618 | 125 | %install |
126 | rm -rf $RPM_BUILD_ROOT | |
ef197961 | 127 | install -d $RPM_BUILD_ROOT{%{_mandir}/man{5,8},%{_bindir},%{_desktopdir},/var/run/%{name}} |
bde40618 | 128 | %{__make} install \ |
129 | DESTDIR=$RPM_BUILD_ROOT | |
130 | ||
75221d1f AM |
131 | install doc/docbook/*.5 $RPM_BUILD_ROOT%{_mandir}/man5 |
132 | install doc/docbook/*.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
133 | ||
bed81893 | 134 | %if %{with gui} |
bdc271c3 | 135 | install wpa_gui/wpa_gui $RPM_BUILD_ROOT%{_bindir} |
486800af | 136 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/wpa_gui.desktop |
bed81893 | 137 | %endif |
df27e1a5 | 138 | |
bde40618 | 139 | %clean |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
142 | %files | |
143 | %defattr(644,root,root,755) | |
75221d1f | 144 | %doc ChangeLog README eap_testing.txt todo.txt |
bdc271c3 | 145 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf |
bde40618 | 146 | %attr(755,root,root) %{_sbindir}/* |
3fe691ff | 147 | %attr(750,root,root) %dir /var/run/%{name} |
75221d1f | 148 | %{_mandir}/man[58]/* |
df27e1a5 | 149 | |
bed81893 | 150 | %if %{with gui} |
df27e1a5 PG |
151 | %files -n wpa_gui |
152 | %defattr(644,root,root,755) | |
153 | %attr(755,root,root) %{_bindir}/wpa_gui | |
486800af | 154 | %{_desktopdir}/wpa_gui.desktop |
bed81893 | 155 | %endif |