Accepting request 46468 from GNOME:Factory
Copy from GNOME:Factory/gtk3 based on submit request 46468 from user vuntz OBS-URL: https://build.opensuse.org/request/show/46468 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gtk3?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
1ff05983ee
commit
4dc6c29438
35
macros.gtk3
Normal file
35
macros.gtk3
Normal file
@@ -0,0 +1,35 @@
|
||||
# RPM macros for packages installing a GTK+ IM module
|
||||
#
|
||||
###
|
||||
#
|
||||
# When a package installs a GTK+ IM module, it should use all
|
||||
# three macros:
|
||||
#
|
||||
# - %gtk3_immodule_requires in the preamble
|
||||
# - %gtk3_immodule_post in %post
|
||||
# - %gtk3_immodule_postun in %postun
|
||||
#
|
||||
###
|
||||
|
||||
%gtk3_immodule_requires \
|
||||
Requires(post): gtk3-tools \
|
||||
Requires(postun): gtk3-tools
|
||||
|
||||
# On install, update the cache
|
||||
%gtk3_immodule_post \
|
||||
%if "%_lib" == "lib64" \
|
||||
%{_bindir}/gtk-query-immodules-3.0-64 > {_sysconfdir}/gtk.immodules \
|
||||
%else \
|
||||
%{_bindir}/gtk-query-immodules-3.0 > {_sysconfdir}/gtk64.immodules \
|
||||
%endif
|
||||
|
||||
# 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 \
|
||||
%if "%_lib" == "lib64" \
|
||||
%{_bindir}/gtk-query-immodules-3.0-64 > {_sysconfdir}/gtk.immodules \
|
||||
%else \
|
||||
%{_bindir}/gtk-query-immodules-3.0 > {_sysconfdir}/gtk64.immodules \
|
||||
%endif \
|
||||
fi
|
Reference in New Issue
Block a user