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