Florin Andrei wrote:
Apply this patch to the scripts/package/mkspec file (careful, at least one line is wrapped by the Gmane mail archive, so unwrap manually):
http://thread.gmane.org/gmane.linux.kernel/593172
Or just use the patch file attached to this message if the mail archive doesn't work for you. Either way, the command to apply the patch is the same - from within the kernel source tree, run:
patch -p1 < mkspec.patch
Do "make rpm"
Forgot to mention - for that patch to work, before running "make rpm" you have to execute "export RPM_RH5_STYLE=true", otherwise the features in the mkspec patch are not activated.