Description of Problem: a parse error will result when a nested %if is coded in the false part of the outer %if. This does depend on how the actual variables are set. Version-Release number of selected component (if applicable): 4.0.4 How Reproducible: Always Steps to Reproduce: 1. cp test.spec /usr/src/redhat/SPECS/ 2. rpm -bb /usr/src/redhat/SPECES/test.spec 3. Actual Results: error: parse error in expression error: /usr/src/redhat/SPECS/pam-pvmodules.test.spec:11: parseExpressionBoolean returns -1 Expected Results: rpm should at least go through the rest of the spec file. This particular spec file is a trimmed version to illustrate the problem, and many things are missing from it. Additional Information: The spec file is provided as an attachment, it is not completely functional as supplied. the two build variables can be changed to 0 and one of the other nested if groups will give the error message
Created attachment 58984 [details] specfile that illustrates the problem
And this bug still exists in 7.3 )-:
Created attachment 62965 [details] shorter test case
Closing bugs on older, no longer supported, releases. Apologies for any lack of response. For RPM issues, please try a current release such as Fedora Core 4; if bugs persist, please open a new issue.