Dominique Leuenberger
51db18a45c
Drop pango64.patch OBS-URL: https://build.opensuse.org/request/show/133467 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/pango?expand=0&rev=84
36 lines
1.5 KiB
Plaintext
36 lines
1.5 KiB
Plaintext
# RPM macros for packages installing a Pango module
|
|
#
|
|
###
|
|
#
|
|
# When a package installs a Pango module, it should use all
|
|
# three macros:
|
|
#
|
|
# - %pango_module_requires in the preamble
|
|
# - %pango_module_post in %post
|
|
# - %pango_module_postun in %postun
|
|
#
|
|
###
|
|
|
|
%pango_module_requires \
|
|
Requires(post): pango-tools \
|
|
Requires(postun): pango-tools
|
|
|
|
# On install, update the cache
|
|
%pango_module_post \
|
|
%if "%_lib" == "lib64" \
|
|
%{_bindir}/pango-querymodules-64 --update-cache \
|
|
%else \
|
|
%{_bindir}/pango-querymodules --update-cache \
|
|
%endif
|
|
|
|
# On uninstall, update the cache. Note: we ignore upgrades (already
|
|
# handled in %post of the new package).
|
|
%pango_module_postun \
|
|
if [ $1 -eq 0 ]; then \
|
|
%if "%_lib" == "lib64" \
|
|
%{_bindir}/pango-querymodules-64 --update-cache \
|
|
%else \
|
|
%{_bindir}/pango-querymodules --update-cache \
|
|
%endif \
|
|
fi
|