Include brp-python-hardlink in python-srpm-macros since it is no longer in RPM 4.17+

See https://src.fedoraproject.org/rpms/redhat-rpm-config/c/def9a339d259ee9767e6dc0cd4b7736cfe0c174f
This commit is contained in:
Miro Hrončok 2021-06-30 14:37:07 +02:00
commit bc2b51d6d3
3 changed files with 55 additions and 3 deletions

View file

@ -49,6 +49,11 @@
# Alternatively, it can be overridden in spec (e.g. to "3.8") when building for alternate Python stacks.
%python3_pkgversion 3
# BRP scripts, they need to be included in redhat-rpm-macros, in %%__os_install_post
%__brp_python_hardlink %{_rpmconfigdir}/redhat/brp-python-hardlink
# === Macros for Build/Requires tags using Python dist tags ===
# - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
# - These macros need to be in macros.python-srpm, because BuildRequires tags