commit ba76202f8d9499df8ea6ff9fa73d83e10d143d48
Author: Elan Ruusamäe <[email protected]>
Date:   Sat Mar 9 14:46:23 2013 +0200

    new, version 0.1

 python-iowait.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
---
diff --git a/python-iowait.spec b/python-iowait.spec
new file mode 100644
index 0000000..43ddbcf
--- /dev/null
+++ b/python-iowait.spec
@@ -0,0 +1,50 @@
+%define        module  iowait
+Summary:       Platform-independent module for I/O completion events
+Name:          python-%{module}
+Version:       0.1
+Release:       1
+License:       LGPL v3
+Group:         Libraries/Python
+Source0:       
https://pypi.python.org/packages/source/i/iowait/iowait-%{version}.tar.gz
+# Source0-md5: f928f3c54cfa2c054e889abe936cd775
+URL:           https://launchpad.net/python-iowait
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires:      python-modules
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Different operating systems provide different ways to wait for I/O
+completion events: there's select(), poll(), epoll() and kqueue(). For
+cross-platform applications it can be a pain to support all this
+system functions, especially because each one provides a different
+interface.
+
+IOWait solves this problem by providing a unified interface and using
+always the best and faster function available in the platform. Its
+only limitation is that, on Windows, it only works for sockets.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --skip-build \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%{py_sitescriptdir}/iowait.py[co]
+%{py_sitescriptdir}/iowait-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-iowait.git/commitdiff/ba76202f8d9499df8ea6ff9fa73d83e10d143d48

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to