diff --git a/containerized-data-importer.changes b/containerized-data-importer.changes index c92376e..ffc89f7 100644 --- a/containerized-data-importer.changes +++ b/containerized-data-importer.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 3 09:54:01 UTC 2024 - Vasily Ulyanov + +- Set ExclusiveArch conditionally depending on the distro +- Remove SLE15 SP4 from the distro check (end of general support) + ------------------------------------------------------------------- Tue Nov 21 17:52:42 UTC 2023 - Vasily Ulyanov diff --git a/containerized-data-importer.spec b/containerized-data-importer.spec index 403dcc1..4af107b 100644 --- a/containerized-data-importer.spec +++ b/containerized-data-importer.spec @@ -1,7 +1,7 @@ # # spec file for package containerized-data-importer # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,19 @@ # +%if 0%{?sle_version} && !0%{?is_opensuse} +# SLE +%define _exclusive_arch x86_64 +%else +%if 0%{?suse_version} == 1600 +# ALP +%define _exclusive_arch x86_64 +%else +# TW +%define _exclusive_arch x86_64 aarch64 +%endif +%endif + Name: containerized-data-importer Version: 1.58.0 Release: 0 @@ -33,7 +46,7 @@ BuildRequires: pkgconfig BuildRequires: rsync BuildRequires: sed BuildRequires: golang(API) >= 1.20 -ExclusiveArch: x86_64 aarch64 +ExclusiveArch: %{_exclusive_arch} %description Containerized-Data-Importer (CDI) is a persistent storage management add-on for Kubernetes @@ -137,11 +150,6 @@ tar --strip-components=1 -xf %{S:0} # distro='%{?sle_version}:%{?is_opensuse}%{!?is_opensuse:0}' case "${distro}" in -150400:0) - tagprefix=suse/sles/15.4 - labelprefix=com.suse.kubevirt - registry=registry.suse.com - ;; 150500:0) tagprefix=suse/sles/15.5 labelprefix=com.suse.kubevirt @@ -158,14 +166,14 @@ case "${distro}" in registry=registry.opensuse.org ;; *) - %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 +%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