%global pypi_name botocore %global aiven_fork_url https://github.com/aiven/botocore Name: python-%{pypi_name} # NOTICE - Updating this package requires updating python-boto3 Version: 1.29.4 Release: 1.aiven%{?dist} Epoch: 1000 Summary: Low-level, data-driven core of boto 3 License: ASL 2.0 URL: https://github.com/boto/botocore Source0: %{pypi_source} BuildArch: noarch Patch: %{aiven_fork_url}/pull/1.patch BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel BuildRequires: python3-jsonschema BuildRequires: python3-setuptools BuildRequires: python3-pytest BuildRequires: python3-wheel BuildRequires: python3-jmespath BuildRequires: python3-toml BuildRequires: python3-dateutil BuildRequires: python3-urllib3 %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 python3-%{pypi_name} Summary: Low-level, data-driven core of boto 3 Provides: bundled(python3-six) = 1.10.0 %{?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. %prep %autosetup -n %{pypi_name}-%{version} -p1 rm -vr %{pypi_name}.egg-info # Remove online tests rm -vr tests/integration # This test tried to import tests/cmd-runner which failed as the code was # unable to import "botocore". I'm not 100% sure why this happened but for now # just exclude this one test and run all the other functional tests. rm -vr tests/functional/leak %generate_buildrequires # -r use final runtime dependencies as BuildRequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %check %pytest %files -n python3-%{pypi_name} %doc README.rst %license LICENSE.txt %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-*.dist-info/ %changelog * Tue Dec 13 2022 Rommel Layco - 1.29.4-1.aiven - port to avn-pkg - apply sock proxy patch