But now I would also like to document the rpmbuild command line and enviroment at build time.
That's an interesting idea. The question becomes how much of the environment do you capture? I suppose you could also record the package version/release for each explicit BuildPreReq.