commit c439f37d67697296686ff91a30ae450cc0fdc13b
Author: Jan RÄ™korajski <[email protected]>
Date:   Sat Dec 13 11:38:23 2014 +0100

    - add pretrans for core package to fix unpacking dir to symlinks during 
upgrade

 libreoffice.spec | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
---
diff --git a/libreoffice.spec b/libreoffice.spec
index bc4b42b..4c93cc2 100644
--- a/libreoffice.spec
+++ b/libreoffice.spec
@@ -3167,6 +3167,25 @@ done
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pretrans core
+if [ -d %{_libdir}/%{name}/program/resource ] && [ ! -L 
%{_libdir}/%{name}/program/resource ]; then
+       install -d %{_datadir}/%{name}/program
+       if [ -e %{_datadir}/%{name}/program/resource ]; then
+               mv %{_datadir}/%{name}/program/resource{,.rpmsave}
+       fi
+       %{__mv} -v %{_libdir}/%{name}/program/resource 
%{_datadir}/%{name}/program/resource
+       ln -vs %{_datadir}/%{name}/program/resource 
%{_libdir}/%{name}/program/resource
+fi
+if [ -d %{_libdir}/%{name}/share ] && [ ! -L %{_libdir}/%{name}/share ]; then
+       install -d %{_datadir}/%{name}
+       if [ -e %{_datadir}/%{name}/share ]; then
+               mv %{_datadir}/%{name}/share{,.rpmsave}
+       fi
+       %{__mv} -v %{_libdir}/%{name}/share %{_datadir}/%{name}/share
+       ln -vs %{_datadir}/%{name}/share %{_libdir}/%{name}/share
+fi
+exit 0
+
 %post core
 %update_mime_database
 %update_desktop_database_post
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libreoffice.git/commitdiff/c439f37d67697296686ff91a30ae450cc0fdc13b

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to