Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > a420f002d72bbaa5e4cc5b8c9acda6f1 > scriptlet

openoffice.org-common-3.1.1-0.2mdv2009.1.x86_64.rpm

POSTIN

/bin/sh
# <mrl> Bogus versioning in previous alternatives setup forces us to do this
# We can safelly remove it, as we are obsoleting that version anyway.
/usr/sbin/update-alternatives --remove ooffice /usr/bin/ooffice2.1 || :
# We changed the master name here.
/usr/sbin/update-alternatives --remove ooffice /usr/bin/ooffice2.3 || :

# Dev300 without bootstraptc no interface language can be determinated
# BrOffice support %post
# for i in \
#    /usr/lib64/ooo/program/bootstraprc \
#    /usr/lib64/ooo/program/versionrc \
#    /usr/lib64/ooo/basis3.0/share/registry/data/org/openoffice/Setup.xcu
# do
#    if [ -f "$i" ]; then
#        rm -f "$i"
#    fi
# done

#dev300: including basis3.0 before program
# alternatives names follows oobr_<filename> mark, making it explicit.
 /usr/sbin/update-alternatives \
	--install /usr/lib64/ooo/program/bootstraprc oobr_bootstraprc \
		/usr/lib64/ooo/program/bootstraprc.ooo 1 \
	--slave /usr/lib64/ooo/program/versionrc oobr_versionrc \
		/usr/lib64/ooo/program/versionrc.ooo \
	--slave /usr/lib64/ooo/basis3.1/share/registry/data/org/openoffice/Setup.xcu oobr_Setup.xcu \
		/usr/lib64/ooo/basis3.1/share/registry/data/org/openoffice/Setup.xcu.ooo
# Always do this configuration, as the switch should be transparent.
/usr/sbin/update-alternatives --auto oobr_bootstraprc
# End of BrOffice support %post


  
# Remove ooobuildtime.log misplaced file
if [ -f /ooobuildtime.log ]; then
      mkdir -p /tmp/ooo.tmp.mdv.rc2/
      mv /ooobuildtime.log /tmp/ooo.tmp.mdv.rc2/
      rm -r /tmp/ooo.tmp.mdv.rc2/
fi

# Firefox plugin 
if [ $1 -gt 1 ]
then
  update-alternatives --remove libnpsoplugin.so \
  /usr/lib64/ooo/program/libnpsoplugin.so 
fi
update-alternatives \
  --install /usr/lib64/mozilla/plugins/libnpsoplugin.so libnpsoplugin.so \
  /usr/lib64/ooo/program/libnpsoplugin.so 1

POSTUN

/bin/sh

# BrOffice support %postun common
 if [ ! -e "/usr/lib64/ooo/program/bootstraprc.ooo" ]; then
       /usr/sbin/update-alternatives --remove oobr_bootstraprc /usr/lib64/ooo/program/bootstraprc.ooo
 fi
# End of BrOffice support %postun common

  
# Firefox plugin 
if [ $1 -eq 0 ]
then
  update-alternatives --remove libnpsoplugin.so \
  /usr/lib64/ooo/program/libnpsoplugin.so 
fi