I’ve having trouble getting the OBS to recognise an if statement using the %suse_version variable in a spec file.
The if statements that are giving me trouble begin on line 14 and 88 in the spec file.
As far as I can tell, %suse_version for OpenSUSE 13.2 and Leap 42.1 are 1320 and 1315, respectively, so I have no clue as to why the if statements are not running correctly. Would anyone know what I’ve done wrong here?
Ah, my mistake. I had assumed that since spec files support %if and %else, %elseif would also be supported.
Many thanks for pointing that out, I would never have solved that on my own.