The OpenSuSE folks have been working on automating dependency information for use of libraries via gobject-introspection. Their generators currently cover python and javascript, you can see them here:
http://bugzilla.gnome.org/show_bug.cgi?id=654156
I'm really happy to see this being pushed upstream, and it will probably land in rawhide with the next GLib release (in ~ 2 weeks) unless the packaging committee has objections.
If we need to amend any packaging docs for this, let me know.
Matthias