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}/*