packages: python-wpactrl/python-wpactrl.spec (NEW) - new

glen glen at pld-linux.org
Fri Nov 6 21:17:55 CET 2009


Author: glen                         Date: Fri Nov  6 20:17:54 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/python-wpactrl:
   python-wpactrl.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-wpactrl/python-wpactrl.spec
diff -u /dev/null packages/python-wpactrl/python-wpactrl.spec:1.1
--- /dev/null	Fri Nov  6 21:17:55 2009
+++ packages/python-wpactrl/python-wpactrl.spec	Fri Nov  6 21:17:49 2009
@@ -0,0 +1,72 @@
+# $Revision$, $Date$
+%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
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/11/06 20:17:49  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list