Bug 67593

Summary: A means to conditionally build rpm without modifying spec file
Product: [Retired] Red Hat Linux Reporter: Dan Yefimov <dan>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-06-27 21:28:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
This patch enables conditional building the rpm from the command line (via --rebuild switch) without modifying the spec file none

Description Dan Yefimov 2002-06-27 21:26:25 UTC
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

Comment 1 Dan Yefimov 2002-06-27 21:28:21 UTC
Created attachment 62947 [details]
This patch enables conditional building the rpm from the command line (via --rebuild switch) without modifying the spec file

Comment 2 Jeff Johnson 2002-06-28 00:21:17 UTC
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.