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