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