Include SBOM in the .whl file in python-pip-wheel

Taken from Fedora e2a1a1a
This commit is contained in:
Tomáš Hrnčiar 2025-10-24 09:17:33 +02:00 committed by Lumir Balhar
parent 43b2089180
commit ae1876cc5f

View File

@ -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