From f17c52832ba6d12d2e7f5b641fcdcedcdc264802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 5 Sep 2025 13:26:16 +0000 Subject: [PATCH] Inject SBOM into the installed wheels (when using the bundled ones) --- python3.13.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python3.13.spec b/python3.13.spec index 8965bf9..c93edf0 100644 --- a/python3.13.spec +++ b/python3.13.spec @@ -1263,6 +1263,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 # ======================================================