Directory paths may vary between distros, but something like this should work:
rpm -ivh file.src.rpm
rpm -ba file.spec
rpm -ivh file*rpm
The initial install puts the source code, patch files, and spec (compile instructions) in various directorys. The the ba section is for Build All - which builds the rpm going through all the stages specified in the spec file).