]> git.pld-linux.org Git - packages/wpa_supplicant.git/blame - wpa_supplicant.spec
- 0.5.8
[packages/wpa_supplicant.git] / wpa_supplicant.spec
CommitLineData
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 17Summary: Linux WPA/WPA2/RSN/IEEE 802.1X supplicant
47cec9ef 18Summary(pl.UTF-8): Suplikant WPA/WPA2/RSN/IEEE 802.1X dla Linuksa
bde40618 19Name: wpa_supplicant
2342e5a0 20Version: 0.5.8
21Release: 1
bde40618 22License: GPL v2
bdc271c3 23Group: Networking
bde40618 24Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
2342e5a0 25# Source0-md5: 7bb22f2bcdeed54b3fb5407d6d8bc9bb
bde40618 26Source1: %{name}.config
486800af 27Source2: %{name}-wpa_gui.desktop
bde40618 28Patch0: %{name}-makefile.patch
0d44a591 29Patch1: %{name}-0.4.7_dscape-02.patch
7d1011e3 30Patch2: %{name}-OPTCFLAGS.patch
bde40618 31URL: http://hostap.epitest.fi/wpa_supplicant/
f25b25b9 32%{?with_madwifi:BuildRequires: madwifi-devel}
2af19e57 33BuildRequires: ncurses-devel
bde40618 34BuildRequires: openssl-devel
bed81893 35%if %{with gui}
df27e1a5 36BuildRequires: qmake
fe593bae 37BuildRequires: qt-devel
bed81893 38%endif
bde40618 39BuildRequires: readline-devel
40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42%description
bdc271c3
AG
43wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
44802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is
45used in the client stations. It implements key negotiation with a WPA
46Authenticator and it controls the roaming and IEEE 802.11
bde40618 47authentication/association of the wlan driver.
48
855d62cf 49wpa_supplicant is designed to be a "daemon" program that runs in the
50background and acts as the backend component controlling the wireless
51connection. Support for separate frontend programs is included and an
52example text-based frontend, wpa_cli, is included with wpa_supplicant.
53
54Supported 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
64wpa_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
66klienckich. Implementuje negocjację kluczy z elementem
67uwierzytelniającym WPA (WPA Authenticator) i kontroluje roaming oraz
90dcf215
JB
68uwierzytelnianie/kojarzenie sterownika wlan zgodnie z IEEE 802.11.
69
6c208807
JR
70wpa_supplicant jest zaprojektowany tak, by był wspólnym programem
71działającym w tle i działa jako element backendu sterujący połączeniem
72bezprzewodowym. Dostępna jest obsługa oddzielnych programów
73frontendowych, a w pakiecie wpa_supplicant załączony jest prosty
90dcf215
JB
74frontend tekstowy - wpa_cli.
75
6c208807 76Obsł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
86Summary: Linux WPA/WPA2/RSN/IEEE 802.1X supplicant GUI
47cec9ef 87Summary(pl.UTF-8): Graficzny interfejs suplikanta WPA/WPA2/RSN/IEEE 802.1X dla Linuksa
df27e1a5 88Group: X11/Applications/Networking
fcaa0e79 89Requires: %{name} = %{version}-%{release}
df27e1a5
PG
90
91%description -n wpa_gui
fcaa0e79
JB
92Linux WPA/WPA2/RSN/IEEE 802.1X supplicant GUI.
93
6c208807 94%description -n wpa_gui -l pl.UTF-8
fcaa0e79 95Graficzny 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
103install %{SOURCE1} .config
104
f25b25b9
AM
105%if %{with madwifi}
106echo '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
126rm -rf $RPM_BUILD_ROOT
ef197961 127install -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
131install doc/docbook/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
132install doc/docbook/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
133
bed81893 134%if %{with gui}
bdc271c3 135install wpa_gui/wpa_gui $RPM_BUILD_ROOT%{_bindir}
486800af 136install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/wpa_gui.desktop
bed81893 137%endif
df27e1a5 138
bde40618 139%clean
140rm -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
This page took 0.073318 seconds and 4 git commands to generate.