RPM specfile for go (http://golang.org) To create a source rpm, do the following: - Download the latest source tarball from http://code.google.com/p/go/downloads/list into this directory - Modify the version number in the specfile - rpmbuild -bs --nodeps --define "_sourcedir ." --define "_srcrpmdir ." go.spec Then to create the binary, you can use rpmbuild or mock, mock would be better Rpmbuild: rpmbuild --rebuild go-$VERSION.src.rpm Mock: sudo mock go-$VERSION.src.rpm