
On 07/03/2017 03:41 PM, Axel Braun wrote:
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?
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