python-futures/python-futures.spec

44 lines
1.4 KiB
RPMSpec
Raw Normal View History

2019-11-19 11:53:56 +08:00
Name: python-futures
Version: 3.1.1
Release: 5
Summary: Backport of the concurrent.futures standard library module to Python 3.2
License: Python
URL: https://github.com/agronholm/pythonfutures
Source0: https://files.pythonhosted.org/packages/source/f/futures/futures-%{version}.tar.gz
BuildRequires: python2-devel
BuildArch: noarch
%description
Provides a high-level interface for asynchronously executing callables.The asynchronous
execution can be performed with threads, using ThreadPoolExecutor, or separate processes,
using ProcessPoolExecutor. Both implement the same interface, which is defined by the
abstract Executor class.
%package -n python2-futures
Summary: Backport of the concurrent.futures standard library module to Python 3.2
%{?python_provide:%python_provide python2-futures}
Provides: python-futures = %{version}-%{release}
Obsoletes: python-futures < %{version}-%{release}
%description -n python2-futures
The concurrent.futures module provides a high-level interface for asynchronously executing callables.
%prep
%autosetup -n futures-%{version} -p1
%build
%{py2_build}
%install
%{py2_install}
%files -n python2-futures
%license LICENSE
%doc CHANGES
%{python2_sitelib}/concurrent
%{python2_sitelib}/futures-*.egg-info*
%changelog
* Mon Oct 14 2019 Lijin Yang <yanglijin@huawei.com> - 3.1.1-5
- Package init