2010-12-04 15:53:00 +00:00
|
|
|
#
|
2011-02-03 08:43:01 +00:00
|
|
|
# spec file for package python-eventlet
|
2010-12-04 15:53:00 +00:00
|
|
|
#
|
2011-09-02 11:41:27 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-12-04 15:53:00 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
2011-09-02 11:41:27 +00:00
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
2010-12-04 15:53:00 +00:00
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-09-02 11:41:27 +00:00
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
Name: python-eventlet
|
2011-09-02 11:41:27 +00:00
|
|
|
Version: 0.9.16
|
|
|
|
Release: 0
|
|
|
|
Url: http://eventlet.net
|
2010-12-04 15:53:00 +00:00
|
|
|
Summary: Highly concurrent networking library
|
|
|
|
License: MIT
|
2011-09-02 11:41:27 +00:00
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source: http://pypi.python.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
|
2010-12-04 15:53:00 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-09-02 11:41:27 +00:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-distribute
|
|
|
|
BuildRequires: python-greenlet
|
|
|
|
BuildRequires: python-Sphinx
|
|
|
|
Requires: python-greenlet
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%py_requires
|
2010-12-04 15:53:00 +00:00
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2011-09-02 11:41:27 +00:00
|
|
|
%endif
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%description
|
2011-09-02 11:41:27 +00:00
|
|
|
Eventlet is a concurrent networking library for Python that allows you to
|
|
|
|
change how you run your code, not how you write it.
|
|
|
|
|
|
|
|
It uses epoll or libevent for highly scalable non-blocking I/O. Coroutines
|
|
|
|
ensure that the developer uses a blocking style of programming that is similar
|
|
|
|
to threading, but provide the benefits of non-blocking I/O. The event dispatch
|
|
|
|
is implicit, which means you can easily use Eventlet from the Python
|
|
|
|
interpreter, or as a small part of a larger application.
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%package doc
|
2011-09-02 11:41:27 +00:00
|
|
|
Summary: Highly concurrent networking library - Documentation
|
2010-12-04 15:53:00 +00:00
|
|
|
Group: Development/Libraries/Python
|
2011-09-02 11:41:27 +00:00
|
|
|
Requires: %{name} = %{version}
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for the python-eventlet package.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n eventlet-%{version}
|
2011-09-02 11:41:27 +00:00
|
|
|
sed -i "1d" eventlet/support/greendns.py # Fix non-executable script
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%build
|
2011-09-02 11:41:27 +00:00
|
|
|
python setup.py build
|
2010-12-04 15:53:00 +00:00
|
|
|
pushd doc
|
2011-09-02 11:41:27 +00:00
|
|
|
make html && rm _build/html/.buildinfo
|
2010-12-04 15:53:00 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
2011-09-02 11:41:27 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
2011-09-02 11:41:27 +00:00
|
|
|
%doc doc/_build/html examples
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS LICENSE NEWS README README.twisted
|
|
|
|
%{python_sitelib}/*
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%changelog
|