From SpectLog
Jump to: navigation, search

Problem

RPM expands %configure even inside comments. This action expands environment variables like CFLAGS causing compilation to fail.

Solution

Reference: http://www.rpm.org/max-rpm-snapshot/ch-rpm-specref.html

Comments can be placed in any section of the spec file. Note that macros are expanded everywhere, so that with multiline macros which would only have the first line commented also escape the percent (%) character:

# %%configure