From 1c0680c74feb32b5c972a8cc39bad20bc1823e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 5 Sep 2025 13:23:10 +0000 Subject: [PATCH] Inject SBOM into the installed wheels (when using the bundled ones) --- python3.12.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python3.12.spec b/python3.12.spec index 84ab4ec..17def23 100644 --- a/python3.12.spec +++ b/python3.12.spec @@ -1150,6 +1150,11 @@ for file in %{buildroot}%{pylibdir}/pydoc_data/topics.py $(grep --include='*.py' rm ${directory}/{__pycache__/${module}.cpython-%{pyshortver}.opt-?.pyc,${module}.py} done +%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 + # ====================================================== # Checks for packaging issues # ======================================================