Disable the awscrt BR/Recommends since it isn’t available on s390x
This commit is contained in:
parent
3b1e12e965
commit
b5bd9c9149
@ -1,4 +1,10 @@
|
|||||||
%bcond tests 1
|
%bcond tests 1
|
||||||
|
# We would like to have a BuildRequires and weak runtime dependency on
|
||||||
|
# python3-awscrt, which enables additional functionality and tests, but it is
|
||||||
|
# ExcludeArch: s390x (https://bugzilla.redhat.com/show_bug.cgi?id=2180988) and
|
||||||
|
# we do not want to add architecture conditionals to this package, so we omit
|
||||||
|
# the dependency for now.
|
||||||
|
%bcond awscrt 0
|
||||||
|
|
||||||
Name: python-boto3
|
Name: python-boto3
|
||||||
Version: 1.34.11
|
Version: 1.34.11
|
||||||
@ -34,12 +40,14 @@ services like Amazon S3 and Amazon EC2.}
|
|||||||
%package -n python3-boto3
|
%package -n python3-boto3
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
|
|
||||||
|
%if %{with awscrt}
|
||||||
# Optional dependency that enables additional functionality and additional
|
# Optional dependency that enables additional functionality and additional
|
||||||
# tests, and is needed for the import-only “smoke test”:
|
# tests, and is needed for the import-only “smoke test”:
|
||||||
# boto3-1.34.7/boto3/s3/transfer.py
|
# boto3-1.34.7/boto3/s3/transfer.py
|
||||||
# 185: # This feature requires awscrt>=0.19.18
|
# 185: # This feature requires awscrt>=0.19.18
|
||||||
BuildRequires: %{py3_dist awscrt} >= 0.19.18
|
BuildRequires: %{py3_dist awscrt} >= 0.19.18
|
||||||
Recommends: %{py3_dist awscrt} >= 0.19.18
|
Recommends: %{py3_dist awscrt} >= 0.19.18
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n python3-boto3 %{_description}
|
%description -n python3-boto3 %{_description}
|
||||||
|
|
||||||
@ -69,7 +77,7 @@ hardlink -c '%{buildroot}%{python3_sitelib}/boto3'
|
|||||||
# Integration tests require network access and real AWS resources.
|
# Integration tests require network access and real AWS resources.
|
||||||
%pytest --ignore=tests/integration -v -n auto
|
%pytest --ignore=tests/integration -v -n auto
|
||||||
%else
|
%else
|
||||||
%pyproject_check_import
|
%pyproject_check_import %{?!with_awscrt:-e boto3.crt}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python3-boto3 -f %{pyproject_files}
|
%files -n python3-boto3 -f %{pyproject_files}
|
||||||
@ -86,7 +94,8 @@ hardlink -c '%{buildroot}%{python3_sitelib}/boto3'
|
|||||||
- 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
|
- Port to pyproject-rpm-macros
|
||||||
- Save space by hardlinking duplicate JSON resource files
|
- Save space by hardlinking duplicate JSON resource files
|
||||||
- Add a weak dependency on python3-awscrt
|
- Add a weak dependency on python3-awscrt, but disable it for now since it is
|
||||||
|
not available on s390x
|
||||||
- Switch to the GitHub source archive and run the unit and functional tests
|
- Switch to the GitHub source archive and run the unit and functional tests
|
||||||
|
|
||||||
* 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
|
||||||
|
Loading…
Reference in New Issue
Block a user