Add rpm dependency generator, to automatically get Requires/Provides for typelib()
@vuntz
Submitted by Vincent Untz Assigned to Igor Gnatenko
Link to original bug (#654156)
Description
In openSUSE, we ship those two files with gobject-introspection, so that a package installing a typelib will get a Provides for it, and a package depending on a typelib will get a Requires for it (this only works for py and js right now).
This results in things like this:
$ rpm -q --provides mutter | grep typelib
typelib(Meta) = 3.0
$ rpm -q --requires gnome-shell | grep typelib
typelib(Clutter)
typelib(Cogl)
typelib(GConf)
typelib(GLib)
typelib(GObject)
typelib(Gdk)
typelib(GdkPixbuf)
typelib(Gdm)
typelib(Gio)
typelib(Gkbd)
typelib(GnomeBluetoothApplet)
typelib(Gtk)
typelib(Gvc)
typelib(Meta)
typelib(NMClient)
typelib(NetworkManager)
typelib(Pango)
typelib(Polkit)
typelib(PolkitAgent)
typelib(Shell)
typelib(St)
typelib(TelepathyGLib)
typelib(TelepathyLogger)
typelib(UPowerGlib)
I think this could be shipped upstream so that all rpm-based distro can use this.