[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:
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

On Sat, 13 Dec 2014 16:03, Michael Ströder <michael@...> wrote:
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.

On Thu, 2014-12-11 at 16:14 +0100, Michael Ströder wrote:
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

On Sat, 13 Dec 2014 16:03, Michael Ströder <michael@...> wrote:
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