From c5706f56a1ec7049b00fe040c212202a6adbd1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 11 Aug 2016 13:53:48 +0000 Subject: [PATCH] Accepting request 418297 from home:lnussel:branches:openSUSE:Tools - calculate leap version for default config OBS-URL: https://build.opensuse.org/request/show/418297 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build?expand=0&rev=287 --- build.changes | 5 +++++ build.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/build.changes b/build.changes index fd18880..28492ac 100644 --- a/build.changes +++ b/build.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Aug 10 11:51:43 UTC 2016 - lnussel@suse.de + +- calculate leap version for default config + ------------------------------------------------------------------- Tue Aug 9 13:36:48 UTC 2016 - adrian@suse.de diff --git a/build.spec b/build.spec index fd9f764..4802304 100644 --- a/build.spec +++ b/build.spec @@ -140,9 +140,11 @@ chmod 0644 $RPM_BUILD_ROOT/usr/lib/build/initvm.* # main make DESTDIR=$RPM_BUILD_ROOT install cd $RPM_BUILD_ROOT/usr/lib/build/configs/ -%if "%{?suse_version}" == "1315" && 0%{?is_opensuse} -# super special leap distro - ln -s sl42.1.conf default.conf +%if 0%{?sle_version} && 0%{?is_opensuse} + # super special leap distro + major="$[%sle_version/10000+30]" + minor="$[%sle_version/100-1200]" + ln -s sl$major.$minor.conf default.conf %else %if 0%{?suse_version} %if 0%{?sles_version}