当生成debuginfo rpm时?

我有一系列的RPM规格文件,没有设置debuginfo指令。 当我运行rpmbuild时,一些软件包会生成一个debuginfo rpm,有些则不会。 rpm用来决定是否生成debuginfo的标准是什么? 在我看来,这:

  • 只有arch包生成debuginfo(noarch包不)
  • 只有spec中的主要包才会生成debuginfo(子包不包含)

有人可以证实这些规则是否有效,是否有其他规定?

我已经安装了redhat-rpm-config,根据https://fedoraproject.org/wiki/Packaging:Debuginfo?rd=Packaging/Debuginfo ,生成debuginfo软件包的先决条件是什么。