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