Summary: Linux WPA Supplicant (IEEE 802.1X, WPA, WPA2, RSN, IEEE 802.11i) Name: wpa_supplicant Version: 2.6 Release: %mkrel 2 #-#2.6-2pclos017 #-#now remove systemd #-#all changes from now (rel 2) are commented with #-# in this spec License: GPL Group: Communications URL: http://hostap.epitest.fi/wpa_supplicant/ Source0: http://hostap.epitest.fi/releases/wpa_supplicant-%{version}.tar.xz Source1: wpa-config Patch0: wpa_supplicant-openssl-more-algs.patch Patch2: wpa_supplicant-0.6.3-WEP232.patch #from fc42 # distro specific customization for Qt4 build tools, not suitable for upstream Patch6: wpa_supplicant-gui-qt4.patch # Less aggressive roaming; signal strength is wildly variable # dcbw states (2015-04): # "upstream doesn't like that patch so it's been discussed and I think rejected" Patch8: rh837402-less-aggressive-roaming.patch # Fix a security issue - rh #rh1241907 # http://w1.fi/security/2015-5/0001-NFC-Fix-payload-length-validation-in-NDEF-record-par.patch Patch11: rh1241907-NFC-Fix-payload-length-validation-in-NDEF-record-par.patch # Don't override D-Bus policy for other daemons # http://lists.infradead.org/pipermail/hostap/2015-October/034036.html Patch12: 0001-wpa_supplicant-don-t-do-deny-send_interface-.-in-dbu.patch BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: dbus-devel BuildRequires: libopenssl-devel BuildRequires: pcsc-lite-devel BuildRequires: doxygen BuildRequires: qt4-devel BuildRequires: madwifi-source Requires(pre): rpm-helper Requires(post): rpm-helper %description wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in the client stations. It implements key negotiation with a WPA Authenticator and it controls the roaming and IEEE 802.11 authentication/association of the wlan driver. wpa_supplicant is designed to be a "daemon" program that runs in the background and acts as the backend component controlling the wireless connection. wpa_supplicant supports separate frontend programs and an example text-based frontend, wpa_cli, is included with wpa_supplicant. Supported WPA/IEEE 802.11i features: * WPA-PSK ("WPA-Personal") * WPA with EAP (e.g., with RADIUS authentication server) ("WPA-Enterprise") * key management for CCMP, TKIP, WEP104, WEP40 * WPA and full IEEE 802.11i/RSN/WPA2 * RSN: PMKSA caching, pre-authentication See the project web site or the eap_testing.txt file for a complete list of supported EAP methods (IEEE 802.1X Supplicant), supported drivers and interoperability testing. %package -n wpa_gui Group: System/Configuration/Networking Summary: Graphical tool for wpa_supplicant %description -n wpa_gui wpa_gui is a QT frontend for wpa_supplicant. wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). %prep %setup -q -n %{name}-%{version} %patch0 -p1 -b .more-openssl-algs %patch2 -p1 -b .WEP232 ###%patch3 -p1 -b .quiet-scan-results-msg %patch6 -p1 -b .qt4 %patch8 -p1 -b .rh837402-less-aggressive-roaming ##%patch12 -p1 -b .dbus-policy pushd wpa_supplicant perl -pi -e '$_ = "# $_" if /^\s*network\s*=\s*{/ .. /^\s*}/' wpa_supplicant.conf cp %{SOURCE1} .config popd %build %setup_compile_flags export CFLAGS+=" -fno-strict-aliasing -fPIC" CXXFLAGS+=" -fno-strict-aliasing" FFLAGS+=" -fno-strict-aliasing" export BINDIR=%{_sbindir} pushd wpa_supplicant %make %make eapol_test pushd wpa_gui-qt4 %{_libdir}/qt4/bin/qmake %make popd popd %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d/ mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services/ pushd wpa_supplicant cp wpa_supplicant %{buildroot}/%{_sbindir} cp wpa_cli %{buildroot}/%{_sbindir} cp wpa_passphrase %{buildroot}/%{_sbindir} cp wpa_supplicant.conf %{buildroot}%{_sysconfdir} cp wpa_gui-qt4/wpa_gui %{buildroot}%{_sbindir} cp eapol_test %{buildroot}%{_sbindir} install -m 0644 dbus/dbus-wpa_supplicant.conf \ %{buildroot}%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf install -m 0644 dbus/fi.epitest.hostap.WPASupplicant.service \ %{buildroot}%{_datadir}/dbus-1/system-services install -m 0644 dbus/fi.w1.wpa_supplicant1.service \ %{buildroot}%{_datadir}/dbus-1/system-services mkdir -p %{buildroot}%{_mandir}/man{5,8} cp doc/docbook/*.8 %{buildroot}%{_mandir}/man8 cp doc/docbook/*.5 %{buildroot}%{_mandir}/man5 popd #-#2.6-2pclos017 sed -i s/"SystemdService=wpa_supplicant.service"//g %{buildroot}%{_datadir}/dbus-1/system-services/*.service %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc wpa_supplicant/ChangeLog wpa_supplicant/README wpa_supplicant/eap_testing.txt wpa_supplicant/todo.txt %doc wpa_supplicant/README-WPS %doc wpa_supplicant/examples/*.conf %attr(0600,root,daemon) %config(noreplace) %{_sysconfdir}/wpa_supplicant.conf %{_sbindir}/wpa_cli %{_sbindir}/wpa_passphrase %{_sbindir}/wpa_supplicant %{_sbindir}/eapol_test %{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf %{_datadir}/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service %{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service %{_mandir}/man8/* %{_mandir}/man5/* %files -n wpa_gui %{_sbindir}/wpa_gui %changelog * Fri Jan 27 2017 onkelho 2.6-2pclos2017 - rebuild --#-#2.6-2pclos017 - #-#now remove systemd - #-#all changes from now (rel 2) are commented with #-# in this spec * Wed Jan 25 2017 onkelho 2.6-1pclos2017 - new version * Sat Dec 15 2012 TerryN 1.0-3pclos2012 - Fix incorrect paths in dbus service files * Mon Oct 29 2012 Neal 1.0-2pclos2012 - process * Sun Oct 28 2012 Ken 1.0-2pclos2012 - rebuild add patch0 * Thu Oct 18 2012 Neal 1.0-1pclos2012 - process * Wed Oct 17 2012 gseaman 1.0-1gseaman2012 - update to 1.0 - removed patch0, not needed * Wed Jun 01 2011 Texstar 0.7.3-1pclos2011 - 0.7.3