From 9a5d44970d82de870663044875da8170333d3dc5ddc2547af68ed263f4370784 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 22 Aug 2017 06:14:38 +0000 Subject: [PATCH] Accepting request 518040 from home:tbechtold:branches:devel:languages:python - convert to singlespec OBS-URL: https://build.opensuse.org/request/show/518040 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-retrying?expand=0&rev=4 --- python-retrying.changes | 5 +++++ python-retrying.spec | 18 +++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) 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}/*