|
|
bbefa47 |
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
|
|
|
bbefa47 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
bbefa47 |
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
bbefa47 |
|
|
|
bbefa47 |
Name: python-eventlet
|
|
|
f722c10 |
Version: 0.9.17
|
|
|
d5dd03c |
Release: 2%{?dist}
|
|
|
bbefa47 |
Summary: Highly concurrent networking library
|
|
|
bbefa47 |
Group: Development/Libraries
|
|
|
bbefa47 |
License: MIT
|
|
|
bbefa47 |
URL: http://eventlet.net
|
|
|
bbefa47 |
Source0: http://pypi.python.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
|
|
|
e7db6dc |
|
|
|
e7db6dc |
# From https://bitbucket.org/which_linden/eventlet/issue/89/add-a-timeout-argument-to-subprocesspopen
|
|
|
e7db6dc |
# Required on RHEL >= 6.1 where python 2.6 has the backported timeout support
|
|
|
e7db6dc |
Patch1: subprocess_timeout.patch
|
|
|
d5dd03c |
# From https://bitbucket.org/which_linden/eventlet/issue/92/eventletgreen-override-of-oswaitpid
|
|
|
d5dd03c |
Patch2: waitpid_zombies.patch
|
|
|
e7db6dc |
|
|
|
bbefa47 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
bbefa47 |
BuildArch: noarch
|
|
|
bbefa47 |
BuildRequires: python2-devel
|
|
|
bbefa47 |
BuildRequires: python-setuptools
|
|
|
c97462e |
BuildRequires: python-sphinx10
|
|
|
bbefa47 |
BuildRequires: python-greenlet
|
|
|
bbefa47 |
Requires: python-greenlet
|
|
|
bbefa47 |
|
|
|
bbefa47 |
%description
|
|
|
bbefa47 |
Eventlet is a networking library written in Python. It achieves high
|
|
|
bbefa47 |
scalability by using non-blocking io while at the same time retaining
|
|
|
bbefa47 |
high programmer usability by using coroutines to make the non-blocking
|
|
|
bbefa47 |
io operations appear blocking at the source code level.
|
|
|
bbefa47 |
|
|
|
bbefa47 |
%package doc
|
|
|
bbefa47 |
Summary: Documentation for %{name}
|
|
|
bbefa47 |
Group: Documentation
|
|
|
bbefa47 |
Requires: %{name} = %{version}-%{release}
|
|
|
bbefa47 |
|
|
|
bbefa47 |
%description doc
|
|
|
bbefa47 |
Documentation for the python-eventlet package.
|
|
|
bbefa47 |
|
|
|
bbefa47 |
|
|
|
bbefa47 |
%prep
|
|
|
bbefa47 |
%setup -q -n eventlet-%{version}
|
|
|
bbefa47 |
find -name '.*' -type f -exec rm {} \;
|
|
|
77ce091 |
sed -i -e 's/
//g' tests/mock.py
|
|
|
77ce091 |
sed -i -e '1d' eventlet/support/greendns.py
|
|
|
e7db6dc |
%patch1 -p1 -b .subprocess_timeout
|
|
|
d5dd03c |
%patch2 -p1 -b .waitpid_zombies
|
|
|
bbefa47 |
|
|
|
bbefa47 |
%build
|
|
|
bbefa47 |
%{__python} setup.py build
|
|
|
c97462e |
export PYTHONPATH="$( pwd ):$PYTHONPATH"
|
|
|
bbefa47 |
pushd doc
|
|
|
c97462e |
make SPHINXBUILD=sphinx-1.0-build html
|
|
|
bbefa47 |
rm _build/html/.buildinfo
|
|
|
bbefa47 |
popd
|
|
|
3b5e46c |
chmod a-x tests/mock.py
|
|
|
bbefa47 |
|
|
|
bbefa47 |
%install
|
|
|
bbefa47 |
rm -rf %{buildroot}
|
|
|
bbefa47 |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
f722c10 |
|
|
|
bbefa47 |
%clean
|
|
|
bbefa47 |
rm -rf %{buildroot}
|
|
|
bbefa47 |
|
|
|
bbefa47 |
|
|
|
bbefa47 |
%files
|
|
|
bbefa47 |
%defattr(-,root,root,-)
|
|
|
bbefa47 |
%doc AUTHORS LICENSE NEWS README README.twisted
|
|
|
bbefa47 |
%{python_sitelib}/eventlet
|
|
|
bbefa47 |
%{python_sitelib}/eventlet*.egg-info
|
|
|
bbefa47 |
|
|
|
bbefa47 |
%files doc
|
|
|
bbefa47 |
%defattr(-,root,root,-)
|
|
|
3b5e46c |
%doc doc/_build/html examples tests
|
|
|
bbefa47 |
|
|
|
bbefa47 |
%changelog
|
|
|
d5dd03c |
* Mon Nov 12 2012 Pádraig Brady
|
|
|
d5dd03c |
- fix waitpid() override to not return immediately
|
|
|
d5dd03c |
|
|
|
f722c10 |
* Fri Aug 03 2012 Pádraig Brady
|
|
|
f722c10 |
- Update to 0.9.17
|
|
|
f722c10 |
|
|
|
e9af27f |
* Tue Mar 27 2012 Pádraig Brady
|
|
|
e9af27f |
- Update patch to avoid leak of _DummyThread objects
|
|
|
e9af27f |
|
|
|
a4a2a6c |
* Wed Feb 29 2012 Pádraig Brady
|
|
|
a4a2a6c |
- Apply a patch to avoid leak of _DummyThread objects
|
|
|
a4a2a6c |
|
|
|
cccd39a |
* Wed Nov 09 2011 Pádraig Brady
|
|
|
e7db6dc |
- Apply a patch to support subprocess.Popen implementations
|
|
|
e7db6dc |
that accept the timeout parameter, which is the case on RHEL >= 6.1
|
|
|
e7db6dc |
|
|
|
c97462e |
* Fri Oct 21 2011 Pádraig Brady <P@draigBrady.com> - 0.9.16-2
|
|
|
c97462e |
- Changed python-sphinx build dependency to python-sphinx10
|
|
|
c97462e |
|
|
|
5eef7d9 |
* Sat Aug 27 2011 Kevin Fenzi <kevin@scrye.com> - 0.9.16-1
|
|
|
5eef7d9 |
- Update to 0.9.16
|
|
|
5eef7d9 |
|
|
|
65ecbc8 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.12-2
|
|
|
65ecbc8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
65ecbc8 |
|
|
|
77ce091 |
* Wed Sep 08 2010 Lev Shamardin <shamardin@gmail.com> - 0.9.12-1
|
|
|
77ce091 |
- Updated to version 0.9.12.
|
|
|
77ce091 |
|
|
|
3b5e46c |
* Wed Jul 28 2010 Lev Shamardin <shamardin@gmail.com> - 0.9.9-1
|
|
|
3b5e46c |
- Updated to version 0.9.9.
|
|
|
3b5e46c |
|
|
|
bbefa47 |
* Wed Apr 14 2010 Lev Shamardin <shamardin@gmail.com> - 0.9.7-1
|
|
|
bbefa47 |
- Initial package version.
|