From 7601ab72c0789acb45453febcc06f7d18800acd4 Mon Sep 17 00:00:00 2001 From: Denis Silakov Date: Wed, 12 Feb 2020 05:15:46 +0300 Subject: [PATCH] py -> py2 --- python-futures.spec | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/python-futures.spec b/python-futures.spec index e4741d3..b501fdc 100644 --- a/python-futures.spec +++ b/python-futures.spec @@ -9,22 +9,30 @@ License: BSD URL: https://pypi.python.org/pypi/futures Source0: https://files.pythonhosted.org/packages/47/04/5fc6c74ad114032cd2c544c575bffc17582295e9cd6a851d6026ab4b2c00/futures-3.3.0.tar.gz BuildArch: noarch -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: python2-devel +BuildRequires: python2-setuptools %description The concurrent.futures module provides a high-level interface for asynchronously executing callables. +%package -n python2-%{upstream_name} +Summary: Backport of the concurrent.futures package from Python 3.2 + +%description -n python2-%{upstream_name} +The concurrent.futures module provides a high-level interface for +asynchronously executing callables. + + %prep %setup -q -n %{upstream_name}-%{version} %build -CFLAGS="%{optflags}" python setup.py build +CFLAGS="%{optflags}" python2 setup.py build %install -python setup.py install --skip-build --root %{buildroot} +python2 setup.py install --skip-build --root %{buildroot} -%files -%{py_puresitedir}/concurrent -%{py_puresitedir}/futures-%{version}-*.egg-info +%files -n python2-%{upstream_name} +%{py2_puresitedir}/concurrent +%{py2_puresitedir}/futures-%{version}-*.egg-info