This note is what I wish someone else had posted before i spent half a day hacking it out for myself. It seems sort of simple now, but this may save someone else a similar fate.
If you grabbed the free 30-day support RHEL4 Desktop iso's, and your month is gone, and you want to get on the free updates bandwagon,here it is:
ftp://ftp.redhat.com/pub/ etc, etc click through to the updates/enterprise to your particular beast
download the SRPMS that are newest for your os
open the terminal, as root, and do:
rpm -ivh packagename.src.rpm
go to /usr/src/redhat/SPECS
select the srpm spec file:
rpmbuild packagename.spec
this bulds the install packages in /SOURCES, then build your rpm by doing:
rpmbuild -ba packagename.spec
after compile is done, it will rebuild the SRPM, install it in SRPMS, and your new RPM packages will be placed in RPMS, ready to install, by doing:
rpm -ivh --nodeps packagename.i386.rpm
the reason for the --nodeps, is you will enter dependency Hell if you have a multiple package rpm produced for the install.
Hope this helps someone out there.
-O.