279 lines
8.3 KiB
RPMSpec
279 lines
8.3 KiB
RPMSpec
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
%global with_python3 0
|
|
%global fix_dateutil 1
|
|
%else
|
|
%global with_python3 1
|
|
%endif
|
|
|
|
%global pypi_name botocore
|
|
|
|
# Enable tests
|
|
%global with_tests 0
|
|
# Disable documentation generation for now
|
|
%global with_docs 0
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 1.4.52
|
|
Release: 2%{?dist}
|
|
Summary: Low-level, data-driven core of boto 3
|
|
|
|
License: ASL 2.0
|
|
URL: https://github.com/boto/botocore
|
|
Source0: https://pypi.io/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
Patch0: botocore-1.4.52-fix_dateutil_version.patch
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python2-devel
|
|
BuildRequires: python-setuptools
|
|
%if 0%{?with_docs}
|
|
BuildRequires: python-sphinx
|
|
BuildRequires: python-guzzle_sphinx_theme
|
|
%endif # with_docs
|
|
%if 0%{?with_tests}
|
|
%{?fc23:BuildRequires: mock}
|
|
%{!?fc23:BuildRequires: python2-mock}
|
|
BuildRequires: python-behave
|
|
BuildRequires: python-nose
|
|
BuildRequires: python-six
|
|
BuildRequires: python-wheel
|
|
BuildRequires: python-docutils
|
|
BuildRequires: python-dateutil
|
|
BuildRequires: python2-jmespath
|
|
%endif # with_tests
|
|
%if 0%{?with_python3}
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
%if 0%{?with_docs}
|
|
BuildRequires: python3-sphinx
|
|
BuildRequires: python3-guzzle_sphinx_theme
|
|
%endif # with_docs
|
|
%if 0%{?with_tests}
|
|
%{?fc24:BuildRequires: python3-behave}
|
|
BuildRequires: python3-mock
|
|
BuildRequires: python3-nose
|
|
BuildRequires: python3-six
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-docutils
|
|
BuildRequires: python3-dateutil
|
|
BuildRequires: python3-jmespath
|
|
%endif # with_tests
|
|
%endif # with_python3
|
|
|
|
%description
|
|
A low-level interface to a growing number of Amazon Web Services. The
|
|
botocore package is the foundation for the AWS CLI as well as boto3.
|
|
|
|
%package -n python2-%{pypi_name}
|
|
Summary: Low-level, data-driven core of boto 3
|
|
Requires: python-jmespath >= 0.7.1
|
|
%if 0%{?fix_dateutil}
|
|
Requires: python-dateutil >= 1.4
|
|
%else
|
|
Requires: python-dateutil >= 2.1
|
|
%endif
|
|
Requires: python-docutils >= 0.10
|
|
%{?el6:Provides: python-%{pypi_name}}
|
|
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
|
%description -n python2-%{pypi_name}
|
|
A low-level interface to a growing number of Amazon Web Services. The
|
|
botocore package is the foundation for the AWS CLI as well as boto3.
|
|
|
|
%if 0%{?with_python3}
|
|
%package -n python3-%{pypi_name}
|
|
Summary: Low-level, data-driven core of boto 3
|
|
Requires: python3-jmespath >= 0.7.1
|
|
%if 0%{?fix_dateutil}
|
|
Requires: python3-dateutil >= 1.4
|
|
%else
|
|
Requires: python3-dateutil >= 2.1
|
|
%endif
|
|
Requires: python3-docutils >= 0.10
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
%description -n python3-%{pypi_name}
|
|
A low-level interface to a growing number of Amazon Web Services. The
|
|
botocore package is the foundation for the AWS CLI as well as boto3.
|
|
%endif # with_python3
|
|
|
|
%if 0%{?with_docs}
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
%description doc
|
|
%{summary}.
|
|
%endif # with_docs
|
|
|
|
%prep
|
|
%setup -q -n %{pypi_name}-%{version}
|
|
%{?fix_dateutil:%patch0 -p1}
|
|
sed -i -e '1 d' botocore/vendored/requests/packages/chardet/chardetect.py
|
|
sed -i -e '1 d' botocore/vendored/requests/certs.py
|
|
rm -rf %{pypi_name}.egg-info
|
|
# Remove online tests
|
|
rm -rf tests/integration
|
|
|
|
%build
|
|
%py2_build
|
|
%if 0%{?with_python3}
|
|
%py3_build
|
|
%endif # with_python3
|
|
|
|
%install
|
|
%if 0%{?with_python3}
|
|
%py3_install
|
|
%endif # with_python3
|
|
%py2_install
|
|
%if 0%{?with_docs}
|
|
%if 0%{?with_python3}
|
|
sphinx-build-3 docs/source html
|
|
rm -rf html/.{doctrees,buildinfo}
|
|
%else # with_python3
|
|
sphinx-build docs/source html
|
|
rm -rf html/.{doctrees,buildinfo}
|
|
%endif # with_python3
|
|
%endif # with_docs
|
|
|
|
%if 0%{?with_tests}
|
|
%check
|
|
# %{__python2} setup.py test
|
|
nosetests-2.7 --with-coverage --cover-erase --cover-package botocore --with-xunit --cover-xml -v tests/unit/ tests/functional/
|
|
%if 0%{?with_python3}
|
|
# %{__python3} setup.py test
|
|
nosetests-3.5 --with-coverage --cover-erase --cover-package botocore --with-xunit --cover-xml -v tests/unit/ tests/functional/
|
|
%endif # with_python3
|
|
%endif # with_tests
|
|
|
|
%{!?_licensedir:%global license %doc}
|
|
|
|
%files -n python2-%{pypi_name}
|
|
%doc README.rst
|
|
%license LICENSE.txt
|
|
%{python2_sitelib}/%{pypi_name}/
|
|
%{python2_sitelib}/%{pypi_name}-*.egg-info/
|
|
|
|
%if 0%{?with_python3}
|
|
%files -n python3-%{pypi_name}
|
|
%doc README.rst
|
|
%license LICENSE.txt
|
|
%{python3_sitelib}/%{pypi_name}/
|
|
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
|
%endif # with_python3
|
|
|
|
%if 0%{?with_docs}
|
|
%files doc
|
|
%doc html
|
|
%endif # with_docs
|
|
|
|
%changelog
|
|
* Tue Sep 13 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.4.52-2
|
|
- Add testing support for EL7 using a lower version of dateuil library
|
|
|
|
* Wed Sep 07 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.4.52-1
|
|
- Update to 1.4.52
|
|
|
|
* Sat Sep 03 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.4.50-1
|
|
- Update to 1.4.50
|
|
|
|
* Wed Aug 24 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.4.49-1
|
|
- Upstream update
|
|
|
|
* Tue Aug 23 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.4.48-1
|
|
- Upstream update
|
|
|
|
* Fri Aug 05 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.4.43-1
|
|
- Upstream update
|
|
|
|
* Thu Aug 04 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.4.42-1
|
|
- Upstream update
|
|
|
|
* Tue Aug 02 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.4.41-1
|
|
- Upstream update
|
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.35-2
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
* Wed Jul 06 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.4.35-1
|
|
- New version from upstream
|
|
|
|
* Wed Jun 08 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.4.26-1
|
|
- New version from upstream
|
|
|
|
* Sat May 28 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.4.24-1
|
|
- New version from upstream
|
|
|
|
* Tue Mar 29 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.4.7-1
|
|
- New version from upstream
|
|
|
|
* Tue Mar 01 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.30-1
|
|
- New version from upstream
|
|
|
|
* Wed Feb 24 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.29-1
|
|
- New version from upstream
|
|
|
|
* Fri Feb 19 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.28-1
|
|
- New version from upstream
|
|
|
|
* Wed Feb 17 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.27-1
|
|
- New version from upstream
|
|
|
|
* Fri Feb 12 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.26-1
|
|
- New version from upstream
|
|
|
|
* Wed Feb 10 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.25-1
|
|
- New version from upstream
|
|
|
|
* Tue Feb 09 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.24-1
|
|
- New version from upstream
|
|
|
|
* Tue Feb 02 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.23-1
|
|
- New version from upstream
|
|
|
|
* Fri Jan 22 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.22-1
|
|
- New version from upstream
|
|
|
|
* Wed Jan 20 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.21-1
|
|
- New version from upstream
|
|
|
|
* Fri Jan 15 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.20-1
|
|
- New version from upstream
|
|
|
|
* Fri Jan 15 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.19-1
|
|
- New version from upstream
|
|
|
|
* Wed Jan 13 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.18-1
|
|
- New version from upstream
|
|
|
|
* Tue Jan 12 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.17-2
|
|
- Add testing for Fedora
|
|
|
|
* Thu Jan 07 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.17-1
|
|
- Update to upstream version
|
|
|
|
* Wed Jan 06 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.16-2
|
|
- Fix shabang on botocore/vendored/requests/packages/chardet/chardetect.py
|
|
- Fix shabang on botocore/vendored/requests/certs.py
|
|
- Remove the useless dependency with python-urllib3
|
|
|
|
* Wed Jan 06 2016 Fabio Alessandro Locati <fale@redhat.com> - 1.3.16-1
|
|
- Update to new upstream version
|
|
- Fix Provides for EL6
|
|
|
|
* Tue Dec 29 2015 Fabio Alessandro Locati <fale@redhat.com> - 1.3.15-1
|
|
- Update to current version
|
|
- Improve the spec
|
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.79.0-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.79.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Fri Dec 19 2014 Lubomir Rintel <lkundrak@v3.sk> - 0.79.0-1
|
|
- New version
|
|
|
|
* Fri Jul 25 2014 Lubomir Rintel <lkundrak@v3.sk> - 0.58.0-2
|
|
- Add Python 3 support
|
|
|
|
* Fri Jul 25 2014 Lubomir Rintel <lkundrak@v3.sk> - 0.58.0-1
|
|
- Initial packaging
|