Like this article? We recommend
Locating and Installing Source RPMs
Web and FTP sites that provide binary RPMs generally also provide source RPMs, also called SRPMs. You can identify an SRPM by the .src.rpm extension.
SRPMs are installed using rpm with the same parameters as binary RPMs. For example, to install ed-0.2-5.src.rpm, type this:
# rpm -i ed-0.2-5.src.rpm.
NOTE
You can install directly from FTP and Web sites by using the URL as the package name.
The files ed-0.2.tar.gz and ed.gif are placed in the SOURCES directory, and the file ed-0.2.spec is placed in the SPECS directory.