Bug 961833 - [RFE] rpmbuild option to show what packages would be built
Summary: [RFE] rpmbuild option to show what packages would be built
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-10 13:57 UTC by jcpunk
Modified: 2016-03-09 13:53 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-09 13:53:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description jcpunk 2013-05-10 13:57:54 UTC
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:

Comment 1 Panu Matilainen 2013-07-10 07:22:13 UTC
'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).


Note You need to log in before you can comment on or make changes to this bug.