old sle 11 and opensuse fix

Rev openSUSE:Tools/315 Md5 ddc1f34f8b1570cf462f0f0e4c85de02 2017-07-20 16:41:00 adrianSuSE None
This commit is contained in:
OBS User adrianSuSE 2017-07-20 16:41:00 +00:00 committed by Git OBS Bridge
parent 0fd8ec5014
commit 4fe7f56baf

View File

@ -149,7 +149,7 @@ ln -s sl42.${SLE_V:3:1}.conf default.conf
# this is SUSE Leap 15 and higher
ln -s sl${SLE_V:0:2}.${SLE_V:3:1}.conf default.conf
%endif
%if !0%{?sle_version} && 0%{?is_opensuse}
%if !0%{?sle_version} && ( 0%{?suse_version} <= 1310 || 0%{?suse_version} == 1320 || 0%{?suse_version} == 1330 )
# this is old openSUSE releases and Factory
ln -s sl${SUSE_V:0:2}.${SUSE_V:2:1}.conf default.conf
%endif
@ -157,6 +157,10 @@ ln -s sl${SUSE_V:0:2}.${SUSE_V:2:1}.conf default.conf
# this is SUSE SLE 12 and higher
ln -s sle${SLE_V:0:2}.${SLE_V:3:1}.conf default.conf
%endif
%if 0%{?sles_version} == 1110
# this is SUSE SLE 11
ln -s sles11sp2.conf default.conf
%endif
# make sure that we have a config
test -e default.conf || exit 1
%endif