From c33799ea27d7e4964fe0dd7e6c515a78de1bd36df01e05776ded09d8af9b1f83 Mon Sep 17 00:00:00 2001 From: Vasily Ulyanov Date: Mon, 16 Oct 2023 09:20:22 +0000 Subject: [PATCH] Accepting request 1117953 from home:vulyanov:branches:Virtualization - Enable the build for ALP and remove no longer supported SLE versions from the distro check OBS-URL: https://build.opensuse.org/request/show/1117953 OBS-URL: https://build.opensuse.org/package/show/Virtualization/containerized-data-importer?expand=0&rev=69 --- containerized-data-importer.changes | 6 ++++++ containerized-data-importer.spec | 20 ++++++++------------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/containerized-data-importer.changes b/containerized-data-importer.changes index 5d9428f..0e644f6 100644 --- a/containerized-data-importer.changes +++ b/containerized-data-importer.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 18 12:36:39 UTC 2023 - Vasily Ulyanov + +- Enable the build for ALP and remove no longer supported SLE versions + from the distro check + ------------------------------------------------------------------- Tue Aug 15 15:18:09 UTC 2023 - Vasily Ulyanov diff --git a/containerized-data-importer.spec b/containerized-data-importer.spec index ccd6762..dd8cc4b 100644 --- a/containerized-data-importer.spec +++ b/containerized-data-importer.spec @@ -137,16 +137,6 @@ tar --strip-components=1 -xf %{S:0} # distro='%{?sle_version}:%{?is_opensuse}%{!?is_opensuse:0}' case "${distro}" in -150200:0) - tagprefix=suse/sles/15.2 - labelprefix=com.suse.kubevirt - registry=registry.suse.com - ;; -150300:0) - tagprefix=suse/sles/15.3 - labelprefix=com.suse.kubevirt - registry=registry.suse.com - ;; 150400:0) tagprefix=suse/sles/15.4 labelprefix=com.suse.kubevirt @@ -168,8 +158,14 @@ case "${distro}" in registry=registry.opensuse.org ;; *) - echo "Unsupported distro: ${distro}" >&2 - exit 1 + %if 0%{?suse_version} == 1600 + tagprefix=alp/kubevirt + labelprefix=com.suse.kubevirt + registry=registry.suse.com + %else + echo "Unsupported distro: ${distro}" >&2 + exit 1 + %endif ;; esac