[opensuse-packaging] SuSE version macros
HI! Is there a comprehensible list/table of SuSE version macros usable in .spec files and some hints how they should be used? I'm having a hard time to distinguish SLES 11SP3, SLES12 and openSUSE 13.1+ to set right dependencies. Ciao, Michael.
On Thu, 2014-12-11 at 16:14 +0100, Michael Ströder wrote:
HI!
Is there a comprehensible list/table of SuSE version macros usable in .spec files and some hints how they should be used?
I'm having a hard time to distinguish SLES 11SP3, SLES12 and openSUSE 13.1+ to set right dependencies.
Ciao, Michael.
Michael, we have https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Dete... 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) Cheers, Dominique -- Dimstar / Dominique Leuenberger <dimstar@opensuse.org> -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hei, On 12/11/2014 04:20 PM, Dimstar / Dominique Leuenberger wrote:
On Thu, 2014-12-11 at 16:14 +0100, Michael Ströder wrote:
HI!
Is there a comprehensible list/table of SuSE version macros usable in .spec files and some hints how they should be used?
I'm having a hard time to distinguish SLES 11SP3, SLES12 and openSUSE 13.1+ to set right dependencies.
Ciao, Michael.
Michael,
we have https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Dete...
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 or %define with_geoip %suse_version >= 1210 to make sure, that something is defined only on openSUSE, but not on SLES. What is the correct way if I want to compile my package (syslog-ng) also on SLES12? Bye, CzP -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
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.
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.
participants (4)
-
Dimstar / Dominique Leuenberger
-
Michael Ströder
-
Peter Czanik
-
Yamaban