From 1459924751a457244e896b46cb87594e8e56417aea9c6fba79f556f160c815fc Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 19 Jul 2011 12:39:05 +0000 Subject: [PATCH] - Initial version OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gevent?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + gevent-0.13.6.tar.gz | 3 ++ python-gevent.changes | 5 ++++ python-gevent.spec | 69 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 101 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 gevent-0.13.6.tar.gz create mode 100644 python-gevent.changes create mode 100644 python-gevent.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/gevent-0.13.6.tar.gz b/gevent-0.13.6.tar.gz new file mode 100644 index 0000000..98685d4 --- /dev/null +++ b/gevent-0.13.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb85f7cd39e097b893b8f262ea8b0370a9d478b2083fc15b394a1a3cae7b7d99 +size 289805 diff --git a/python-gevent.changes b/python-gevent.changes new file mode 100644 index 0000000..d9bd0a4 --- /dev/null +++ b/python-gevent.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Jul 19 12:23:20 UTC 2011 - saschpe@suse.de + +- Initial version + diff --git a/python-gevent.spec b/python-gevent.spec new file mode 100644 index 0000000..034eab1 --- /dev/null +++ b/python-gevent.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-gevent +# +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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 +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: python-gevent +Version: 0.13.6 +Release: 0 +Url: http://www.gevent.org/ +Summary: Python network library that uses greenlet and libevent +License: MIT +Group: Development/Languages/Python +Source: http://pypi.python.org/packages/source/g/gevent/gevent-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-cython +BuildRequires: python-devel +BuildRequires: libevent-devel +%if 0%{?suse_version} +%py_requires +%endif +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +%description +Gevent is a Python networking library that uses greenlet to provide synchronous +API on top of a libevent event loop. Features include: + + * Fast event loop based on libevent. + * Lightweight execution units based on greenlet. + * Familiar API that re-uses concepts from the Python standard library. + * Cooperative sockets with ssl support. + * DNS queries performed through libevent-dns. + * Ability to use standard library and 3rd party modules written for standard + blocking sockets + * Fast WSGI server based on libevent-http. + +gevent is inspired by eventlet but features more consistent API, simpler +implementation and better performance. Read why others use gevent and check +out the list of the open source projects based on gevent. + +%prep +%setup -q -n gevent-%{version} + +%build +CFLAGS="%{optflags}" cython setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc AUTHORS changelog.rst LICENSE LICENSE.pyevent README.rst TODO doc examples +%{python_sitearch}/* + +%changelog