Port to pyproject-rpm-macros
This commit is contained in:
parent
519f29049e
commit
1635dc8e2c
@ -8,6 +8,14 @@ URL: https://github.com/boto/boto3
|
|||||||
Source: %{pypi_source boto3}
|
Source: %{pypi_source boto3}
|
||||||
BuildArch: noarch
|
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:
|
%global _description %{expand:
|
||||||
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
|
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
|
||||||
Python, which allows Python developers to write software that makes use of
|
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
|
%package -n python3-boto3
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
|
|
||||||
%description -n python3-boto3 %{_description}
|
%description -n python3-boto3 %{_description}
|
||||||
|
|
||||||
@ -27,17 +33,22 @@ BuildRequires: python3-setuptools
|
|||||||
# Remove online tests
|
# Remove online tests
|
||||||
rm -rf tests/integration
|
rm -rf tests/integration
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%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
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/boto3/
|
|
||||||
%{python3_sitelib}/boto3-%{version}-*.egg-info/
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jan 03 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.34.11-2
|
* Wed Jan 03 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 1.34.11-2
|
||||||
@ -46,6 +57,7 @@ rm -rf tests/integration
|
|||||||
- Avoid repeating the description and summary in the spec file
|
- Avoid repeating the description and summary in the spec file
|
||||||
- Remove some obsolete spec-file boilerplate
|
- Remove some obsolete spec-file boilerplate
|
||||||
- Simplify the spec file by eliminating the %%pypi_name macro
|
- Simplify the spec file by eliminating the %%pypi_name macro
|
||||||
|
- Port to pyproject-rpm-macros
|
||||||
|
|
||||||
* Tue Jan 02 2024 Gwyn Ciesla <gwync@protonmail.com> - 1.34.11-1
|
* Tue Jan 02 2024 Gwyn Ciesla <gwync@protonmail.com> - 1.34.11-1
|
||||||
- 1.34.11
|
- 1.34.11
|
||||||
|
Loading…
Reference in New Issue
Block a user