The --rebuild option of rpm may be obsolete. You can use the "rpmbuild -bi package-name.spec" command instead.
After installing a source RPM, there will be a .spec file in the /usr/src/redhat/SPECS directory.
Cd to the SPECS directory. If, for example, you are installing sed from the source rpm, there will be a sed.spec file in that directory. Running "rpmbuild -bi sed.spec" as root will install the source.
One nice thing about installing the source, is that you have access to the documentation source. I'll use that even if I have installed a binary package. "rpmbuild -bp <package-name>.spec" will apply the patches. Then in the /usr/src/redhat/BUILD/<package>/ directory, you can run "make ps" or "make pdf" or "make dvi" to get the printed versions of the manuals, instead of the info files you normally get.
The .noarch.rpm is not a source file. It is an RPM that is architecture independent. For example, it may install documents in /usr/share/doc/<package-name>/ or maybe it is a collection of perl, or python scripts.
Last edited by jschiwal; 02-15-2006 at 03:21 AM.