[Fedora-packaging] %{macro} vs. %macro in spec files

Nico Kadel-Garcia nkadel at gmail.com
Thu Apr 25 11:42:23 UTC 2013


On Thu, Apr 25, 2013 at 7:28 AM, Alexey I. Froloff <raorn at 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.


> --
> Regards,    --
> Sir Raorn.   --- http://thousandsofhate.blogspot.com/
>
> --
> packaging mailing list
> packaging at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/packaging
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/packaging/attachments/20130425/f5c020fa/attachment.html>


More information about the packaging mailing list