Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
83b43078e5 dist-git conversion 2010-07-29 10:22:32 +00:00
Silas Sewell
00e4646677 - Update to 0.13.0 2010-07-15 01:54:44 +00:00
Silas Sewell
217c336cfb Initial import 2010-05-05 21:52:24 +00:00
9b86e8c1c6 Initialize branch F-13 for python-gevent 2010-04-24 00:42:39 +00:00
5 changed files with 68 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
gevent-0.13.0.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: python-gevent
# $Id$
NAME := python-gevent
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

66
python-gevent.spec Normal file
View file

@ -0,0 +1,66 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%global _use_internal_dependency_generator 0
%global __find_provides %{_rpmconfigdir}/find-provides | grep -v core.so
%global __find_requires %{_rpmconfigdir}/find-requires | grep -v core.so
%global upstream_name gevent
Name: python-%{upstream_name}
Version: 0.13.0
Release: 1%{?dist}
Summary: A coroutine-based Python networking library
Group: Development/Languages
License: MIT
URL: http://www.gevent.org/
Source0: http://pypi.python.org/packages/source/g/gevent/gevent-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
BuildRequires: libevent-devel >= 1.4.0
Requires: python-greenlet
%description
gevent is a coroutine-based Python networking library that uses greenlet to
provide a high-level synchronous API on top of libevent event loop.
Features include:
* convenient API around greenlets
* familiar synchronization primitives (gevent.event, gevent.queue)
* socket module that cooperates
* WSGI server on top of libevent-http
* DNS requests done through libevent-dns
* monkey patching utility to get pure Python modules to cooperate
%prep
%setup -q -n %{upstream_name}-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
# Fix non-standard-executable-perm error
%{__chmod} 0755 %{buildroot}%{python_sitearch}/%{upstream_name}/core.so
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitearch}/%{upstream_name}
%{python_sitearch}/%{upstream_name}-%{version}-*.egg-info
%changelog
* Wed Jul 14 2010 Silas Sewell <silas@sewell.ch> - 0.13.0-1
- Update to 0.13.0
* Fri Apr 23 2010 Silas Sewell <silas@sewell.ch> - 0.12.2-2
- Remove setuptools requirement
* Wed Mar 17 2010 Silas Sewell <silas@sewell.ch> - 0.12.2-1
- Initial build

View file

@ -0,0 +1 @@
8f687002c6fcbdf8b323319f451ba4af gevent-0.13.0.tar.gz