0b98c2
%if 0%{?rhel} && 0%{?rhel} <= 7
0b98c2
%bcond_with python3
0b98c2
%else
0b98c2
%bcond_without python3
0b98c2
%endif
0b98c2
0b98c2
%if 0%{?rhel} > 7
0b98c2
# Disable python2 build by default
0b98c2
%bcond_with python2
0b98c2
%else
0b98c2
%bcond_without python2
0b98c2
%endif
0b98c2
0b98c2
%global pypi_name boto3
0b98c2
0b98c2
Name:           python-%{pypi_name}
0b98c2
Version:        1.6.1
0b98c2
Release:        2%{?dist}
0b98c2
Summary:        The AWS SDK for Python
0b98c2
0b98c2
License:        ASL 2.0
0b98c2
URL:            https://github.com/boto/boto3
0b98c2
Source0:        https://pypi.io/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
0b98c2
BuildArch:      noarch
0b98c2
0b98c2
%description
0b98c2
Boto3 is the Amazon Web Services (AWS) Software Development
0b98c2
Kit (SDK) for Python, which allows Python developers to
0b98c2
write software that makes use of services like Amazon S3 
0b98c2
and Amazon EC2.
0b98c2
0b98c2
%if %{with python2}
0b98c2
%package -n     python2-%{pypi_name}
0b98c2
Summary:        The AWS SDK for Python
0b98c2
0b98c2
BuildRequires:  python2-devel
0b98c2
BuildRequires:  python-setuptools
0b98c2
BuildRequires:  python-nose
0b98c2
BuildRequires:  python-mock
0b98c2
BuildRequires:  python-wheel
0b98c2
BuildRequires:  python2-botocore
0b98c2
BuildRequires:  python2-jmespath
0b98c2
BuildRequires:  python-futures
0b98c2
BuildRequires:  python2-s3transfer
0b98c2
Requires:       python2-botocore >= 1.5.0
0b98c2
Requires:       python2-jmespath >= 0.7.1
0b98c2
Requires:       python2-s3transfer >= 0.1.10
0b98c2
RequireS:       python-futures >= 2.2.0
0b98c2
%{?python_provide:%python_provide python2-%{pypi_name}}
0b98c2
%{?el6:Provides: python-%{pypi_name}}
0b98c2
0b98c2
%description -n python2-%{pypi_name}
0b98c2
Boto3 is the Amazon Web Services (AWS) Software Development
0b98c2
Kit (SDK) for Python, which allows Python developers to
0b98c2
write software that makes use of services like Amazon S3 
0b98c2
and Amazon EC2.
0b98c2
%endif # with python2
0b98c2
0b98c2
%if %{with python3}
0b98c2
%package -n     python3-%{pypi_name}
0b98c2
Summary:        The AWS SDK for Python
0b98c2
0b98c2
BuildRequires:  python3-devel
0b98c2
BuildRequires:  python3-setuptools
0b98c2
BuildRequires:  python3-nose
0b98c2
BuildRequires:  python3-mock
0b98c2
BuildRequires:  python3-wheel
0b98c2
BuildRequires:  python3-botocore
0b98c2
BuildRequires:  python3-jmespath
0b98c2
BuildRequires:  python3-s3transfer
0b98c2
Requires:       python3-botocore >= 1.5.0
0b98c2
Requires:       python3-jmespath >= 0.7.1
0b98c2
Requires:       python3-s3transfer >= 0.1.10
0b98c2
%{?python_provide:%python_provide python3-%{pypi_name}}
0b98c2
0b98c2
%description -n python3-%{pypi_name}
0b98c2
Boto3 is the Amazon Web Services (AWS) Software Development
0b98c2
Kit (SDK) for Python, which allows Python developers to
0b98c2
write software that makes use of services like Amazon S3 
0b98c2
and Amazon EC2.
0b98c2
%endif # with python3
0b98c2
0b98c2
%prep
0b98c2
%setup -q -n %{pypi_name}-%{version}
0b98c2
rm -rf %{pypi_name}.egg-info
0b98c2
# Remove online tests
0b98c2
rm -rf tests/integration
0b98c2
0b98c2
%build
0b98c2
%if %{with python2}
0b98c2
%py2_build
0b98c2
%endif # with python2
0b98c2
%if %{with python3}
0b98c2
%py3_build
0b98c2
%endif # with python3
0b98c2
0b98c2
%install
0b98c2
%if %{with python3}
0b98c2
%py3_install
0b98c2
%endif # with python3
0b98c2
%if %{with python2}
0b98c2
%py2_install
0b98c2
%endif # with python2
0b98c2
0b98c2
%check
0b98c2
%if %{with python2}
0b98c2
%{__python2} setup.py test
0b98c2
%endif # with python2
0b98c2
%if %{with python3}
0b98c2
%{__python3} setup.py test
0b98c2
%endif # with python3
0b98c2
0b98c2
%if %{with python2}
0b98c2
%files -n python2-%{pypi_name} 
0b98c2
%{!?_licensedir:%global license %doc}
0b98c2
%doc README.rst
0b98c2
%license LICENSE
0b98c2
%{python2_sitelib}/%{pypi_name}
0b98c2
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
0b98c2
%endif # with python2
0b98c2
0b98c2
%if %{with python3}
0b98c2
%files -n python3-%{pypi_name} 
0b98c2
%doc README.rst
0b98c2
%license LICENSE
0b98c2
%{python3_sitelib}/%{pypi_name}
0b98c2
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
0b98c2
%endif # with python3
0b98c2
0b98c2
%changelog
0b98c2
* Fri Jun 08 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.6.1-2
0b98c2
- Conditionalize the python2 subpackage
0b98c2
0b98c2
* Wed Feb 28 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.6.1-1
0b98c2
- Update to 1.6.1
0b98c2
0b98c2
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.19-2
0b98c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0b98c2
0b98c2
* Sat Jan 20 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.5.19-1
0b98c2
- Update to 1.5.19
0b98c2
0b98c2
* Sat Jan 20 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.5.18-1
0b98c2
- Update to 1.5.18
0b98c2
0b98c2
* Tue Jan 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.5.15-1
0b98c2
- Update to 1.5.15
0b98c2
0b98c2
* Wed Jan 10 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.5.12-1
0b98c2
- Update to 1.5.12
0b98c2
0b98c2
* Wed Jan 03 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.5.7-1
0b98c2
- Update to 1.5.7
0b98c2
0b98c2
* Sun Aug 13 2017 Fabio Alessandro Locati <fale@fedoraproject.org> 1.4.6-1
0b98c2
- Update to 1.4.6
0b98c2
0b98c2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-3
0b98c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0b98c2
0b98c2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-2
0b98c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0b98c2
0b98c2
* Fri Jan 20 2017 Fabio Alessandro Locati <fale@fedoraproject.org> 1.4.4-1
0b98c2
- Update to 1.4.4
0b98c2
0b98c2
* Wed Dec 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> 1.4.3-1
0b98c2
- Update to 1.4.3
0b98c2
0b98c2
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.4.2-2
0b98c2
- Rebuild for Python 3.6
0b98c2
0b98c2
* Sat Dec 03 2016 Fabio Alessandro Locati <fale@fedoraproject.org> 1.4.2-1
0b98c2
- Update to 1.4.2
0b98c2
0b98c2
* Mon Oct 10 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.1-1
0b98c2
- Update to 1.4.1
0b98c2
0b98c2
* Thu Aug 04 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.0-1
0b98c2
- New upstream release
0b98c2
0b98c2
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
0b98c2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0b98c2
0b98c2
* Sat May 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.1-1
0b98c2
- New upstream release
0b98c2
0b98c2
* Tue Mar 29 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.0-1
0b98c2
- New upstream release
0b98c2
0b98c2
* Fri Feb 19 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.2.4-1
0b98c2
- New upstream release
0b98c2
0b98c2
* Thu Feb 11 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.2.3-3
0b98c2
- Fix python2- subpackage to require python-future
0b98c2
0b98c2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-2
0b98c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0b98c2
0b98c2
* Tue Dec 29 2015 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.2.3-1
0b98c2
- Initial package.