if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

if [ -x /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi

if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
  if [ -x /usr/bin/gtk-update-icon-cache ]; then
    /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
  fi
fi

if [ -e usr/share/icons/locolor/icon-theme.cache ]; then
  if [ -x /usr/bin/gtk-update-icon-cache ]; then
    /usr/bin/gtk-update-icon-cache -f usr/share/icons/locolor >/dev/null 2>&1
  fi
fi
( cd usr/lib64/scidavis/plugins ; rm -rf libexplin.so )
( cd usr/lib64/scidavis/plugins ; ln -sf libexplin.so.1.0.0 libexplin.so )
( cd usr/lib64/scidavis/plugins ; rm -rf libfitRational1.so.1 )
( cd usr/lib64/scidavis/plugins ; ln -sf libfitRational1.so.1.0.0 libfitRational1.so.1 )
( cd usr/lib64/scidavis/plugins ; rm -rf libfitRational1.so.1.0 )
( cd usr/lib64/scidavis/plugins ; ln -sf libfitRational1.so.1.0.0 libfitRational1.so.1.0 )
( cd usr/lib64/scidavis/plugins ; rm -rf libfitRational1.so )
( cd usr/lib64/scidavis/plugins ; ln -sf libfitRational1.so.1.0.0 libfitRational1.so )
( cd usr/lib64/scidavis/plugins ; rm -rf libfitRational0.so.1 )
( cd usr/lib64/scidavis/plugins ; ln -sf libfitRational0.so.1.0.0 libfitRational0.so.1 )
( cd usr/lib64/scidavis/plugins ; rm -rf libfitRational0.so.1.0 )
( cd usr/lib64/scidavis/plugins ; ln -sf libfitRational0.so.1.0.0 libfitRational0.so.1.0 )
( cd usr/lib64/scidavis/plugins ; rm -rf libexp_saturation.so.1 )
( cd usr/lib64/scidavis/plugins ; ln -sf libexp_saturation.so.1.0.0 libexp_saturation.so.1 )
( cd usr/lib64/scidavis/plugins ; rm -rf libexp_saturation.so )
( cd usr/lib64/scidavis/plugins ; ln -sf libexp_saturation.so.1.0.0 libexp_saturation.so )
( cd usr/lib64/scidavis/plugins ; rm -rf libexplin.so.1.0 )
( cd usr/lib64/scidavis/plugins ; ln -sf libexplin.so.1.0.0 libexplin.so.1.0 )
( cd usr/lib64/scidavis/plugins ; rm -rf libfitRational0.so )
( cd usr/lib64/scidavis/plugins ; ln -sf libfitRational0.so.1.0.0 libfitRational0.so )
( cd usr/lib64/scidavis/plugins ; rm -rf libplanck_wavelength.so.1 )
( cd usr/lib64/scidavis/plugins ; ln -sf libplanck_wavelength.so.1.0.0 libplanck_wavelength.so.1 )
( cd usr/lib64/scidavis/plugins ; rm -rf libplanck_wavelength.so )
( cd usr/lib64/scidavis/plugins ; ln -sf libplanck_wavelength.so.1.0.0 libplanck_wavelength.so )
( cd usr/lib64/scidavis/plugins ; rm -rf libexp_saturation.so.1.0 )
( cd usr/lib64/scidavis/plugins ; ln -sf libexp_saturation.so.1.0.0 libexp_saturation.so.1.0 )
( cd usr/lib64/scidavis/plugins ; rm -rf libexplin.so.1 )
( cd usr/lib64/scidavis/plugins ; ln -sf libexplin.so.1.0.0 libexplin.so.1 )
( cd usr/lib64/scidavis/plugins ; rm -rf libplanck_wavelength.so.1.0 )
( cd usr/lib64/scidavis/plugins ; ln -sf libplanck_wavelength.so.1.0.0 libplanck_wavelength.so.1.0 )
