ScriptletSnippets: desktop-database,mimeinfo
Nicolas Mailhot
nicolas.mailhot at laposte.net
Sat Feb 4 12:04:39 UTC 2006
Hi,
You have exactly the same problem with fonts and fc-cache.
The current idiom (which works very well) is :
- fc-cache call in fontconfig postinstall scriptlet
- conditional fc-cache in font packages
postinstall scriptlet (using /bin/sh):
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache /usr/share/fonts
fi
postuninstall scriptlet (using /bin/sh):
if [ "$1" = "0" ]; then
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache /usr/share/fonts
fi
fi
This works well, catches 100% of the cases, does not force fontconfig
dep in font packages (apps that need the fonts but use another font
rendering tech are happy), does not sprinkle triggers everywhere where
they're difficult to get rid of.
This model should be followed by every package needing optional indexing
provided by another packager IMHO
Regards,
--
Nicolas Mailhot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20060204/40c44fd1/attachment.sig>
More information about the fedora-extras-list
mailing list