From 4fe7f56baf2142692d8323158b2b6b1acd8ec28c Mon Sep 17 00:00:00 2001 From: OBS User adrianSuSE Date: Thu, 20 Jul 2017 16:41:00 +0000 Subject: [PATCH] old sle 11 and opensuse fix Rev openSUSE:Tools/315 Md5 ddc1f34f8b1570cf462f0f0e4c85de02 2017-07-20 16:41:00 adrianSuSE None --- build.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.spec b/build.spec index 8fbd3ad9..6477be8f 100644 --- a/build.spec +++ b/build.spec @@ -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