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-4.11.0.1-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 Actual results: have to build the package Expected results: some way of checking what it wants to do before doing it. Additional info:
'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).
Fixed upstream: https://github.com/rpm-software-management/rpm/commit/5490887c3a878fbde742ec16ed3dc39acfd30e0d