diff --git a/libreoffice.spec b/libreoffice.spec index df680cd..79d6be6 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1146,7 +1146,7 @@ rm -rf %{buildroot}%{_libdir}/%{name}/readmes/ # We have ton of duped files so run over it %fdupes %{buildroot}/usr -%pre +%pretrans # do not crate cache for bundled extensions because it is not secure # rather remove it (fdo#53006, fdo#51252, bnc#769448) # Remove after 12.2 is out of support/migration scope. @@ -1160,6 +1160,7 @@ helpdir="%{_libdir}/%{name}/help" autotextdir="%{_libdir}/%{name}/share/autotext" if [ -d "$helpdir" ]; then rm -rf "$helpdir" || true + rm -f %{_datadir}/%{name}/help/* || true ln -s "%{_datadir}/%{name}/help" "$helpdir" fi if [ -d "$autotextdir" ]; then