The guideline to use %global in preference to %define was
described by an RPM developer as "bad advice that spread far and
wide". This change completely reverses that advice, instructing
packagers to use %define by default and %global only when
needed.
This PR currently contains just the guidelines-text change. I'm hoping to also update many of the specfile templates and other bits of code that use %global (there are currently over 400 matches for %global in the packaging guidelines source), but that's in part pending an answer to my question over in #1449. I wanted to get this opened ASAP so everyone could decide how they feel about the wording, though.
The guideline to use
%globalin preference to%definewasdescribed by an RPM developer as "bad advice that spread far and
wide". This change completely reverses that advice, instructing
packagers to use
%defineby default and%globalonly whenneeded.
This PR currently contains just the guidelines-text change. I'm hoping to also update many of the specfile templates and other bits of code that use
%global(there are currently over 400 matches for%globalin the packaging guidelines source), but that's in part pending an answer to my question over in #1449. I wanted to get this opened ASAP so everyone could decide how they feel about the wording, though.Fixes #1449