On Thu, Apr 25, 2013 at 7:28 AM, Alexey I. Froloff <raorn(a)raorn.name> wrote:
On Thu, Apr 25, 2013 at 07:33:20AM +0900, Mamoru TASAKA wrote:
> $ rpm --eval "%{gem_install} -n foobar.gem"
And rpm --eval "%{gem_install -n foobar.gem}" expands correctly.
Yes, I am aware how RPM expands macros.
But my question was - CAN I use %macro in specs, or I MUST use
%{macro} form always, with exception for %configure (and what
else?) ?
As long as it's surrounded by whitespace, or separated from other macros by
their own '%' symbls or other separators like "/" , you should be OK.
The
point of guidelines is to provide standards and legibility, not to force
every tool in the world to be written only one way.