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
This commit is contained in:
Dirk Mueller 2017-06-06 08:13:24 +00:00 committed by Git OBS Bridge
parent 992499cb9a
commit b9035cfeb5
2 changed files with 20 additions and 5 deletions

View File

@ -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

View File

@ -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.2s
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}/*