From f351e22c4f0bddb005372ec7ac978c9b0d8858ebea81aefb4e1b038416658b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 3 Jun 2015 12:09:23 +0000 Subject: [PATCH] - Generate python cache files wrt bnc#929793 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=283 --- libreoffice.changes | 5 +++++ libreoffice.spec | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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}