c8b866b
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
c8b866b
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
c8b866b
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
c8b866b
c8b866b
Name:           python-eventlet
174a22b
Version:        0.17.3
0c1488a
Release:        1%{?dist}
c8b866b
Summary:        Highly concurrent networking library
c8b866b
Group:          Development/Libraries
c8b866b
License:        MIT
c8b866b
URL:            http://eventlet.net
c8b866b
Source0:        http://pypi.python.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
e7db6dc
c8b866b
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c8b866b
BuildArch:      noarch
c8b866b
BuildRequires:  python2-devel
c8b866b
BuildRequires:  python-setuptools
c8b866b
%if 0%{?fedora} > 8
c8b866b
BuildRequires:  python-sphinx
c8b866b
BuildRequires:  python-greenlet
c8b866b
%endif
c8b866b
Requires:       python-greenlet
c8b866b
c8b866b
%description
c8b866b
Eventlet is a networking library written in Python. It achieves high
c8b866b
scalability by using non-blocking io while at the same time retaining
c8b866b
high programmer usability by using coroutines to make the non-blocking
c8b866b
io operations appear blocking at the source code level.
c8b866b
3b5e46c
%if 0%{?fedora} > 8
c8b866b
%package doc
c8b866b
Summary:        Documentation for %{name}
c8b866b
Group:          Documentation
c8b866b
Requires:       %{name} = %{version}-%{release}
c8b866b
c8b866b
%description doc
c8b866b
Documentation for the python-eventlet package.
c8b866b
%endif
c8b866b
c8b866b
c8b866b
%prep
c8b866b
%setup -q -n eventlet-%{version}
c8b866b
find -name '.*' -type f -exec rm {} \;
77ce091
sed -i -e 's/
//g' tests/mock.py
c8b866b
c8b866b
%build
c8b866b
%{__python} setup.py build
3b5e46c
%if 0%{?fedora} > 8
c8b866b
pushd doc
c8b866b
make html
c8b866b
rm _build/html/.buildinfo
c8b866b
popd
3b5e46c
chmod a-x tests/mock.py
c8b866b
%endif
c8b866b
c8b866b
%install
c8b866b
rm -rf %{buildroot}
c8b866b
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
0c1488a
rm -rf %{buildroot}/%{python_sitelib}/tests
f722c10
c8b866b
%clean
c8b866b
rm -rf %{buildroot}
c8b866b
c8b866b
c8b866b
%files
c8b866b
%defattr(-,root,root,-)
fbd5c68
%doc AUTHORS LICENSE NEWS README.rst
c8b866b
%{python_sitelib}/eventlet
c8b866b
%{python_sitelib}/eventlet*.egg-info
c8b866b
3b5e46c
%if 0%{?fedora} > 8
c8b866b
%files doc
c8b866b
%defattr(-,root,root,-)
3b5e46c
%doc doc/_build/html examples tests
c8b866b
%endif
c8b866b
c8b866b
%changelog
174a22b
* Tue Apr 14 2015 Pádraig Brady <pbrady@redhat.com> - 0.17.3-1
174a22b
- Latest upstream
174a22b
fbd5c68
* Tue Mar 31 2015 Pádraig Brady <pbrady@redhat.com> - 0.17.1-1
fbd5c68
- Latest upstream
fbd5c68
0c1488a
* Tue Sep 02 2014 Pádraig Brady <pbrady@redhat.com> - 0.15.2-1
0c1488a
- Latest upstream
0c1488a
1a9adcb
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.0-2
1a9adcb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1a9adcb
c9064e9
* Mon Oct 28 2013 Alan Pevec <apevec@redhat.com> - 0.14.0-1
c9064e9
- Update to 0.14.0
c9064e9
7fb9ccb
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-2
7fb9ccb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7fb9ccb
06766a7
* Wed Feb 20 2013 Pádraig Brady 
06766a7
- Update to 0.12.0
06766a7
eb7a935
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.17-3
eb7a935
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
eb7a935
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
57ba79d
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.16-7
57ba79d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
57ba79d
87088d3
* Tue Mar 27 2012 Pádraig Brady 
87088d3
- Update patch to avoid leak of _DummyThread objects
87088d3
bf1fe4b
* Mon Mar  5 2012 Pádraig Brady 
bf1fe4b
- Fix patch to avoid leak of _DummyThread objects
bf1fe4b
0150951
* Wed Feb 29 2012 Pádraig Brady 
0150951
- Apply a patch to avoid leak of _DummyThread objects
0150951
b4c840b
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.16-3
b4c840b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b4c840b
e7db6dc
* 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
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
c8b866b
* Wed Apr 14 2010 Lev Shamardin <shamardin@gmail.com> - 0.9.7-1
c8b866b
- Initial package version.