]> git.pld-linux.org Git - packages/python-wpactrl.git/commitdiff
- new
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 6 Nov 2009 20:17:49 +0000 (20:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-wpactrl.spec -> 1.1

python-wpactrl.spec [new file with mode: 0644]

diff --git a/python-wpactrl.spec b/python-wpactrl.spec
new file mode 100644 (file)
index 0000000..fdcebda
--- /dev/null
@@ -0,0 +1,62 @@
+%define        module  wpactrl
+%define                snap    20090609
+%define                rel             1
+Summary:       A Python extension for wpa_supplicant/hostapd control interface access
+Name:          python-%{module}
+Version:       1.0.7
+Release:       0.%{snap}.%{rel}
+License:       GPL v2
+Group:         Development/Languages/Python
+Source0:       http://mirror.leaseweb.com/archlinux/other/python-wpactrl/python-wpactrl-%{snap}.tar.gz
+# Source0-md5: 8d45739aa9bfa1110a4570bb5ceda768
+URL:           http://projects.otaku42.de/wiki/PythonWpaCtrl
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires:      python
+Requires:      python-modules
+Suggests:      hostapd
+Suggests:      wpa_supplicant
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A Python extension for wpa_supplicant/hostapd control interface
+access.
+
+wpa_supplicant/hostapd implements a control interface that can be used
+by external programs to control the operations of the
+wpa_supplicant/hostapd daemon and to get status information and event
+notifications.
+
+The WPACtrl class provided by python-wpactrl allows Python programs to
+use helper functions to connect with the UNIX domain socket form of
+control interface and communicate with a wpa_supplicant/hostapd
+daemon.
+
+%prep
+%setup -q -n %{name}-%{snap}
+
+%build
+export CFLAGS="%{rpmcflags}"
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README example.py
+%attr(755,root,root) %{py_sitedir}/*.so
+%if "%{py_ver}" > "2.4"
+%{py_sitedir}/%{module}-*.egg-info
+%endif
This page took 0.094675 seconds and 4 git commands to generate.