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