From 3fb25b879bccf07e4991a21416763830eb8145025bf9e11d800076170022efb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 10 May 2018 13:50:56 +0000 Subject: [PATCH] Accepting request 606165 from devel:languages:python:singlespec-staging - singlespec auto-conversion - add COPYING to doc section - Add missing Requires - Initial package OBS-URL: https://build.opensuse.org/request/show/606165 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aioeventlet?expand=0&rev=4 --- python-aioeventlet.changes | 6 ++++++ python-aioeventlet.spec | 19 +++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) 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}/*