On Fri, 2012-05-11 at 09:03 +0200, Peter Kruse wrote: > you need a spec file for building rpms, and this is a comment > > # %__build_body > > right? > > wrong. > > Because > http://www.rpm.org/max-rpm-snapshot/ch-rpm-inside.html#S1-RPM-INSIDE-COMMENTS > states: > > Note that macros are expanded everywhere, so with multiline macros > which would only have the first line commented also escape the percent > (%) > character: > > Macros inside of comments are expanded...
It's traditional to replace the % with a # to comment out a macro, as a workaround for this obviously insane behaviour. Cheers, Martin