gdk-pixbuf/macros.gdk-pixbuf
OBS User autobuild 76a67e53a0 Accepting request 45166 from GNOME:Factory
Copy from GNOME:Factory/gdk-pixbuf based on submit request 45166 from user vuntz

OBS-URL: https://build.opensuse.org/request/show/45166
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdk-pixbuf?expand=0&rev=1
2010-08-09 13:15:56 +00:00

36 lines
1.3 KiB
Plaintext

# RPM macros for packages installing a gdk-pixbuf loader
#
###
#
# When a package installs a gdk-pixbuf loader, it should use all
# three macros:
#
# - %gdk_pixbuf_loader_requires in the preamble
# - %gdk_pixbuf_loader_post in %post
# - %gdk_pixbuf_loader_postun in %postun
#
###
%gdk_pixbuf_loader_requires \
Requires(post): gdk-pixbuf-query-loaders \
Requires(postun): gdk-pixbuf-query-loaders
# On install, update the cache
%gdk_pixbuf_loader_post \
%if "%_lib" == "lib64" \
%{_bindir}/gdk-pixbuf-query-loaders-64 --update-cache \
%else \
%{_bindir}/gdk-pixbuf-query-loaders --update-cache \
%endif
# On uninstall, update the cache. Note: we ignore upgrades (already
# handled in %post of the new package).
%gdk_pixbuf_loader_postun \
if [ $1 -eq 0 ]; then \
%if "%_lib" == "lib64" \
%{_bindir}/gdk-pixbuf-query-loaders-64 --update-cache \
%else \
%{_bindir}/gdk-pixbuf-query-loaders --update-cache \
%endif \
fi