Dominique Leuenberger
12ba8f1e1c
Let's try to get the GTK4 stack ready for TW before we rely on it OBS-URL: https://build.opensuse.org/request/show/443858 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk4?expand=0&rev=1
28 lines
852 B
Plaintext
28 lines
852 B
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): gtk4-tools \
|
|
Requires(postun): gtk4-tools
|
|
|
|
# On install, update the cache
|
|
%gtk4_immodule_post \
|
|
%{_bindir}/gtk4-query-immodules --update-cache \
|
|
|
|
# On uninstall, update the cache. Note: we ignore upgrades (already
|
|
# handled in %post of the new package).
|
|
%gtk3_immodule_postun \
|
|
if [ $1 -eq 0 ]; then \
|
|
%{_bindir}/gtk4-query-immodules --update-cache \
|
|
fi
|