cd486f
# adwaita
cd486f
if [ $1 -eq 0 ] ; then
cd486f
    touch --no-create %{gtk3_install_path}/share/icons/Adwaita &>/dev/null
cd486f
    touch --no-create %{gtk3_install_path}/share/icons/hicolor &>/dev/null
cd486f
    %{gtk3_install_path}/bin/gtk-update-icon-cache %{gtk3_install_path}/share/icons/Adwaita &>/dev/null || :
cd486f
    %{gtk3_install_path}/bin/gtk-update-icon-cache %{gtk3_install_path}/share/icons/hicolor &>/dev/null || :
cd486f
fi
cd486f
cd486f
# gdk-pixbuf2
cd486f
if [ $1 -gt 0 ]; then
cd486f
  %{gtk3_install_path}/bin/gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
cd486f
fi
cd486f
cd486f
# glib2
cd486f
[ ! -x %{gtk3_install_path}/bin/gio-querymodules-%{__isa_bits} ] || \
cd486f
%{gtk3_install_path}/bin/gio-querymodules-%{__isa_bits} %{gtk3_install_path}/%{_lib}/gio/modules
cd486f
cd486f
# gtk3
cd486f
if [ $1 -gt 0 ]; then
cd486f
  %{gtk3_install_path}/bin/gtk-query-immodules-3.0-%{__isa_bits} --update-cache
cd486f
fi
cd486f
cd486f
if [ $1 -eq 0 ] ; then
cd486f
    rm -rf %{gtk3_install_path}/var/cache/fontconfig/* &>/dev/null || :
cd486f
fi
cd486f
cd486f
%{gtk3_install_path}/bin/glib-compile-schemas %{gtk3_install_path}/share/glib-2.0/schemas &> /dev/null || :