]> git.pld-linux.org Git - packages/wpa_supplicant.git/blame - wpa_supplicant.spec
- up to 2.6
[packages/wpa_supplicant.git] / wpa_supplicant.spec
CommitLineData
df27e1a5 1# TODO:
41537a2c 2# - consider using CONFIG_PRIVSEP
486800af 3# - icon for wpa_gui
51864755
JB
4#
5# Conditional build
19aba961 6%bcond_without dbus # don't build D-BUS control interface
080360b4 7%bcond_without gui # don't build gui
f66a8987 8
bde40618 9Summary: Linux WPA/WPA2/RSN/IEEE 802.1X supplicant
47cec9ef 10Summary(pl.UTF-8): Suplikant WPA/WPA2/RSN/IEEE 802.1X dla Linuksa
bde40618 11Name: wpa_supplicant
5a8cc4fa
AM
12Version: 2.6
13Release: 1
bde40618 14License: GPL v2
bdc271c3 15Group: Networking
b08e6453 16Source0: http://w1.fi/releases/%{name}-%{version}.tar.gz
5a8cc4fa 17# Source0-md5: 091569eb4440b7d7f2b4276dbfc03c3c
bde40618 18Source1: %{name}.config
486800af 19Source2: %{name}-wpa_gui.desktop
29638b4d 20Source3: %{name}.tmpfiles
f66a8987 21Source4: %{name}.service
bde40618 22Patch0: %{name}-makefile.patch
19721d40 23Patch1: %{name}-OPTCFLAGS.patch
30872be4 24Patch2: %{name}-lrelease.patch
4771e8c9 25# http://www.linuxwimax.org/Download
bd214586
JB
26Patch3: %{name}-0.7.2-generate-libeap-peer.patch
27Patch4: dbus-services.patch
b08e6453 28URL: http://w1.fi/wpa_supplicant/
19aba961 29%{?with_dbus:BuildRequires: dbus-devel}
170ebb19 30BuildRequires: libnl-devel >= 1:3.2
2af19e57 31BuildRequires: ncurses-devel
bde40618 32BuildRequires: openssl-devel
8f834f15 33BuildRequires: pkgconfig
c299b6ab 34BuildRequires: rpmbuild(macros) >= 1.647
bed81893 35%if %{with gui}
4ea51389 36BuildRequires: QtGui-devel
b194f08b 37BuildRequires: qt4-build
f66a8987 38BuildRequires: qt4-linguist
4ea51389 39BuildRequires: qt4-qmake
bed81893 40%endif
bde40618 41BuildRequires: readline-devel
53789b76 42BuildRequires: sed >= 4.0
f85cfd26 43Requires: rc-scripts >= 0.4.1.24
f66a8987 44Requires: systemd-units >= 38
bde40618 45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47%description
bdc271c3
AG
48wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
49802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is
50used in the client stations. It implements key negotiation with a WPA
51Authenticator and it controls the roaming and IEEE 802.11
bde40618 52authentication/association of the wlan driver.
53
855d62cf 54wpa_supplicant is designed to be a "daemon" program that runs in the
55background and acts as the backend component controlling the wireless
56connection. Support for separate frontend programs is included and an
57example text-based frontend, wpa_cli, is included with wpa_supplicant.
58
59Supported WPA/IEEE 802.11i features:
60- WPA-PSK ("WPA-Personal")
90dcf215
JB
61- WPA with EAP (e.g., with RADIUS authentication server)
62 ("WPA-Enterprise") (currently, EAP-TLS and EAP-PEAP/MSCHAPv2 are
63 supported with an integrated IEEE 802.1X Supplicant; other EAP types
64 may be used with an external program, Xsupplicant)
855d62cf 65- key management for CCMP, TKIP, WEP104, WEP40
66- RSN/WPA2 (IEEE 802.11i)
67
6c208807
JR
68%description -l pl.UTF-8
69wpa_supplicant to suplikant WPA z obsługą WPA oraz WPA2 (IEEE 802.11i
70/ RSN). Suplikant to element IEEE 802.1X/WPA używany na stacjach
71klienckich. Implementuje negocjację kluczy z elementem
72uwierzytelniającym WPA (WPA Authenticator) i kontroluje roaming oraz
90dcf215
JB
73uwierzytelnianie/kojarzenie sterownika wlan zgodnie z IEEE 802.11.
74
6c208807
JR
75wpa_supplicant jest zaprojektowany tak, by był wspólnym programem
76działającym w tle i działa jako element backendu sterujący połączeniem
77bezprzewodowym. Dostępna jest obsługa oddzielnych programów
78frontendowych, a w pakiecie wpa_supplicant załączony jest prosty
90dcf215
JB
79frontend tekstowy - wpa_cli.
80
6c208807 81Obsługiwane możliwości WPA/IEEE 802.11i:
90dcf215 82- WPA-PSK ("WPA-Personal")
6c208807
JR
83- WPA z EAP (np. z serwerem uwierzytleniającym RADIUS)
84 ("WPA-Enterprise") (aktualnie EAP-TLS i EAP-PEAP/MSCHAPv2 są
85 obsługiwane przez załączonego suplikanta IEEE 802.1X; inne rodzaje EAP
86 mogą być używane przez zewnętrzny program - Xsupplicant)
87- zarządzanie kluczy dla CCMP, TKIP, WEP104, WEP40
90dcf215 88- RSN/WPA2 (IEEE 802.11i)
bde40618 89
df27e1a5
PG
90%package -n wpa_gui
91Summary: Linux WPA/WPA2/RSN/IEEE 802.1X supplicant GUI
47cec9ef 92Summary(pl.UTF-8): Graficzny interfejs suplikanta WPA/WPA2/RSN/IEEE 802.1X dla Linuksa
df27e1a5 93Group: X11/Applications/Networking
fcaa0e79 94Requires: %{name} = %{version}-%{release}
df27e1a5
PG
95
96%description -n wpa_gui
fcaa0e79
JB
97Linux WPA/WPA2/RSN/IEEE 802.1X supplicant GUI.
98
6c208807 99%description -n wpa_gui -l pl.UTF-8
fcaa0e79 100Graficzny interfejs suplikanta WPA/WPA2/RSN/IEEE 802.1X dla Linuksa.
df27e1a5 101
4771e8c9
MB
102%package -n libeap
103Summary: EAP Peer library
104Summary(pl.UTF-8): Biblioteka EAP Peer
105Group: Libraries
106
107%description -n libeap
108EAP Peer library.
109
110%description -n libeap -l pl.UTF-8
111Biblioteka EAP Peer.
112
113%package -n libeap-devel
114Summary: Development files for eap library
115Summary(pl.UTF-8): Pliki programistyczne dla biblioteki eap
116Group: Development/Libraries
117Requires: libeap = %{version}-%{release}
118
119%description -n libeap-devel
120Development files for eap library.
121
122%description -n libeap-devel -l pl.UTF-8
123Pliki programistyczne dla biblioteki eap.
124
bde40618 125%prep
126%setup -q
127%patch0 -p1
0d44a591 128%patch1 -p1
30872be4 129%patch2 -p0
bd214586 130%patch3 -p1
4771e8c9 131%patch4 -p1
bde40618 132
53789b76
MB
133%{__sed} -i -e 's,@LIB@,%{_lib},' src/eap_peer/libeap0.pc
134
8b73356c 135cp -p %{SOURCE1} wpa_supplicant/.config
bde40618 136
19aba961
MB
137%if %{with dbus}
138echo 'CONFIG_CTRL_IFACE_DBUS=y' >> wpa_supplicant/.config
f1257d27
MB
139echo 'CONFIG_CTRL_IFACE_DBUS_NEW=y' >> wpa_supplicant/.config
140echo 'CONFIG_CTRL_IFACE_DBUS_INTRO=y' >> wpa_supplicant/.config
19aba961
MB
141%endif
142
bde40618 143%build
01adb5d5 144%{__make} -C wpa_supplicant \
5bc65950 145 V=1 \
2af19e57 146 CC="%{__cc}" \
43e2545a 147 BINDIR="%{_sbindir}" \
c35099eb 148 LDFLAGS="%{rpmldflags}" \
de1f0e4e 149 OPTCFLAGS="%{rpmcppflags} %{rpmcflags}"
bde40618 150
35d6fc22
PG
151# eapol_test:
152%{__make} -C wpa_supplicant eapol_test \
5bc65950 153 V=1 \
35d6fc22
PG
154 CC="%{__cc}" \
155 LDFLAGS="%{rpmldflags}" \
19721d40 156 OPTCFLAGS="%{rpmcppflags} %{rpmcflags}"
35d6fc22 157
bed81893 158%if %{with gui}
b194f08b 159cd wpa_supplicant/wpa_gui-qt4
de1f0e4e
JB
160qmake-qt4 -o Makefile wpa_gui.pro \
161 QMAKE_CXX="%{__cxx}" \
162 QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \
163 QMAKE_LFLAGS_RELEASE="%{rpmldflags}"
b194f08b 164cd ../..
01adb5d5 165%{__make} -C wpa_supplicant wpa_gui-qt4 \
5bc65950 166 V=1 \
b194f08b 167 QTDIR=%{_libdir}/qt4 \
de1f0e4e 168 UIC=%{_bindir}/uic-qt4
bed81893 169%endif
df27e1a5 170
4771e8c9
MB
171%{__make} -C src/eap_peer clean
172%{__make} -C src/eap_peer \
173 CC="%{__cc}" \
de1f0e4e
JB
174 CFLAGS="%{rpmcppflags} %{rpmcflags} -MMD -Wall $(pkg-config --cflags libnl-3.0)" \
175 LDFLAGS="%{rpmldflags} -shared"
4771e8c9 176
bde40618 177%install
178rm -rf $RPM_BUILD_ROOT
29638b4d 179install -d $RPM_BUILD_ROOT{%{_mandir}/man{5,8},%{_bindir},%{_sbindir},%{_desktopdir},/var/run/%{name},%{_sysconfdir}} \
f66a8987 180 $RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{systemdunitdir}}
5f8b0164 181
43e2545a
ER
182install -p wpa_supplicant/wpa_cli $RPM_BUILD_ROOT%{_sbindir}
183install -p wpa_supplicant/wpa_passphrase $RPM_BUILD_ROOT%{_sbindir}
184install -p wpa_supplicant/wpa_supplicant $RPM_BUILD_ROOT%{_sbindir}
4771e8c9 185
43e2545a 186cp -p wpa_supplicant/wpa_supplicant.conf $RPM_BUILD_ROOT%{_sysconfdir}
bde40618 187
43e2545a
ER
188cp -p wpa_supplicant/doc/docbook/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
189cp -p wpa_supplicant/doc/docbook/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
75221d1f 190
41537a2c
JB
191# program exists with CONFIG_PRIVSEP only
192%{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/wpa_priv.8
193
19aba961
MB
194%if %{with dbus}
195install -d $RPM_BUILD_ROOT{%{_sysconfdir}/dbus-1/system.d,%{_datadir}/dbus-1/system-services}
43e2545a
ER
196cp -p wpa_supplicant/dbus/dbus-wpa_supplicant.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf
197cp -p wpa_supplicant/dbus/*.service $RPM_BUILD_ROOT%{_datadir}/dbus-1/system-services
f66a8987 198cp -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
19aba961
MB
199%endif
200
bed81893 201%if %{with gui}
43e2545a
ER
202install -p wpa_supplicant/wpa_gui-qt4/wpa_gui $RPM_BUILD_ROOT%{_bindir}
203cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/wpa_gui.desktop
bed81893 204%endif
df27e1a5 205
43e2545a
ER
206install -p wpa_supplicant/eapol_test $RPM_BUILD_ROOT%{_bindir}
207cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
29638b4d 208
4771e8c9 209%{__make} -C src/eap_peer install \
53789b76
MB
210 DESTDIR=$RPM_BUILD_ROOT \
211 LIBDIR=%{_libdir}
4771e8c9 212
bde40618 213%clean
214rm -rf $RPM_BUILD_ROOT
215
c299b6ab
JR
216%post
217%systemd_reload
218%systemd_service_restart wpa_supplicant.service
219
220%preun
221%systemd_preun wpa_supplicant.service
222
223%postun
224%systemd_reload
225
41537a2c
JB
226%post -n libeap -p /sbin/ldconfig
227%postun -n libeap -p /sbin/ldconfig
4771e8c9 228
bde40618 229%files
230%defattr(644,root,root,755)
5f8b0164 231%doc wpa_supplicant/{ChangeLog,README,eap_testing.txt,todo.txt}
b7ea9f85 232%doc wpa_supplicant/{*wpa_supplicant.conf,examples}
bdc271c3 233%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
35d6fc22 234%attr(755,root,root) %{_bindir}/eapol_test
41537a2c
JB
235%attr(755,root,root) %{_sbindir}/wpa_cli
236%attr(755,root,root) %{_sbindir}/wpa_passphrase
237%attr(755,root,root) %{_sbindir}/wpa_supplicant
9d11e01d 238%attr(750,root,root) %ghost %dir /var/run/%{name}
f66a8987 239%{systemdtmpfilesdir}/%{name}.conf
41537a2c 240%{_mandir}/man5/wpa_supplicant.conf.5*
bb5696df 241%{_mandir}/man8/eapol_test.8*
41537a2c
JB
242%{_mandir}/man8/wpa_background.8*
243%{_mandir}/man8/wpa_cli.8*
244%{_mandir}/man8/wpa_passphrase.8*
245%{_mandir}/man8/wpa_supplicant.8*
19aba961 246%if %{with dbus}
4ea51389 247%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/wpa_supplicant.conf
19aba961 248%{_datadir}/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service
f1257d27 249%{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service
f66a8987 250%{systemdunitdir}/%{name}.service
19aba961 251%endif
df27e1a5 252
bed81893 253%if %{with gui}
df27e1a5
PG
254%files -n wpa_gui
255%defattr(644,root,root,755)
256%attr(755,root,root) %{_bindir}/wpa_gui
41537a2c 257%{_mandir}/man8/wpa_gui.8*
486800af 258%{_desktopdir}/wpa_gui.desktop
bed81893 259%endif
4771e8c9
MB
260
261%files -n libeap
262%defattr(644,root,root,755)
263%attr(755,root,root) %{_libdir}/libeap.so.*.*.*
41537a2c 264%attr(755,root,root) %ghost %{_libdir}/libeap.so.0
4771e8c9
MB
265
266%files -n libeap-devel
267%defattr(644,root,root,755)
268%attr(755,root,root) %{_libdir}/libeap.so
269%{_includedir}/eap_peer
270%{_pkgconfigdir}/libeap0.pc
This page took 0.13155 seconds and 4 git commands to generate.