diff --git a/.gitignore b/.gitignore index e69de29..509e9a3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/iowait-0.2.tar.gz diff --git a/python-iowait.spec b/python-iowait.spec new file mode 100644 index 0000000..4bc8d6f --- /dev/null +++ b/python-iowait.spec @@ -0,0 +1,72 @@ +%global modname iowait + +Name: python-%{modname} +Version: 0.2 +Release: 1%{?dist} +Summary: Platform-independent module for I/O completion events + +License: LGPLv3+ +URL: https://pypi.python.org/pypi/iowait +Source0: https://files.pythonhosted.org/packages/source/%(n=%{modname}; echo ${n:0:1})/%{modname}/%{modname}-%{version}.tar.gz + +BuildArch: noarch + +%global _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. + +%description %{_description} + +%package -n python2-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{modname}} +BuildRequires: python2-devel + +%description -n python2-%{modname} %{_description} + +Python 2 version. + +%package -n python3-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +BuildRequires: python3-devel + +%description -n python3-%{modname} %{_description} + +Python 3 version. + +%prep +%autosetup -n %{modname}-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%{__python2} test.py -v +%{__python3} test.py -v + +%files -n python2-%{modname} +%license COPYING.LESSER +%{python2_sitelib}/%{modname}-*.egg-info +%{python2_sitelib}/%{modname}.py* + +%files -n python3-%{modname} +%license COPYING.LESSER +%{python3_sitelib}/%{modname}-*.egg-info +%{python3_sitelib}/%{modname}.py +%{python3_sitelib}/__pycache__/%{modname}.* + +%changelog +* Wed Aug 31 2016 Igor Gnatenko - 0.2-1 +- Initial package diff --git a/sources b/sources index e69de29..6d193f0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f49ca7766fe4a67e03a731e575614f87 iowait-0.2.tar.gz