From 1ecda113370fe1cba1c18df7f8ce26e86b869b0b94f4681b59173d7fdf0b24e4 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Fri, 24 Feb 2023 16:43:00 +0000 Subject: [PATCH] Accepting request 1067638 from home:dziobian - Precompile the python bytecode to avoid lingering files on package removal. OBS-URL: https://build.opensuse.org/request/show/1067638 OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/createrepo_c?expand=0&rev=65 --- createrepo_c.changes | 4 ++++ createrepo_c.spec | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/createrepo_c.changes b/createrepo_c.changes index a69fc5b..a5c4c0d 100644 --- a/createrepo_c.changes +++ b/createrepo_c.changes @@ -1,3 +1,7 @@ +------------------------------------------------------------------- +Fri Feb 24 16:13:36 UTC 2023 - Bruno Pitrus +- Precompile the python bytecode to avoid lingering files on package removal. + ------------------------------------------------------------------- Wed Feb 22 10:09:43 UTC 2023 - Alberto Planas Dominguez diff --git a/createrepo_c.spec b/createrepo_c.spec index 004811e..e71c538 100644 --- a/createrepo_c.spec +++ b/createrepo_c.spec @@ -208,6 +208,11 @@ done %fdupes %{buildroot}%{_prefix} %fdupes build/doc/html +%if %{with python3} +%python_compileall +%fdupes %{buildroot}%{python3_sitearch} +%endif + %if %{with as_createrepo} %pre if [ -e %{_sysconfdir}/alternatives/createrepo ]; then