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

Peter Lemenkov lemenkov at gmail.com
Fri Apr 19 09:00:31 UTC 2013


Hello All!

2013/4/19 Alexey I. Froloff <raorn at raorn.name>:

> What's the point of using %{macro} form for some, but not all
> macros?

That's mostly a cosmetic issue but sometimes this *could* cause a real problem.

Let's say someone defines a macro "_bindirmacro", and actually starts
using it in a spec-files. Then there will be an ambiguity during
substituting %_bindirmacro - is this %{_bindir}macro or
%{_bindirmacro}? Adding brackets will resolve this.

I saw this issue once but didn't remember exact details.

--
With best regards, Peter Lemenkov.


More information about the packaging mailing list