4 Summary: A Python extension for wpa_supplicant/hostapd control interface access
7 Release: 0.%{snap}.%{rel}
9 Group: Development/Languages/Python
10 Source0: http://mirror.leaseweb.com/archlinux/other/python-wpactrl/python-wpactrl-%{snap}.tar.gz
11 # Source0-md5: 8d45739aa9bfa1110a4570bb5ceda768
12 URL: http://projects.otaku42.de/wiki/PythonWpaCtrl
13 BuildRequires: python-devel
14 BuildRequires: rpm-pythonprov
15 BuildRequires: rpmbuild(macros) >= 1.219
18 Suggests: wpa_supplicant
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 A Python extension for wpa_supplicant/hostapd control interface
25 wpa_supplicant/hostapd implements a control interface that can be used
26 by external programs to control the operations of the
27 wpa_supplicant/hostapd daemon and to get status information and event
30 The WPACtrl class provided by python-wpactrl allows Python programs to
31 use helper functions to connect with the UNIX domain socket form of
32 control interface and communicate with a wpa_supplicant/hostapd
36 %setup -q -n %{name}-%{snap}
39 export CFLAGS="%{rpmcflags}"
40 %{__python} setup.py build
43 rm -rf $RPM_BUILD_ROOT
44 %{__python} setup.py install \
46 --root=$RPM_BUILD_ROOT
48 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
49 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc README example.py
58 %attr(755,root,root) %{py_sitedir}/*.so
59 %if "%{py_ver}" > "2.4"
60 %{py_sitedir}/%{module}-*.egg-info