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