fedora-rpmdevtools package contains the tool:
fedora-buildrpmtree
http://fedoranews.org/tchung/rpmbuild/
-jef
Link and note added. Thanks. I didn't realize fedora-buildrpmtree
automatically created ~/.rpmmacro's as well. Nice script :)
http://www.ilsw.com/~erik/fedora-qa-quickstart.html
--erik