diff --git a/python-pika.changes b/python-pika.changes index 12c90af..d4b3c16 100644 --- a/python-pika.changes +++ b/python-pika.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 22 06:27:00 UTC 2017 - tbechtold@suse.com + +- switch to singlespec + ------------------------------------------------------------------- Wed Mar 16 11:20:03 UTC 2016 - tbechtold@suse.com diff --git a/python-pika.spec b/python-pika.spec index a2f6a73..93aec56 100644 --- a/python-pika.spec +++ b/python-pika.spec @@ -1,7 +1,7 @@ # # spec file for package python-pika # -# 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 @@ -25,15 +25,14 @@ Url: http://pika.github.com/ Summary: Pika Python AMQP Client Library License: BSD-3-Clause Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/p/pika/pika-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/pika/pika-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools -%if 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%else +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildArch: noarch -%endif + +%python_subpackages %description Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that @@ -45,12 +44,12 @@ should also work with other AMQP 0-9-1 brokers. %setup -q -n %{mod_name}-%{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 LICENSE # You may have to add additional files here (documentation and binaries mostly)