2014-03-02 18:22:01 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-botocore
|
|
|
|
#
|
2021-01-04 18:50:40 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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-%{**}}
|
2020-11-26 12:10:21 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2020-11-26 00:18:50 +01:00
|
|
|
%define skip_python2 1
|
|
|
|
%endif
|
2014-03-02 18:22:01 +01:00
|
|
|
Name: python-botocore
|
2021-05-20 10:51:43 +02:00
|
|
|
Version: 1.20.75
|
2014-03-02 18:22:01 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Python interface for AWS
|
|
|
|
License: Apache-2.0
|
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
|
2017-05-16 14:43:14 +02:00
|
|
|
BuildRequires: %{python_module jmespath < 1.0.0}
|
|
|
|
BuildRequires: %{python_module jmespath >= 0.7.1}
|
2021-01-04 18:50:40 +01:00
|
|
|
BuildRequires: %{python_module python-dateutil < 3.0.0}
|
2017-05-16 14:43:14 +02:00
|
|
|
BuildRequires: %{python_module python-dateutil >= 2.1}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-11-30 14:07:46 +01:00
|
|
|
BuildRequires: %{python_module urllib3 < 1.27}
|
|
|
|
BuildRequires: %{python_module urllib3 >= 1.25.4}
|
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-jmespath < 1.0.0
|
|
|
|
Requires: python-jmespath >= 0.7.1
|
2021-01-04 18:50:40 +01:00
|
|
|
Requires: python-python-dateutil < 3.0.0
|
2018-04-24 15:31:40 +02:00
|
|
|
Requires: python-python-dateutil >= 2.1
|
|
|
|
Requires: python-requests
|
|
|
|
Requires: python-six
|
2020-11-30 14:07:46 +01:00
|
|
|
Requires: python-urllib3 < 1.27
|
|
|
|
Requires: python-urllib3 >= 1.25.4
|
2018-04-24 15:31:40 +02:00
|
|
|
BuildArch: noarch
|
2018-11-09 11:28:01 +01:00
|
|
|
%if 0%{?suse_version} <= 1315
|
2021-01-04 18:50:40 +01:00
|
|
|
# We need the ssl module, which is provided by python and not python-base
|
2018-11-09 11:28:01 +01:00
|
|
|
BuildRequires: python
|
|
|
|
%endif
|
2018-03-29 11:56:24 +02:00
|
|
|
# SECTION Testing requirements
|
2020-10-09 23:53:40 +02:00
|
|
|
BuildRequires: %{python_module mock >= 1.3.0}
|
2021-02-18 17:59:58 +01:00
|
|
|
BuildRequires: %{python_module nose}
|
2020-09-14 15:56:56 +02:00
|
|
|
BuildRequires: %{python_module pluggy >= 0.7}
|
|
|
|
BuildRequires: %{python_module py >= 1.5.0}
|
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}
|
2020-09-14 15:56:56 +02:00
|
|
|
|
2019-06-23 16:47:19 +02:00
|
|
|
# remove bundled cacert.pem
|
|
|
|
rm botocore/cacert.pem
|
|
|
|
# remove bundled 3rd party Python modules
|
2018-08-03 17:37:28 +02:00
|
|
|
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
|
2021-02-18 17:59:58 +01:00
|
|
|
%python_expand nosetests-%{$python_bin_suffix} -v 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/
|
2020-03-12 08:15:20 +01:00
|
|
|
%{python_sitelib}/botocore-%{version}-py*.egg-info
|
2014-03-02 18:22:01 +01:00
|
|
|
|
|
|
|
%changelog
|