2011-03-01 09:00:04 +01:00
|
|
|
# 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" \
|
2012-09-21 21:40:45 +02:00
|
|
|
%{_bindir}/pango-querymodules-64 --update-cache \
|
2011-03-01 09:00:04 +01:00
|
|
|
%else \
|
2012-09-21 21:40:45 +02:00
|
|
|
%{_bindir}/pango-querymodules --update-cache \
|
2011-03-01 09:00:04 +01:00
|
|
|
%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" \
|
2012-09-21 21:40:45 +02:00
|
|
|
%{_bindir}/pango-querymodules-64 --update-cache \
|
2011-03-01 09:00:04 +01:00
|
|
|
%else \
|
2012-09-21 21:40:45 +02:00
|
|
|
%{_bindir}/pango-querymodules --update-cache \
|
2011-03-01 09:00:04 +01:00
|
|
|
%endif \
|
|
|
|
fi
|