commit 423b00373021f7b9a0cfa20bfe7c8be2be7ddf27
Author: David Tardon <dtardon(a)redhat.com>
Date: Sat Dec 1 09:20:08 2012 +0100
fix user config dir
libreoffice.spec | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libreoffice.spec b/libreoffice.spec
index dd2a8da..6e9f88f 100644
--- a/libreoffice.spec
+++ b/libreoffice.spec
@@ -974,6 +974,12 @@ fi
mkdir -p $RPM_BUILD_ROOT/%{baseinstdir}
mv ../unxlng*.pro/LibreOffice/installed/install/en-US/* $RPM_BUILD_ROOT/%{baseinstdir}
chmod -R +w $RPM_BUILD_ROOT/%{baseinstdir}
+# The installer currently sets UserInstallation to
+# $ORIGIN/../libreoffice/4, which is of course total nonsense. Because I
+# have no inclination to crawl through mountains of perl code to figure out
+# where it comes from, I am just going to replace it by a sensible
+# value here.
+sed -i -e '/UserInstallation/s@\$ORIGIN/..@$SYSUSERCONFIG(a)'
$RPM_BUILD_ROOT/%{baseinstdir}/program/bootstraprc
%if %{with langpacks}
dmake ooolanguagepack
rm -rf ../unxlng*.pro/LibreOffice_languagepack/installed/install/log
Show replies by date