diff options
author | Andras Timar <andras.timar@collabora.com> | 2017-03-20 20:04:04 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-03-20 23:29:15 +0100 |
commit | 29120b44547a3148be9b781b0f5b388750c68f7f (patch) | |
tree | c9bbc03604da5ea79e3a446d434082d90859ed48 /loolwsd.spec.in | |
parent | b408d4b2d91e4a06f9b69bee45356f411da98732 (diff) |
Packager should know where LibreOffice is installed in target distro
Change-Id: Ie7e34be8eb34f60a41edbef22838828be0008e37
Diffstat (limited to 'loolwsd.spec.in')
-rw-r--r-- | loolwsd.spec.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/loolwsd.spec.in b/loolwsd.spec.in index 4129e4702..2bdd31a6b 100644 --- a/loolwsd.spec.in +++ b/loolwsd.spec.in @@ -63,6 +63,7 @@ Obsoletes: loleaflet <= 1.5.8 %build %configure \ --with-lokit-path=bundled/include \ + --with-lo-path=%{loroot} \ %if 0%{?config_options:1} %{config_options} %endif @@ -131,7 +132,7 @@ rm -rf /var/cache/loolwsd/* # Figure out where LO is installed, let's hope it is not a mount point # Create a directory for loolwsd on the same file system -loroot=`rpm -ql collaboraoffice5.3 | grep '/soffice$' | sed -e 's-/program/soffice--'` +loroot=%{loroot} loolparent=`cd ${loroot} && cd .. && /bin/pwd` rm -rf ${loolparent}/lool |