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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
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-08-13 21:48:38 +02:00
|
|
|
Version: 1.10.75
|
2014-03-02 18:22:01 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Python interface for AWS
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
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
|
2018-08-13 21:48:38 +02:00
|
|
|
Patch1: skip_test_on15.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}
|
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-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-13 21:48:38 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%patch1
|
|
|
|
%endif
|
2018-08-03 17:37:28 +02:00
|
|
|
# remove bundeled 3rd party Python modules
|
|
|
|
rm -r botocore/vendored/
|
|
|
|
# fix all imports:
|
|
|
|
sed -i 's/from botocore\.vendored //' botocore/*.py tests/unit/*.py
|
|
|
|
sed -i 's/botocore\.vendored\.//' botocore/*.py tests/unit/*.py tests/unit/auth/*.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
|