Update bundled provides
This commit is contained in:
parent
4a11d1e164
commit
16f743b6fa
@ -1,9 +1,10 @@
|
|||||||
%global pypi_name botocore
|
%global pypi_name botocore
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
# NOTICE - Updating this package requires updating python-boto3
|
# NOTICE - Updating this package requires updating python-boto3
|
||||||
Version: 1.29.89
|
Version: 1.29.89
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Low-level, data-driven core of boto 3
|
Summary: Low-level, data-driven core of boto 3
|
||||||
|
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -11,30 +12,27 @@ URL: https://github.com/boto/botocore
|
|||||||
Source0: %{pypi_source}
|
Source0: %{pypi_source}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: pyproject-rpm-macros
|
%global _description %{expand:
|
||||||
BuildRequires: python3-devel
|
|
||||||
|
|
||||||
# For tests:
|
|
||||||
BuildRequires: python3-jsonschema
|
|
||||||
BuildRequires: python3-pytest
|
|
||||||
|
|
||||||
%description
|
|
||||||
A low-level interface to a growing number of Amazon Web Services. The
|
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.
|
botocore package is the foundation for the AWS CLI as well as boto3.}
|
||||||
|
|
||||||
|
%description %{_description}
|
||||||
|
|
||||||
%package -n python3-%{pypi_name}
|
%package -n python3-%{pypi_name}
|
||||||
Summary: Low-level, data-driven core of boto 3
|
Summary: Low-level, data-driven core of boto 3
|
||||||
Provides: bundled(python3-six) = 1.10.0
|
BuildRequires: python3-devel
|
||||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
%if %{with tests}
|
||||||
|
# For tests:
|
||||||
|
BuildRequires: python3-jsonschema
|
||||||
|
BuildRequires: python3-pytest
|
||||||
|
%endif
|
||||||
|
Provides: bundled(python3-six) = 1.16.0
|
||||||
|
Provides: bundled(python3-requests) = 2.7.0
|
||||||
|
|
||||||
|
%description -n python3-%{pypi_name} %{_description}
|
||||||
%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.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version} -p1
|
%autosetup -n %{pypi_name}-%{version} -p1
|
||||||
rm -vr %{pypi_name}.egg-info
|
|
||||||
# Remove online tests
|
# Remove online tests
|
||||||
rm -vr tests/integration
|
rm -vr tests/integration
|
||||||
# This test tried to import tests/cmd-runner which failed as the code was
|
# This test tried to import tests/cmd-runner which failed as the code was
|
||||||
@ -43,25 +41,30 @@ rm -vr tests/integration
|
|||||||
rm -vr tests/functional/leak
|
rm -vr tests/functional/leak
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
# -r use final runtime dependencies as BuildRequires
|
%pyproject_buildrequires
|
||||||
%pyproject_buildrequires -r
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
|
%pyproject_save_files %{pypi_name}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with tests}
|
||||||
%pytest
|
%pytest
|
||||||
|
%else
|
||||||
|
%pyproject_check_import -e botocore.crt.auth -e botocore.vendored*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%{python3_sitelib}/%{pypi_name}/
|
|
||||||
%{python3_sitelib}/%{pypi_name}-*.dist-info/
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Mar 12 2023 Igor Raits <igor@gooddata.com> - 1.29.89-2
|
||||||
|
- Update bundled provides
|
||||||
|
|
||||||
* Fri Mar 10 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.29.89-1
|
* Fri Mar 10 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.29.89-1
|
||||||
- 1.29.89
|
- 1.29.89
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user