[Bug 416248] New: rpm spec parser error
https://bugzilla.novell.com/show_bug.cgi?id=416248 Summary: rpm spec parser error Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: pzb@novell.com QAContact: adrian@novell.com Found By: --- %define with_foo 1 %if 0%{?sles_version} && 0%{?sles_version} < 11 %define with_foo 0 %endif This should end up as with_foo = 1 on all platforms but SLES10. However, it appears that the build service thinks it always evaluates to with_foo = 0. You can see this by looking at the rpmdebug page in the home:pzb project. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416248
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=416248
User adrian@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416248#c1
Adrian Schröter
https://bugzilla.novell.com/show_bug.cgi?id=416248
User pzb@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416248#c2
--- Comment #2 from Peter Bowen
Just curious, why do you not just use
%if 0%{?sles_version} < 11
?
But it should work, yes.
That would trigger for non-SLES distributions. The condition I want is "building on SLES, but not SLES 11" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=416248
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416248#c3
--- Comment #3 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=416248
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=416248#c4
Michael Schröder
participants (1)
-
bugzilla_noreply@novell.com