Hide Forgot
Description of problem: RPM cannot handle the following construct %{?condition:bash -c " \} some command \ with plenty of options \ %{?condition:"} The idea is to wrap some command by external command, only when condition is valid. When building, everything is ignored since begin of the construct till begin of the next section
You need to double-escape the backslash inside macros as \ is a line-continuation marker for the macro body itself. This works: %{?condition:bash -c " \\} some command \ with plenty of options \ %{?condition:"}
But again, then there is bug. The following is the content of the script. Why is there double backslash? bash -c " \\ some command \ with plenty of options \ "