Ok, I'm able to reproduce this now. Attached is a smaller spec file that shows the same problem like so:
$ rpmbuild -bb --target=x86_64-linux lp-1058378.spec builds fine $ rpmbuild -bb --target=i386-linux lp-1058378.spec error: /home/mike/lp-1058378.spec:19: Got a %endif with no %if I think the problem is that macros are now not expanded in the false condition of an if-else, so the second %if_target_cpu is not expanded and the parser sees an extra %endif. This is an issue with rpm upstream, also fails for me in Fedora 18 alpha. I can ask about this upstream to see if this behavior is intentional or a bug. ** Attachment added: "lp-1058378.spec" https://bugs.launchpad.net/ubuntu/+source/rpm/+bug/1058378/+attachment/3359684/+files/lp-1058378.spec ** Changed in: rpm (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058378 Title: Got a %endif with no %if To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rpm/+bug/1058378/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
