![](https://seccdn.libravatar.org/avatar/2f3d52f7ee9cca8029b49e42ec90577c.jpg?s=120&d=mm&r=g)
On 18/06/2016 07:13, Andrei Borzenkov wrote:
18.06.2016 08:10, Dave Plater пишет:
On 17/06/2016 23:45, Ondřej Súkup wrote:
I just read the link and at the bottom it states that both openSUSE:Leap:42.1 and 42.2 will be %suse_version 1315, is this intended? Can't Leap:42.2 at least be 1316 or better still 1335.
SLES has a different %suse_version for SP2. no , SLE12 ,SP1 and SP2 have suse_version = 1315 , and sles_version = 120000 , 120100 and 120200 + Leap has defined is_opensuse = 1
Exactly what my point is, you can distinguish between SLE12 SP1 and SP2 but you cannot distinguish between Leap:42.1 and 42.2 ie. %if %sles_version > 120100 identifies SP 2 only but there is no macro to identify Leap:42.2.
Now read message you responded to once more.
%sles_version == 120200 && %is_opensuse == 1
I'm confused, on my Leap:42.1 system rpm --eval %sles_version 0 %suse_version evaluates to 1315 %is_opensuse evaluates to 1, if Leap42.2 has a sles_version of 0 as well then there is no way to inform rpmbuild whether it is building for Leap:42.1 or 42.2 or are you stating that Leap:42.2 will have a sles_version as well as a suse_version? I apologize if you were agreeing with my first statement, there are many english languages in this world and it's difficult to understand them all. Dave -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org