From dcc95a37fdc0008061843ab6a06a98d947780f1a32fdf38c36bbcf8854a5031a Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 22 Aug 2017 06:32:50 +0000 Subject: [PATCH] Accepting request 518050 from home:tbechtold:branches:devel:languages:python - convert to singlespec OBS-URL: https://build.opensuse.org/request/show/518050 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pika-pool?expand=0&rev=4 --- python-pika-pool.changes | 5 +++++ python-pika-pool.spec | 18 ++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/python-pika-pool.changes b/python-pika-pool.changes index aa7ceea..9582b99 100644 --- a/python-pika-pool.changes +++ b/python-pika-pool.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 22 06:30:08 UTC 2017 - tbechtold@suse.com + +- convert to singlespec + ------------------------------------------------------------------- Wed Apr 13 19:59:02 UTC 2016 - dmueller@suse.com diff --git a/python-pika-pool.spec b/python-pika-pool.spec index b3b7e48..3b95cc3 100644 --- a/python-pika-pool.spec +++ b/python-pika-pool.spec @@ -1,7 +1,7 @@ # # spec file for package python-pika-pool # -# Copyright (c) 2016 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 @@ -24,12 +24,14 @@ License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/bninja/pika-pool Source: https://pypi.python.org/packages/source/p/pika-pool/pika-pool-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-pika >= 0.9 -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pika >= 0.9} +BuildRequires: %{python_module setuptools} Requires: python-pika >= 0.9 BuildArch: noarch +%python_subpackages + %description Pika connection pooling inspired by: @@ -42,14 +44,14 @@ Typically you'll go with local `shovels `_ %setup -q -n pika-pool-%{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.rst -%{python_sitelib}/pika* +%{python_sitelib}/* %changelog