[opensuse-factory] nodejs for Leap 42.3

Hi, I have one nodejs-package that needs to distinguish between npm4 and npm6 %if %{?suse_version} > 1320 BuildRequires: npm6 BuildRequires: nodejs6-devel %else BuildRequires: nodejs-devel %endif That works fine for Leap 42.1, 42.2 and TW, but fails for 42.3 Error message: have choice for nodejs-devel: nodejs4-devel nodejs6-devel, have choice for nodejs-devel needed by nodejs-packaging: nodejs4-devel nodejs6-devel, have choice for nodejs-devel needed by nodejs-packaging: nodejs4-devel nodejs6- devel IMHO %{?suse_version} > 1320 should fit for Leap 42.3, no? Cheers Axel -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Mon, 03 Jul 2017 22:41:56 +0200 schrieb Axel Braun <axel.braun@gmx.de>:
IMHO %{?suse_version} > 1320 should fit for Leap 42.3, no?
1320 is 13.2, everything higher is Tumbleweed. Leap is 1315, the individual 42.x and SLE12 have sle_version: %if 0%{?sle_version} == 120100 # Leap 42.1 %if 0%{?sle_version} == 120200 # Leap 42.2 %if 0%{?sle_version} == 120300 # Leap 42.3 SLE or not is to be checked with %if 0%{?is_opensuse} At some point "leap_version" was added. Olaf

On 07/03/2017 03:41 PM, Axel Braun wrote:
I have also struggled with distinguishing between TW and Leap 42.3. If you want to select only Leap 42.3, then use %if 0%{?sle_version} == 120300 If I understand your problem correctly, then %if %{?suse_version} > 1320 && 0%{?sle_version} != 120300 should make 42.3 select the else branch. Larry -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Mon, 2017-07-03 at 22:41 +0200, Axel Braun wrote:
no https://en.opensuse.org/openSUSE:How_to_contribute_to_Leap Cheers, Dominique
participants (4)
-
Axel Braun
-
Dominique Leuenberger / DimStar
-
Larry Finger
-
Olaf Hering