llvm-svn: 29784
to automatically pick up the configured version number and other details. Also, update the contents of this script to allow building both a source and binary version of the RPM package. llvm-svn: 29716