Directory paths may vary between distros, but something like this should work:
Code:
rpm -ivh file.src.rpm
cd /usr/src/RPM/SPECS/
rpm -ba file.spec
cd ../RPMS/i386
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).