From 800a06f5c77bc16ea3ef532a3865056cede54f7af878be2e8ac5e917eb6ce52d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 1 Feb 2014 12:09:53 +0000 Subject: [PATCH] - Try hard to support migration from older layout where the help and autotext are dirs not symlinks. OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=107 --- libreoffice.changes | 6 ++++++ libreoffice.spec | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/libreoffice.changes b/libreoffice.changes index 40e70a6..b0a4684 100644 --- a/libreoffice.changes +++ b/libreoffice.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Feb 1 12:09:19 UTC 2014 - tchvatal@suse.com + +- Try hard to support migration from older layout where the + help and autotext are dirs not symlinks. + ------------------------------------------------------------------- Sat Feb 1 12:05:00 UTC 2014 - tchvatal@suse.com diff --git a/libreoffice.spec b/libreoffice.spec index 1572972..70cfa5f 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1115,10 +1115,10 @@ bundled_cache="%{_libdir}/%{name}/share/prereg/bundled" test -d "$bundled_cache" && rm -rf "$bundled_cache"/* || true; # Directory to symlink is not working in RPM so workaround it # FIXME: Remove after 13.1 is out of update scope. -#helpdir="%{_libdir}/%{name}/share/help" -#autotextdir="%{_libdir}/%{name}/share/autotext" -#test -d "$helpdir" && rm -rf "$helpdir" || true ; -#test -d "$autotextdir" && rm -rf "$autotextdir" || true ; +helpdir="%{_libdir}/%{name}/help" +autotextdir="%{_libdir}/%{name}/share/autotext" +test -d "$helpdir" && rm -rf "$helpdir" || true ; +test -d "$autotextdir" && rm -rf "$autotextdir" || true ; %post /sbin/ldconfig