Group :: Development/Python3
RPM: python3-module-botocore
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name botocore
%def_with check
Name: python3-module-%pypi_name
Version: 1.27.90
Release: alt1
Summary: The low-level, core functionality of boto 3
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.org/project/botocore/
BuildArch: noarch
# Source-git: https://github.com/boto/botocore.git
Source: %name-%version.tar
Source1: debundler.py.in
Patch: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
%if_with check
# required for test_resource_leaks
BuildRequires: /proc
# install_requires=
BuildRequires: python3(jmespath)
BuildRequires: python3(dateutil)
BuildRequires: python3(urllib3)
# unbundled
BuildRequires: python3(requests)
BuildRequires: python3(six)
BuildRequires: python3(jsonschema)
BuildRequires: python3(pytest)
%endif
%py3_provides %pypi_name
# vendored
%py3_requires six
%py3_requires requests
%filter_from_requires /python3(botocore\.vendored\..*)/d
%description
A low-level interface to a growing number of Amazon Web Services. The
botocore package is the foundation for AWS-CLI.
%prep
%setup
%autopatch -p1
rm botocore/cacert.pem
VENDORED_PATH='botocore/vendored'
UNVENDORED_PATH="$VENDORED_PATH/__init__.py"
rm -r "$VENDORED_PATH"
mkdir "$VENDORED_PATH"
cp "%SOURCE1" "$UNVENDORED_PATH"
sed -i \
-e 's/ at VENDORED_ROOT at /"botocore.vendored"/' \
-e 's/ at VENDORED_FAKE_PACKAGES at /{"requests.packages"}/' \
"$UNVENDORED_PATH"
%build
%pyproject_build
%install
%pyproject_install
%check
%tox_check_pyproject
%files
%doc LICENSE.txt
%doc *.rst
%python3_sitelibdir/%pypi_name
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Todas as alterações você pod ver aqui
%define pypi_name botocore
%def_with check
Name: python3-module-%pypi_name
Version: 1.27.90
Release: alt1
Summary: The low-level, core functionality of boto 3
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.org/project/botocore/
BuildArch: noarch
# Source-git: https://github.com/boto/botocore.git
Source: %name-%version.tar
Source1: debundler.py.in
Patch: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
%if_with check
# required for test_resource_leaks
BuildRequires: /proc
# install_requires=
BuildRequires: python3(jmespath)
BuildRequires: python3(dateutil)
BuildRequires: python3(urllib3)
# unbundled
BuildRequires: python3(requests)
BuildRequires: python3(six)
BuildRequires: python3(jsonschema)
BuildRequires: python3(pytest)
%endif
%py3_provides %pypi_name
# vendored
%py3_requires six
%py3_requires requests
%filter_from_requires /python3(botocore\.vendored\..*)/d
%description
A low-level interface to a growing number of Amazon Web Services. The
botocore package is the foundation for AWS-CLI.
%prep
%setup
%autopatch -p1
rm botocore/cacert.pem
VENDORED_PATH='botocore/vendored'
UNVENDORED_PATH="$VENDORED_PATH/__init__.py"
rm -r "$VENDORED_PATH"
mkdir "$VENDORED_PATH"
cp "%SOURCE1" "$UNVENDORED_PATH"
sed -i \
-e 's/ at VENDORED_ROOT at /"botocore.vendored"/' \
-e 's/ at VENDORED_FAKE_PACKAGES at /{"requests.packages"}/' \
"$UNVENDORED_PATH"
%build
%pyproject_build
%install
%pyproject_install
%check
%tox_check_pyproject
%files
%doc LICENSE.txt
%doc *.rst
%python3_sitelibdir/%pypi_name
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Todas as alterações você pod ver aqui