On Fri, Dec 25, 2015 at 2:10 AM, Jason L Tibbitts III <tibbs(a)math.uh.edu> wrote:
>>>>> "JJ" == Jerry James
<loganjerry(a)gmail.com> writes:
JJ> This uses a %define inside the %check script as a convenient macro,
JJ> used only inside the %check script; i.e., it really is a local
JJ> definition.
But %define isn't a "local definition" in the sense that you're
thinking
of. It's certainly visible outside of %check, for example. Which
actual property of %define are you relying upon here? I don't think
you're doing anything specific with nested macro expansions.
Also, if the definitions are really local to some specfile shell code
sections, there's probably no need to involve rpm in them at all --
regular shell variables or functions can be used instead.