[mlite] Gather version information from rpmbuild, or from git.

This avoids the requirement to make version bump commits, and is generally less
error prone.

Thanks to Bernd Wachter for the idea.