gtk4/macros.gtk4
Dominique Leuenberger 5cdb5378fb - Update to version 4.16.5:
+ Clean up debug spew.
- Update to version 4.16.4:
  + GtkTextView:
    - Fix some missing CSS invalidation
    - Handle charsets in clipboard datatypes
  + GtkApplication: Respect GDK_DEBUG=no-portals
  + Printing:
    - Avoid warnings for avahi errors
    - Fix a segfault in the print dialog setup code
  + Accessibility: Handle NULL values in more places
  + Gdk:
    - vulkan: Fix validation errors
    - Fix 32bit build for the jpeg loader
  + Wayland: Fix a possible deadlock with high-priority sources
    triggering Wayland roundtrips
  + Updated translations.

OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk4?expand=0&rev=187
2024-11-02 12:09:49 +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