From b9035cfeb51275d8b16ac60166906eb0c21f4bc917583c1371bb5db491bdcf99 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 6 Jun 2017 08:13:24 +0000 Subject: [PATCH] Accepting request 495574 from home:cbosdonnat:branches:devel:languages:python - Convert the spec file to single spec one OBS-URL: https://build.opensuse.org/request/show/495574 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-futures?expand=0&rev=2 --- python-requests-futures.changes | 5 +++++ python-requests-futures.spec | 20 +++++++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/python-requests-futures.changes b/python-requests-futures.changes index 90605b9..aaeb1c2 100644 --- a/python-requests-futures.changes +++ b/python-requests-futures.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 17 11:34:21 UTC 2017 - cbosdonnat@suse.com + +- Convert the spec file to single spec one + ------------------------------------------------------------------- Wed Feb 22 19:58:39 UTC 2017 - okurz@suse.com diff --git a/python-requests-futures.spec b/python-requests-futures.spec index 037cccb..21c8f19 100644 --- a/python-requests-futures.spec +++ b/python-requests-futures.spec @@ -16,6 +16,8 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} + %define short_name requests-futures Name: python-%{short_name} Version: 0.9.7 @@ -25,23 +27,31 @@ License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/ross/%{short_name} Source: https://files.pythonhosted.org/packages/2c/f0/d9a6d4472286405956dd5ac6279fe932a86151df9816bc35afe601495819/%{short_name}-%{version}.tar.gz -BuildRequires: python-setuptools +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +Requires: python-futures >= 2.1.3 +Requires: python-requests >= 1.2.0 + +%python_subpackages %description -Asynchronous Python HTTP Requests for Humans using Futures. +Small add-on for the python requests_ http library. Makes use of python 3.2’s +concurrent.futures or the backport for prior versions of python. %prep %setup -q -n %{short_name}-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} -%files +%files %python_files %defattr(-,root,root,-) %doc LICENSE README.rst %{python_sitelib}/*