Hello community, here is the log from the commit of package python-pika for openSUSE:Factory checked in at 2017-08-22 11:11:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pika (Old) and /work/SRC/openSUSE:Factory/.python-pika.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pika" Tue Aug 22 11:11:35 2017 rev:7 rq:518057 version:0.10.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pika/python-pika.changes 2016-05-04 08:19:03.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pika.new/python-pika.changes 2017-08-22 11:11:37.723477386 +0200 @@ -1,0 +2,5 @@ +Tue Aug 22 06:27:00 UTC 2017 - tbecht...@suse.com + +- switch to singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pika.spec ++++++ --- /var/tmp/diff_new_pack.Ch9tmE/_old 2017-08-22 11:11:38.671343920 +0200 +++ /var/tmp/diff_new_pack.Ch9tmE/_new 2017-08-22 11:11:38.671343920 +0200 @@ -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 @@ -18,6 +18,7 @@ %define mod_name pika +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-%{mod_name} Version: 0.10.0 Release: 0 @@ -25,15 +26,14 @@ 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 +45,12 @@ %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)