2014-03-02 18:22:01 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-botocore
|
|
|
|
#
|
2018-01-10 23:39:00 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-03-02 18:22:01 +01: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.
|
|
|
|
|
2018-11-06 15:55:10 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-03-02 18:22:01 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-05-16 14:43:14 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2014-03-02 18:22:01 +01:00
|
|
|
Name: python-botocore
|
2018-11-06 15:55:10 +01:00
|
|
|
Version: 1.12.38
|
2014-03-02 18:22:01 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Python interface for AWS
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2018-11-09 11:28:01 +01:00
|
|
|
URL: https://github.com/boto/botocore
|
2017-12-12 21:22:36 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/b/botocore/botocore-%{version}.tar.gz
|
2018-08-03 17:37:28 +02:00
|
|
|
Patch0: hide_py_pckgmgmt.patch
|
2017-05-16 14:43:14 +02:00
|
|
|
BuildRequires: %{python_module docutils >= 0.10}
|
|
|
|
BuildRequires: %{python_module jmespath < 1.0.0}
|
|
|
|
BuildRequires: %{python_module jmespath >= 0.7.1}
|
|
|
|
BuildRequires: %{python_module python-dateutil <= 3.0.0}
|
|
|
|
BuildRequires: %{python_module python-dateutil >= 2.1}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-11-06 15:55:10 +01:00
|
|
|
BuildRequires: %{python_module urllib3 < 1.25}
|
2018-09-12 19:15:43 +02:00
|
|
|
BuildRequires: %{python_module urllib3 >= 1.20}
|
2016-04-12 19:36:35 +02:00
|
|
|
BuildRequires: fdupes
|
2017-05-16 14:43:14 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-04-24 15:31:40 +02:00
|
|
|
Requires: python-docutils >= 0.10
|
|
|
|
Requires: python-jmespath < 1.0.0
|
|
|
|
Requires: python-jmespath >= 0.7.1
|
|
|
|
Requires: python-python-dateutil <= 3.0.0
|
|
|
|
Requires: python-python-dateutil >= 2.1
|
|
|
|
Requires: python-requests
|
|
|
|
Requires: python-six
|
|
|
|
BuildArch: noarch
|
2018-11-09 11:28:01 +01:00
|
|
|
%if 0%{?suse_version} <= 1315
|
|
|
|
# We need the ssl module, which is delivers by python and not python-base
|
|
|
|
BuildRequires: python
|
|
|
|
%endif
|
2018-03-29 11:56:24 +02:00
|
|
|
# SECTION Testing requirements
|
|
|
|
BuildRequires: %{python_module mock}
|
2017-05-16 14:43:14 +02:00
|
|
|
BuildRequires: %{python_module nose}
|
2018-03-29 11:56:24 +02:00
|
|
|
BuildRequires: %{python_module requests}
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
# /SECTION
|
2017-05-16 14:43:14 +02:00
|
|
|
%python_subpackages
|
2014-03-02 18:22:01 +01:00
|
|
|
|
|
|
|
%description
|
2017-08-28 15:16:44 +02:00
|
|
|
A low-level interface to a growing number of Amazon Web Services.
|
2014-03-02 18:22:01 +01:00
|
|
|
|
|
|
|
%prep
|
2018-04-24 15:31:40 +02:00
|
|
|
%setup -q -n botocore-%{version}
|
2018-03-29 11:56:24 +02:00
|
|
|
%patch0 -p1
|
2018-08-03 17:37:28 +02:00
|
|
|
# remove bundeled 3rd party Python modules
|
|
|
|
rm -r botocore/vendored/
|
|
|
|
# fix all imports:
|
2018-09-12 19:15:43 +02:00
|
|
|
sed -i 's/from botocore\.vendored //' botocore/*.py tests/functional/*.py tests/integration/*.py tests/unit/*.py
|
|
|
|
sed -i 's/botocore.vendored.requests.model.Response/requests.model.Response/' botocore/endpoint.py
|
|
|
|
sed -i 's/botocore\.vendored\.//' botocore/*.py tests/functional/*.py tests/integration/*.py tests/unit/*.py
|
2014-03-02 18:22:01 +01:00
|
|
|
|
|
|
|
%build
|
2017-05-16 14:43:14 +02:00
|
|
|
%python_build
|
2014-03-02 18:22:01 +01:00
|
|
|
|
|
|
|
%install
|
2017-05-16 14:43:14 +02:00
|
|
|
%python_install
|
2018-08-10 18:24:56 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2014-03-02 18:22:01 +01:00
|
|
|
|
2016-04-12 19:36:35 +02:00
|
|
|
%check
|
2018-08-10 18:24:56 +02:00
|
|
|
%python_expand nosetests-%{$python_bin_suffix} tests/unit
|
2016-04-12 19:36:35 +02:00
|
|
|
|
2017-05-16 14:43:14 +02:00
|
|
|
%files %{python_files}
|
2018-03-29 11:56:24 +02:00
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE.txt
|
2016-04-12 19:36:35 +02:00
|
|
|
%{python_sitelib}/botocore/
|
|
|
|
%{python_sitelib}/botocore-%{version}-py%{py_ver}.egg-info
|
2014-03-02 18:22:01 +01:00
|
|
|
|
|
|
|
%changelog
|