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