createrepo

http://createrepo.baseurl.org/

http://linux.die.net/man/8/createrepo

createrepo - Create repomd (xml-rpm-metadata) repository

A python program which generate the rpm-metadata (repodata) format from a set of rpm files.

Comes uninstalled with openSuse 11.2