For those looking for a method for either patching kernel modules and rebuilding them (ie in my case - patching netjet drivers for voice support) or building new modules such as XFS file system support - I have documented a howto
here. This is method does not require any kernel compilation.
As it is part of a bigger howto - at the point it mentions
sh /mythtv/mythmisc/devtools
you would do
yum install kernel-source
instead. You can ignore the QT portion unless you have a need for it. Incidentally - both
'yum install kernel-source' and 'yum install kernel-sourcecode' are identical and produce the same result. Approx 90meg of files.
For those that have a third party driver (perhaps a nvidia driver - or some such) then you can more than likely just install the kernel-development package and gcc (compiler).
yum install kernel-devel gcc