diff --git a/python-gevent.changes b/python-gevent.changes index 45ec186..0a89fe8 100644 --- a/python-gevent.changes +++ b/python-gevent.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Mar 27 11:41:44 UTC 2012 - saschpe@suse.de + +- Run testsuite +- Require python-greenlet +- Simplify macro usage + ------------------------------------------------------------------- Fri Nov 18 14:17:34 UTC 2011 - saschpe@suse.de diff --git a/python-gevent.spec b/python-gevent.spec index 72ba8cf..9a9a006 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -1,7 +1,7 @@ # # spec file for package python-gevent # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 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 @@ -11,10 +11,11 @@ # 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 @@ -24,12 +25,15 @@ 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-devel BuildRequires: libevent-devel -%if 0%{?suse_version} -%py_requires +#BuildRequires: python-Sphinx +BuildRequires: python-devel +BuildRequires: python-greenlet +BuildRequires: python-nose +Requires: python-greenlet +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %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 @@ -52,14 +56,19 @@ out the list of the open source projects based on gevent. %setup -q -n gevent-%{version} %build -CFLAGS="%{optflags}" python setup.py build +CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build +#cd doc && make html && rm _build/html/.buildinfo # Build HTML documentation %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%check +nosetests + %files %defattr(-,root,root,-) -%doc AUTHORS changelog.rst LICENSE LICENSE.pyevent README.rst TODO doc examples +%doc AUTHORS changelog.rst LICENSE* README.rst TODO examples +#%%doc doc/_build/html %{python_sitearch}/* %changelog