gtk4/macros.gtk4
Dominique Leuenberger 9e970d2f06 - Update to version 4.16.7:
+ Text: Reduce the size of error underlines.
  + Accessibility:
    - Fix a wrong return value type.
    - Fix an invalid free call.

OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk4?expand=0&rev=191
2024-11-25 14:18:44 +00:00

36 lines
1.3 KiB
Plaintext

# RPM macros for packages installing a GTK+ IM module
#
###
#
# When a package installs a GTK+ IM module, it should use all
# three macros:
#
# - %gtk4_immodule_requires in the preamble
# - %gtk4_immodule_post in %post
# - %gtk4_immodule_postun in %postun
#
###
%gtk4_immodule_requires \
Requires(post): glib2-tools \
Requires(postun): glib2-tools
# On install, update the cache
%gtk4_immodule_post \
if [[ -x %{_bindir}/gio-querymodules-64 ]]; then \
%{_bindir}/gio-querymodules-64 %{_libdir}/gtk-4.0/4.0.0/immodules \
else \
%{_bindir}/gio-querymodules %{_libdir}/gtk-4.0/4.0.0/immodules \
fi
# On uninstall, update the cache. Note: we ignore upgrades (already
# handled in %post of the new package).
%gtk4_immodule_postun \
if [ $1 -eq 0 ]; then \
if [[ -x %{_bindir}/gio-querymodules-64 ]]; then \
%{_bindir}/gio-querymodules-64 %{_libdir}/gtk-4.0/4.0.0/immodules \
else \
%{_bindir}/gio-querymodules %{_libdir}/gtk-4.0/4.0.0/immodules \
fi \
fi