|
|
|
@ -1,14 +1,8 @@
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
|
%bcond_with python3
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global pypi_name boto3
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 1.9.15
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: The AWS SDK for Python
|
|
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
@ -22,32 +16,6 @@ Kit (SDK) for Python, which allows Python developers to
|
|
|
|
|
write software that makes use of services like Amazon S3
|
|
|
|
|
and Amazon EC2.
|
|
|
|
|
|
|
|
|
|
%package -n python2-%{pypi_name}
|
|
|
|
|
Summary: The AWS SDK for Python
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
BuildRequires: python2-nose
|
|
|
|
|
BuildRequires: python2-mock
|
|
|
|
|
BuildRequires: python2-wheel
|
|
|
|
|
BuildRequires: python2-botocore
|
|
|
|
|
BuildRequires: python2-jmespath
|
|
|
|
|
BuildRequires: python2-futures
|
|
|
|
|
BuildRequires: python2-s3transfer
|
|
|
|
|
Requires: python2-botocore >= 1.10.41
|
|
|
|
|
Requires: python2-jmespath >= 0.7.1
|
|
|
|
|
Requires: python2-s3transfer >= 0.1.10
|
|
|
|
|
Requires: python2-futures >= 2.2.0
|
|
|
|
|
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
|
|
%{?el6:Provides: python-%{pypi_name}}
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{pypi_name}
|
|
|
|
|
Boto3 is the Amazon Web Services (AWS) Software Development
|
|
|
|
|
Kit (SDK) for Python, which allows Python developers to
|
|
|
|
|
write software that makes use of services like Amazon S3
|
|
|
|
|
and Amazon EC2.
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
|
Summary: The AWS SDK for Python
|
|
|
|
|
|
|
|
|
@ -69,7 +37,6 @@ Boto3 is the Amazon Web Services (AWS) Software Development
|
|
|
|
|
Kit (SDK) for Python, which allows Python developers to
|
|
|
|
|
write software that makes use of services like Amazon S3
|
|
|
|
|
and Amazon EC2.
|
|
|
|
|
%endif # with python3
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{pypi_name}-%{version}
|
|
|
|
@ -78,39 +45,25 @@ rm -rf %{pypi_name}.egg-info
|
|
|
|
|
rm -rf tests/integration
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py2_build
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%py3_build
|
|
|
|
|
%endif # with python3
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%py3_install
|
|
|
|
|
%endif # with python3
|
|
|
|
|
%py2_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python2} setup.py test
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
%endif # with python3
|
|
|
|
|
|
|
|
|
|
%files -n python2-%{pypi_name}
|
|
|
|
|
%{!?_licensedir:%global license %doc}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python2_sitelib}/%{pypi_name}
|
|
|
|
|
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
|
|
%endif # with python3
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Dec 20 2018 Miro Hrončok <mhroncok@redhat.com> - 1.9.15-2
|
|
|
|
|
- Subpackage python2-boto3 has been removed
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
|
|
|
|
|
* Tue Oct 02 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.9.15-1
|
|
|
|
|
- Update to 1.9.15
|
|
|
|
|
|
|
|
|
|