How to package GObject bindings?

Kalev Lember kalevlember at gmail.com
Sun Jan 22 20:14:58 UTC 2012


On 01/22/2012 09:21 PM, Richard W.M. Jones wrote:
> The first of these looks wrong (under specified) to me.  It looks like
> dependencies on libgobject-2.0.so.0 and libglib-2.0.so.0 are missing
> for some reason.  (They are missing from the actual
> libguestfs-gobject-1.0.so.0 too, so probably it is being built wrong).

Yeah, if libgobject-2.0.so.0 and libglib-2.0.so.0 are missing from
libguestfs-gobject-1.0.so DT_NEEDED section, there's no way for rpm
to automatically generate the deps.


> Constructive comments welcome on packaging GObject bindings, and in
> particular what to do about *.typelib and *.gir files.

The .typelib files are needed at runtime for introspection to work and
should probably go in the %{name}-gobject package. The .gir files should
be fine in some -devel package. I think I'd personally fold
%{name}-gobject-devel into %{name}-devel so there's just one -devel for
all of libguestfs, but either way works.

-- 
Kalev


More information about the devel mailing list