The headersinsource macro in spec doesn't work. The enclosed patch works for me.
Created attachment 3058 [details] A headersinsource patch for kernel spec
What version of rpm are you using?
I am using rpm 3.0.4-0.48 on RedHat 6.2 and rpm 4.0-0.71 on RedHat 7.0 beta RC2 with a patch. I will attatch my rpm patch.
Created attachment 3078 [details] A rpm patch for kernel spec file.
The rpm patch is to deal with the false branch like %if ! %{headersinsource} %files headers %%endif