[libreoffice] use correct lib suffix

David Tardon dtardon at fedoraproject.org
Wed Aug 24 06:06:02 UTC 2011


commit 8429ad2436ac62d6c3e3929d70a4faaffcc2383b
Author: David Tardon <dtardon at redhat.com>
Date:   Wed Aug 24 08:05:40 2011 +0200

    use correct lib suffix

 libreoffice.spec |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
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


More information about the scm-commits mailing list