diff --git a/python3.6.spec b/python3.6.spec index b4ed7e4..9ef03cf 100644 --- a/python3.6.spec +++ b/python3.6.spec @@ -302,6 +302,9 @@ BuildRequires: /usr/sbin/ifconfig %if %{with rpmwheels} BuildRequires: python-setuptools-wheel BuildRequires: python-pip-wheel +%else +# For %%python_wheel_inject_sbom +BuildRequires: python-rpm-macros %endif @@ -1563,6 +1566,11 @@ ln -s \ %{buildroot}%{_bindir}/python3-debug %endif +%if %{without rpmwheels} +# Inject SBOM into the installed wheels (if the macro is available) +%{?python_wheel_inject_sbom:%python_wheel_inject_sbom %{buildroot}%{pylibdir}/ensurepip/_bundled/*.whl} +%endif + %if %{with flatpackage} # Remove stuff that would conflict with python3 package rm %{buildroot}%{_bindir}/python3