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