py -> py2

This commit is contained in:
Denis Silakov 2020-02-12 05:15:46 +03:00
parent a075055412
commit 7601ab72c0

View file

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