From 7913b27aacdc9de44c734bc9dd7dfad7dd517935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 20 Jul 2017 16:41:00 +0000 Subject: [PATCH] old sle 11 and opensuse fix OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build?expand=0&rev=315 --- build.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.spec b/build.spec index 8fbd3ad..6477be8 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