Accepting request 63072 from home:vuntz:branches:GNOME:Factory
Forwarding to openSUSE:Factory OBS-URL: https://build.opensuse.org/request/show/63072 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/pango?expand=0&rev=61
This commit is contained in:
committed by
Git OBS Bridge
parent
8a36a60d2d
commit
5d7a22114a
35
macros.pango
Normal file
35
macros.pango
Normal file
@@ -0,0 +1,35 @@
|
||||
# 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 > %{_sysconfdir}/pango/pango64.immodules \
|
||||
%else \
|
||||
%{_bindir}/pango-querymodules > %{_sysconfdir}/pango/pango.immodules \
|
||||
%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 > %{_sysconfdir}/pango/pango64.immodules \
|
||||
%else \
|
||||
%{_bindir}/pango-querymodules > %{_sysconfdir}/pango/pango.immodules \
|
||||
%endif \
|
||||
fi
|
Reference in New Issue
Block a user