diff --git a/python-zake.changes b/python-zake.changes index 9a0b67f..0c7bca5 100644 --- a/python-zake.changes +++ b/python-zake.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 22 14:38:02 UTC 2017 - tbechtold@suse.com + +- convert to singlespec + ------------------------------------------------------------------- Tue Nov 15 10:10:15 UTC 2016 - dmueller@suse.com diff --git a/python-zake.spec b/python-zake.spec index 629a4eb..6a68c3c 100644 --- a/python-zake.spec +++ b/python-zake.spec @@ -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 @@ Summary: Testing utilities for the kazoo library 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 @@ A python package that works to provide a nice set of testing utilities for the k %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}/*