Finally, i find the answer by myself, just add line

%debug_package

in spec file. thank you for your active responses.

On Thu, Jun 30, 2011 at 7:17 PM, Joseph L. Casale <jcasale@activenetwerx.com> wrote:
>> debuginfo package, it is invalid to put "%define debug_package 1" in
>> spec file, anybody knows how to enable this? Thank in advance.
>I am running F14 and when I rpmbuild, I always get the debuginfo package
>also built.

Although you only need rpm-build to build one, the addition of redhat-rpm-config
changes the default behavior and builds the debug packages by default.

See http://fedoraproject.org/wiki/How_to_create_an_RPM_package#Miscellaneous_hints
for the correct syntax...

hth,
jlc