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