a6825d3
%global modname iowait
a6825d3
a6825d3
Name:           python-%{modname}
a6825d3
Version:        0.2
c588aac
Release:        %autorelease
a6825d3
Summary:        Platform-independent module for I/O completion events
a6825d3
a6825d3
License:        LGPLv3+
a6825d3
URL:            https://pypi.python.org/pypi/iowait
a6825d3
Source0:        https://files.pythonhosted.org/packages/source/%(n=%{modname}; echo ${n:0:1})/%{modname}/%{modname}-%{version}.tar.gz
a6825d3
a6825d3
BuildArch:      noarch
a6825d3
a6825d3
%global _description \
a6825d3
Different operating systems provide different ways to wait for I/O completion\
a6825d3
events: there’s select(), poll(), epoll() and kqueue(). For cross-platform\
a6825d3
applications it can be a pain to support all this system functions, especially\
a6825d3
because each one provides a different interface.\
a6825d3
\
a6825d3
IOWait solves this problem by providing a unified interface and using always\
a6825d3
the best and faster function available in the platform. Its only limitation\
a6825d3
is that, on Windows, it only works for sockets.
a6825d3
a6825d3
%description %{_description}
a6825d3
a6825d3
%package -n python3-%{modname}
c9e178f
a6825d3
Summary:        %{summary}
a6825d3
%{?python_provide:%python_provide python3-%{modname}}
c9e178f
a6825d3
BuildRequires:  python3-devel
1d0417e
BuildRequires:  python3-setuptools
a6825d3
a6825d3
%description -n python3-%{modname} %{_description}
a6825d3
a6825d3
Python 3 version.
a6825d3
a6825d3
%prep
a6825d3
%autosetup -n %{modname}-%{version}
a6825d3
a6825d3
%build
a6825d3
%py3_build
a6825d3
a6825d3
%install
a6825d3
%py3_install
a6825d3
a6825d3
%check
a6825d3
%{__python3} test.py -v
a6825d3
a6825d3
%files -n python3-%{modname}
a6825d3
%license COPYING.LESSER
c9e178f
%doc README
c9e178f
a6825d3
%{python3_sitelib}/%{modname}-*.egg-info
a6825d3
%{python3_sitelib}/%{modname}.py
a6825d3
%{python3_sitelib}/__pycache__/%{modname}.*
a6825d3
a6825d3
%changelog
c588aac
%autochangelog