Hello community, here is the log from the commit of package python-zake for openSUSE:Factory checked in at 2017-09-05 15:14:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-zake (Old) and /work/SRC/openSUSE:Factory/.python-zake.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-zake" Tue Sep 5 15:14:48 2017 rev:8 rq:518324 version:0.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-zake/python-zake.changes 2016-12-08 00:30:09.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-zake.new/python-zake.changes 2017-09-05 15:14:50.932368794 +0200 @@ -1,0 +2,5 @@ +Tue Aug 22 14:38:02 UTC 2017 - tbechtold@suse.com + +- convert to singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-zake.spec ++++++ --- /var/tmp/diff_new_pack.b3RDPy/_old 2017-09-05 15:14:51.576278284 +0200 +++ /var/tmp/diff_new_pack.b3RDPy/_new 2017-09-05 15:14:51.576278284 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-zake # -# 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 @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-zake Version: 0.2.2 Release: 0 @@ -23,21 +24,20 @@ License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/yahoo/Zake -Source: https://pypi.io/packages/source/z/zake/zake-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-kazoo -BuildRequires: python-nose -BuildRequires: python-setuptools -BuildRequires: python-six -BuildRequires: python-testtools +Source: https://files.pythonhosted.org/packages/source/z/zake/zake-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module kazoo} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: %{python_module testtools} +BuildRequires: python-rpm-macros Requires: python-kazoo Requires: python-six 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 A python package that works to provide a nice set of testing utilities for the kazoo library. @@ -46,15 +46,16 @@ %setup -q -n zake-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check -nosetests +# disable tests until https://github.com/yahoo/Zake/issues/21 is solved +# %%python_exec %{_bindir}/nosetests -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.rst %{python_sitelib}/*