diff --git a/libreoffice.changes b/libreoffice.changes index 650afcf..ffafa38 100644 --- a/libreoffice.changes +++ b/libreoffice.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 3 12:08:54 UTC 2015 - tchvatal@suse.com + +- Generate python cache files wrt bnc#929793 + ------------------------------------------------------------------- Thu May 21 11:59:03 UTC 2015 - tchvatal@suse.com diff --git a/libreoffice.spec b/libreoffice.spec index 801002a..69dd8ed 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -756,7 +756,7 @@ if [ -f %{_datadir}/libreoffice/%{1}_list.txt ] ; then \ fi \ \ %postun %{1} \ -if [ "$1" = "0" -a -f %{_datadir}/libreoffice/%{1}_list.txt -a -f %{_bindir}/libreoffice-share-linker ]; then \ +if [ "$1" = "0" -a -f %{_datadir}/libreoffice/%{1}_list.txt -a -x %{_bindir}/libreoffice-share-linker ]; then \ %{_bindir}/libreoffice-share-linker --unlink %{_datadir}/libreoffice/%{1}_list.txt || true \ rm -f %{_datadir}/libreoffice/%{1}_list.txt 2> /dev/null || true \ fi \ @@ -1313,6 +1313,10 @@ chrpath --delete %{buildroot}%{_libdir}/%{name}/program/librdf-lo.so.0 chrpath --delete %{buildroot}%{_libdir}/%{name}/program/librasqal-lo.so.3 %endif +# Generate python cache files +%{python_type} -m compileall %{buildroot}/%{_libdir}/libreoffice/program/ +%{python_type} -m compileall %{buildroot}/%{_libdir}/libreoffice/share/extensions/ + # We have ton of duped files so run over it %fdupes %{buildroot}%{_prefix}