PRETRANS
/bin/sh
if [ -d /usr/lib64/libreoffice/program/resource ] && [ ! -L /usr/lib64/libreoffice/program/resource ]; then
install -d /usr/share/libreoffice/program
if [ -e /usr/share/libreoffice/program/resource ]; then
/bin/mv /usr/share/libreoffice/program/resource{,.rpmsave}
fi
/bin/mv -v /usr/lib64/libreoffice/program/resource /usr/share/libreoffice/program/resource
ln -s /usr/share/libreoffice/program/resource /usr/lib64/libreoffice/program/resource
fi
if [ -d /usr/lib64/libreoffice/share ] && [ ! -L /usr/lib64/libreoffice/share ]; then
install -d /usr/share/libreoffice
if [ -e /usr/share/libreoffice/share ]; then
/bin/mv /usr/share/libreoffice/share{,.rpmsave}
fi
/bin/mv -v /usr/lib64/libreoffice/share /usr/share/libreoffice/share
ln -s /usr/share/libreoffice/share /usr/lib64/libreoffice/share
fi
exit 0
POSTIN
/bin/sh
{ \
umask 022; \
PKGSYSTEM_ENABLE_FSYNC=0 \
/usr/bin/update-mime-database /usr/share/mime; \
};
{ \
umask 022; \
/usr/bin/update-desktop-database -q; \
};
{ \
\
if [ -x /usr/bin/gtk-update-icon-cache ]; then \
umask 022; \
touch --no-create /usr/share/icons/hicolor; \
/usr/bin/gtk-update-icon-cache -qf /usr/share/icons/hicolor; \
fi; \
};
POSTUN
/bin/sh
{ \
if [ "$1" = "0" ]; then \
{ \
umask 022; \
/usr/bin/update-desktop-database -q; \
};fi; \
};
{ \
umask 022; \
PKGSYSTEM_ENABLE_FSYNC=0 \
/usr/bin/update-mime-database /usr/share/mime; \
};
{ \
\
if [ -x /usr/bin/gtk-update-icon-cache ]; then \
umask 022; \
touch --no-create /usr/share/icons/hicolor; \
/usr/bin/gtk-update-icon-cache -qf /usr/share/icons/hicolor; \
fi; \
};