diff --git a/python-aioeventlet.changes b/python-aioeventlet.changes index 83a0dbd..cb94677 100644 --- a/python-aioeventlet.changes +++ b/python-aioeventlet.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 24 13:32:39 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Fri Aug 7 08:51:32 UTC 2015 - dmueller@suse.com @@ -13,3 +18,4 @@ Sat May 16 14:08:29 UTC 2015 - dmueller@suse.com - Initial package + diff --git a/python-aioeventlet.spec b/python-aioeventlet.spec index 2b6dd63..6d2b2c9 100644 --- a/python-aioeventlet.spec +++ b/python-aioeventlet.spec @@ -1,7 +1,7 @@ # # spec file for package python-aioeventlet # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-aioeventlet Version: 0.4 Release: 0 @@ -23,16 +24,14 @@ Summary: asyncio event loop scheduling callbacks in eventlet License: Apache-2.0 Group: Development/Languages/Python Url: http://aioeventlet.readthedocs.org/ -Source: https://pypi.python.org/packages/source/a/aioeventlet/aioeventlet-%{version}.tar.gz -BuildRequires: python-devel +Source: https://files.pythonhosted.org/packages/source/a/aioeventlet/aioeventlet-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: python-rpm-macros Requires: python-eventlet Requires: python-trollius >= 0.3 BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description aioeventlet implements the asyncio API (PEP 3156) on top of eventlet. It makes @@ -52,12 +51,12 @@ parallel. %setup -q -n aioeventlet-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %doc README COPYING %{python_sitelib}/*