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