From ae1876cc5f38eff0f60d315058e5e24762f32aca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Fri, 24 Oct 2025 09:17:33 +0200 Subject: [PATCH] Include SBOM in the .whl file in python-pip-wheel Taken from Fedora e2a1a1a --- python3.14-pip.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python3.14-pip.spec b/python3.14-pip.spec index ee60cbd..286976e 100644 --- a/python3.14-pip.spec +++ b/python3.14-pip.spec @@ -282,8 +282,10 @@ sed -i -e "s/^\\(complete.*\\) pip%{python3_version}\$/\\1 pip%{python3_version} -e s/_pip_completion/_pip%{python3_version_nodots}_completion/ \ %{buildroot}%{bash_completions_dir}/pip%{python3_version} +# Install the built wheel and inject SBOM into it (if the macro is available) mkdir -p %{buildroot}%{python_wheel_dir} install -p %{_pyproject_wheeldir}/%{python_wheel_name} -t %{buildroot}%{python_wheel_dir} +%{?python_wheel_inject_sbom:%python_wheel_inject_sbom %{buildroot}%{python_wheel_dir}/%{python_wheel_name}} %check