Sascha Peilicke 2012-03-27 11:42:00 +00:00 committed by Git OBS Bridge
parent 1ec01e3638
commit e5b9cccdb5
2 changed files with 22 additions and 8 deletions

View File

@ -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 Fri Nov 18 14:17:34 UTC 2011 - saschpe@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-gevent # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,7 +16,6 @@
# #
Name: python-gevent Name: python-gevent
Version: 0.13.6 Version: 0.13.6
Release: 0 Release: 0
@ -26,12 +25,15 @@ License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/g/gevent/gevent-%{version}.tar.gz Source: http://pypi.python.org/packages/source/g/gevent/gevent-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: libevent-devel BuildRequires: libevent-devel
%if 0%{?suse_version} #BuildRequires: python-Sphinx
%py_requires 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 %endif
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%description %description
Gevent is a Python networking library that uses greenlet to provide synchronous Gevent is a Python networking library that uses greenlet to provide synchronous
@ -54,14 +56,19 @@ out the list of the open source projects based on gevent.
%setup -q -n gevent-%{version} %setup -q -n gevent-%{version}
%build %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 %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
nosetests
%files %files
%defattr(-,root,root,-) %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}/* %{python_sitearch}/*
%changelog %changelog