diff --git a/libreoffice.spec b/libreoffice.spec index 2642f85..27ee2b0 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -131,6 +131,12 @@ Patch28: gdb-pretty-printers.patch %define OFFICEUPD 340 %define SOPOST l* +%ifarch i386 +%global libsuffix li +%else +%global libsuffix lx +%endif + %description LibreOffice is an Open Source, community-developed, office productivity suite. It includes the key desktop applications, such as a word processor, @@ -1284,6 +1290,9 @@ sed -i -e "s#URE_MORE_JAVA_CLASSPATH_URLS.*#& file:///usr/share/java/lucene.jar export DESTDIR=$RPM_BUILD_ROOT install-gdb-printers -a %{_datadir}/gdb/auto-load%{baseinstdir} -c -p %{_datadir}/libreoffice/gdb +for f in `find %{_datadir}/gdb/auto-load%{baseinstdir} -type f -name '*lo-gdb.py'`; do + mv "$f" "${f%lo-gdb.py}%{libsuffix}-gdb.py" +done %check source ./Linux*Env.Set.sh