Since it's one conclusion that it's not a good idea to involve all libraries defined in spec to image (http://bugzilla.moblin.org/show_bug.cgi?id=6316#c8), it's better to have one package named “moblin-compliance” with no content but plenty of libraries dependency which defined in spec. Installing this package is one precondition before dist-checker execution. Track the requirement here and any comment about grabbing the libraries from specdb and create the package could be tracked here.
Well, I've added a simple Perl generator of a list of included libraries to LF bazaar. You may find it here: http://bzr.linuxfoundation.org/loggerhead/moblin/devel/spec-scripts/files The script is called 'mkliblist.pl'. In the simplest case, just launch it and (if you have the database setup correctly) it will give you a list of sonames of included libraries. After that, one should build a package that will depend on all these sonames.
[details] Example of a script generating spec file to build rpm in question The attached Perl script can be used to generate (using the database) RPM spec file for a virtual package that will depend on all library sonames included in the specification. With the spec file generated, one can build a desired RPM. (Note that probably some RPM tags in the generated file should be rearranged to meet Moblin policies - i.e. 'License', 'Group', etc.)