Red Hat Bugzilla – Bug 961833
[RFE] rpmbuild option to show what packages would be built
Last modified: 2016-03-09 08:53:49 EST
Description of problem:
I've got a complex rpm I use internally, it has a number of defines and so forth. It would be nice to have some sort of rpmbuild option to show what packages would be built from 'rpmbuild -ba' if I were to run it. This would greatly simplify my development.
A more public example of this type of complexity is the ZFS on Linux RPMS.
Version-Release number of selected component (if applicable):rpm-18.104.22.168-2.fc20
How reproducible: always
Steps to Reproduce:
1. take complex rpm spec
2. make some changes to how the complexity is resolved
3. wish I could check what would build without actually building it, in case I made an error
have to build the package
some way of checking what it wants to do before doing it.
'rpmspec -q <spec>' (and --parse) should help debugging complex specs, but its currently missing an option to only show the packages that would be built (ie packages that have a %files section).