Don't require pyproject-rpm-macros on RHEL

See also https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/345
This commit is contained in:
Miro Hrončok 2023-01-06 14:11:17 +01:00 committed by churchyard
parent e190ec477f
commit 4aa8fa2b5a
1 changed files with 5 additions and 1 deletions

View File

@ -472,7 +472,11 @@ Requires: %{pkgname}-libs%{?_isa} = %{version}-%{release}
# But we want them when packages BuildRequire python3-devel
Requires: (python-rpm-macros if rpm-build)
Requires: (python3-rpm-macros if rpm-build)
Requires: (pyproject-rpm-macros if rpm-build)
# We omit this dependency on RHEL to avoid pulling the macros to AppStream:
# RHEL users can use the minimal implementation of %%pyproject_buildrequires
# from pyproject-srpm-macros instead.
# On Fedora, we keep this to avoid one additional round of %%generate_buildrequires.
%{!?rhel:Requires: (pyproject-rpm-macros if rpm-build)}
%unversioned_obsoletes_of_python3_X_if_main devel