cd486f
# adwaita-icon-theme
cd486f
touch --no-create %{gtk3_install_path}/share/icons/Adwaita &>/dev/null || :
cd486f
touch --no-create %{gtk3_install_path}/share/icons/hicolor &>/dev/null || :
cd486f
%{gtk3_install_path}/bin/gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
cd486f
cd486f
# glib2
cd486f
%{gtk3_install_path}/bin/gio-querymodules-%{__isa_bits} %{gtk3_install_path}/%{_lib}/gio/modules
cd486f
cd486f
# gtk3
cd486f
%{gtk3_install_path}/bin/gtk-query-immodules-3.0-%{__isa_bits} --update-cache
cd486f
%{gtk3_install_path}/bin/glib-compile-schemas %{gtk3_install_path}/share/glib-2.0/schemas &> /dev/null || :
cd486f
cd486f
# fontconfig
cd486f
umask 0022
cd486f
cd486f
# Force regeneration of all fontconfig cache files
cd486f
# The check for existance is needed on dual-arch installs (the second
cd486f
#  copy of fontconfig might install the binary instead of the first)
cd486f
# The HOME setting is to avoid problems if HOME hasn't been reset
cd486f
# FIXME hardcoded version !
cd486f
if [ -x %{gtk3_install_path}/bin/fc-cache ] && %{gtk3_install_path}/bin/fc-cache --version 2>&1 | grep -q 2.10.95 ; then
cd486f
  HOME=/root %{gtk3_install_path}/bin/fc-cache -f
cd486f
fi