File python-futures.spec of Package python-futures.3888
#
# spec file for package python-futures
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-futures
Version: 3.0.2
Release: 0
Summary: Backport of the concurrent.futures package from Python 3.2
License: BSD-2-Clause
Group: Development/Languages/Python
Url: http://code.google.com/p/pythonfutures
Source: http://pypi.python.org/packages/source/f/futures/futures-%{version}.tar.gz
# PATCH-FIX-OPENSUSE fix-testsuite.patch -- fix testsuite expectations
Patch0: fix-testsuite.patch
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
A Java-style futures package for Python
This package is described in PEP-3148 and is included in Python 3.2.
See the Python documentation for a full description.
%prep
%setup -q -n futures-%{version}
%patch0 -p1
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
%if 0%{?suse_version} > 1110
python test_futures.py
%endif
%files
%defattr(-,root,root,-)
%doc CHANGES LICENSE
%{python_sitelib}/concurrent/
%{python_sitelib}/futures-%{version}-py*.egg-info
%changelog