diff --git a/python-retrying.changes b/python-retrying.changes index cf4e18f..08e9d5e 100644 --- a/python-retrying.changes +++ b/python-retrying.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 22 06:13:42 UTC 2017 - tbechtold@suse.com + +- convert to singlespec + ------------------------------------------------------------------- Wed Jan 7 15:37:09 UTC 2015 - tbechtold@suse.com diff --git a/python-retrying.spec b/python-retrying.spec index 722e4a9..b07a7c5 100644 --- a/python-retrying.spec +++ b/python-retrying.spec @@ -1,7 +1,7 @@ # # spec file for package python-retrying # -# Copyright (c) 2015 SUSE LINUX Products 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-retrying Version: 1.3.3 Release: 0 @@ -24,14 +25,13 @@ License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/rholder/retrying Source: https://pypi.python.org/packages/source/r/retrying/retrying-%{version}.tar.gz -BuildRequires: python-devel +BuildRequires: %{python_module devel} +BuildRequires: python-rpm-macros Requires: python-six >= 1.7.0 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 Retrying is an Apache 2.0 licensed general-purpose retrying library, written in @@ -41,12 +41,12 @@ Python, to simplify the task of adding retry behavior to just about anything. %setup -q -n retrying-%{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 AUTHORS.rst LICENSE README.rst %{python_sitelib}/*