Tomáš Chvátal 2015-06-12 18:17:44 +00:00 committed by Git OBS Bridge
parent 6330122b3b
commit 7594182ba7

View File

@ -1307,10 +1307,17 @@ 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/
%{python_type} -m compileall %{buildroot}/%{_libdir}/libreoffice/share/Scripts/python/
%{python_type} -m compileall %{buildroot}/%{_libdir}/libreoffice/sdk/examples/python/
%if 0%{?suse_version} > 1130
%py3_compile %{buildroot}/%{_libdir}/libreoffice/program/
%py3_compile %{buildroot}/%{_libdir}/libreoffice/share/extensions/
%py3_compile %{buildroot}/%{_libdir}/libreoffice/share/Scripts/python/
%py3_compile %{buildroot}/%{_libdir}/libreoffice/sdk/examples/python/
%else
%py_compile %{buildroot}/%{_libdir}/libreoffice/program/
%py_compile %{buildroot}/%{_libdir}/libreoffice/share/extensions/
%py_compile %{buildroot}/%{_libdir}/libreoffice/share/Scripts/python/
%py_compile %{buildroot}/%{_libdir}/libreoffice/sdk/examples/python/
%endif
# Move python cache to respective filelist
for i in file-lists/*.txt; do