From 423b00373021f7b9a0cfa20bfe7c8be2be7ddf27 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sat, 1 Dec 2012 09:20:08 +0100 Subject: [PATCH] fix user config dir --- libreoffice.spec | 6 ++++++ 1 file changed, 6 insertions(+) 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@' $RPM_BUILD_ROOT/%{baseinstdir}/program/bootstraprc %if %{with langpacks} dmake ooolanguagepack rm -rf ../unxlng*.pro/LibreOffice_languagepack/installed/install/log