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