From 1635dc8e2c196479f88661f3eeb800d3f0743ba0 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 22 Dec 2023 10:28:19 -0500 Subject: [PATCH] Port to pyproject-rpm-macros --- python-boto3.spec | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/python-boto3.spec b/python-boto3.spec index daf36b8..1a9daca 100644 --- a/python-boto3.spec +++ b/python-boto3.spec @@ -8,6 +8,14 @@ URL: https://github.com/boto/boto3 Source: %{pypi_source boto3} BuildArch: noarch +BuildRequires: python3-devel + +# Optional dependencies for import “smoke test”: +# +# boto3-1.34.7/boto3/s3/transfer.py +# 185: # This feature requires awscrt>=0.19.18 +BuildRequires: %{py3_dist awscrt} >= 0.19.18 + %global _description %{expand: Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use of @@ -17,8 +25,6 @@ services like Amazon S3 and Amazon EC2.} %package -n python3-boto3 Summary: %{summary} -BuildRequires: python3-devel -BuildRequires: python3-setuptools %description -n python3-boto3 %{_description} @@ -27,17 +33,22 @@ BuildRequires: python3-setuptools # Remove online tests rm -rf tests/integration +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files boto3 -%files -n python3-boto3 +%check +%pyproject_check_import + +%files -n python3-boto3 -f %{pyproject_files} %doc README.rst %license LICENSE -%{python3_sitelib}/boto3/ -%{python3_sitelib}/boto3-%{version}-*.egg-info/ %changelog * Wed Jan 03 2024 Benjamin A. Beasley - 1.34.11-2 @@ -46,6 +57,7 @@ rm -rf tests/integration - Avoid repeating the description and summary in the spec file - Remove some obsolete spec-file boilerplate - Simplify the spec file by eliminating the %%pypi_name macro +- Port to pyproject-rpm-macros * Tue Jan 02 2024 Gwyn Ciesla - 1.34.11-1 - 1.34.11