Description of Problem: Currently when I'm going to skip building unnecessary components I must first install source rpm, make necessary changes to spec file and then manually build the package. I propose using macros, mentioned in 'conditionalbuilds' document, in the spec file Version-Release number of selected component (if applicable): rpm-4.0.4-7x
Created attachment 62947 [details] This patch enables conditional building the rpm from the command line (via --rebuild switch) without modifying the spec file
Your change is perfectly sensible, and problaly correct. However, the rpm specfile cannot rely on conventions of current rpm, and must be as simple as possible for me to build with any legacy version of rpm, even versiosn that did not implement the --with macros from the command line. There's certainly nothing stopping you from packaging rpm any way that you wish, however.