On Sat, 13 Dec 2014 16:03, Michael Ströder <michael@...> wrote:
Peter Czanik wrote:
On 12/11/2014 04:20 PM, Dimstar / Dominique Leuenberger wrote:
Special things:
SLE11 is 'just' 1110 (same as openSUSE 11.1 was); the SPs are not represented.
SLES12 is 1315 (something between openSUSE 13.1 and 13.2 :) )
13.1 => 1310 13.2 -> 1320 Currently, Tumbleweed identifies itself as 1321 (being > 13.2) Thanks! One bonus question: how to differentiate SLES and openSUSE correctly? Until now I used: %if 0%{?suse_version} >= 1210
I also naively tried this first but because of SLES12 having suse_version==1315 this obviously fails.
Ciao, Michael.
Add another condition like this: [code] # define only on OSS >= 12.1, but not on SLE12==1315 %if 0%{?suse_version} >= 1210 && 0%{?suse_version} != 1315 define myvar %endif [/code] Please, test before active use, I'm citing from memory here. - Yamaban.