Sunday, 25 August 2013

How to use %debug_package while using rpmbuild?

How to use %debug_package while using rpmbuild?

Linux version 2.6.18-131.el5 gcc version 4.1.2 RPM version 4.4.2.3
I use the following command to build packages: $ sudo rpmbuild -ba xxx.spec
I thought that the debuginfo package should be built by default, but only
get the xxx.src.rpm and xxx.x86_64.rpm, with no debuginfo package.
Then I add a line in my xxx.spec, "#%debug_package":

Then the debug package is built! But I thought that a line with a '#' in
the front is considered as comment! How does this work?
I'm totally confused.

No comments:

Post a Comment