From Fedora Project Wiki

Revision as of 17:18, 16 November 2010 by Mclasen (talk | contribs) (Created page with '== GIO modules == GIO is a library that is part of the glib2 package. It is a low-level part of the GNOME stack. GIO can be extended by implementing [http://library.gnome.org/de...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

GIO modules

GIO is a library that is part of the glib2 package. It is a low-level part of the GNOME stack. GIO can be extended by implementing extension points in loadable modules. These loadable modules have to be installed in %{_libdir}/gio/modules. To avoid opening all modules in that directory unnecessarily, GIO maintains a cache with information about the available modules in the text file giomodule.cache in the same directory. This cache file needs to be updated when the set of installed modules changes, by calling the gio-querymodules binary. Multilib considerations force us to install the binary in -32 and -64 variants.

The proposed scriptlets to maintain the cache file are:

%postun
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules || :

%posttrans
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules || :

In order to ensure that gio-querymodules is available when the scriptlets are run, add Requires as necessary:

Requires(postun): glib2
Requires(posttrans): glib2