2016-04-14 13:07:13 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-s3transfer
|
|
|
|
#
|
2019-02-13 14:29:44 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-04-14 13:07:13 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-02-13 14:29:44 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-04-14 13:07:13 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-05-17 10:53:59 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2016-04-14 13:07:13 +02:00
|
|
|
Name: python-s3transfer
|
2019-02-13 14:29:44 +01:00
|
|
|
Version: 0.2.0
|
2016-04-14 13:07:13 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Python S3 transfer manager
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2018-05-10 15:50:35 +02:00
|
|
|
URL: https://github.com/boto/s3transfer
|
2017-05-17 10:53:59 +02:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/s/s3transfer/s3transfer-%{version}.tar.gz
|
2016-04-14 13:07:13 +02:00
|
|
|
Patch0: hide_py_pckgmgmt.patch
|
2019-02-13 14:29:44 +01:00
|
|
|
Patch1: no-bundled-packages.patch
|
|
|
|
BuildRequires: %{python_module botocore >= 1.12.36}
|
2018-05-10 15:50:35 +02:00
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module nose}
|
2017-05-17 10:53:59 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-05-10 15:50:35 +02:00
|
|
|
BuildRequires: %{python_module urllib3}
|
2017-11-10 14:58:33 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-05-10 15:50:35 +02:00
|
|
|
BuildRequires: python2-futures >= 2.2.0
|
|
|
|
Requires: python-botocore <= 2.0.0
|
2019-02-13 14:29:44 +01:00
|
|
|
Requires: python-botocore >= 1.12.36
|
2018-04-19 15:33:29 +02:00
|
|
|
Requires: python-requests
|
2018-05-10 15:50:35 +02:00
|
|
|
Requires: python-urllib3
|
|
|
|
BuildArch: noarch
|
2017-05-17 10:53:59 +02:00
|
|
|
%ifpython2
|
2018-05-10 15:50:35 +02:00
|
|
|
Requires: python-futures <= 4.0.0
|
|
|
|
Requires: python-futures >= 2.2.0
|
2017-05-17 10:53:59 +02:00
|
|
|
%endif
|
|
|
|
%python_subpackages
|
2016-04-14 13:07:13 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
A transfer manager for Amazon Web Services S3
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n s3transfer-%{version}
|
2019-02-13 14:29:44 +01:00
|
|
|
%patch0 -p1
|
2018-04-19 15:33:29 +02:00
|
|
|
%patch1 -p1
|
2018-05-10 15:50:35 +02:00
|
|
|
# remove integration tests that need running s3 :)
|
|
|
|
rm -rf tests/integration
|
2016-04-14 13:07:13 +02:00
|
|
|
|
|
|
|
%build
|
2017-05-17 10:53:59 +02:00
|
|
|
%python_build
|
2016-04-14 13:07:13 +02:00
|
|
|
|
|
|
|
%install
|
2017-05-17 10:53:59 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-04-14 13:07:13 +02:00
|
|
|
|
2018-05-10 15:50:35 +02:00
|
|
|
%check
|
|
|
|
# on 32bit the tests fail on OOM and various other funny things
|
|
|
|
%ifarch x86_64
|
|
|
|
%python_expand nosetests-%{$python_bin_suffix}
|
|
|
|
%endif
|
|
|
|
|
2017-05-17 10:53:59 +02:00
|
|
|
%files %{python_files}
|
2018-05-10 15:50:35 +02:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.rst
|
2016-04-14 13:07:13 +02:00
|
|
|
%{python_sitelib}/s3transfer/
|
2017-05-17 10:53:59 +02:00
|
|
|
%{python_sitelib}/s3transfer-%{version}-py*.egg-info
|
2016-04-14 13:07:13 +02:00
|
|
|
|
|
|
|
%changelog
|