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