From 64f5331427bec15809c9cdd6d62530c54a65f33b Mon Sep 17 00:00:00 2001 From: tigro Date: Mon, 26 Feb 2024 22:02:44 +0300 Subject: [PATCH] Update spec --- leapp-data.spec | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/leapp-data.spec b/leapp-data.spec index a8f2f1d..b468fbb 100644 --- a/leapp-data.spec +++ b/leapp-data.spec @@ -1,41 +1,44 @@ -%define dist_list almalinux centos eurolinux oraclelinux rocky -%define conflict_dists() %(for i in almalinux centos eurolinux oraclelinux rocky; do if [ "${i}" != "%{dist_name}" ]; then echo -n "leapp-data-${i} "; fi; done) +%define dist_list almalinux centos eurolinux msvsphere oraclelinux rocky +%define conflict_dists() %(for i in almalinux centos eurolinux msvsphere oraclelinux rocky; do if [ "${i}" != "%{dist_name}" ]; then echo -n "leapp-data-${i} "; fi; done) %if 0%{?rhel} == 7 -%if %{dist_name} == "almalinux" +%if "%{dist_name}" == "almalinux" %define gpg_key RPM-GPG-KEY-AlmaLinux-8 %endif -%if %{dist_name} == "centos" +%if "%{dist_name}" == "centos" %define gpg_key RPM-GPG-KEY-CentOS-Official %endif -%if %{dist_name} == "eurolinux" +%if "%{dist_name}" == "eurolinux" %define gpg_key RPM-GPG-KEY-eurolinux8 %endif -%if %{dist_name} == "oraclelinux" +%if "%{dist_name}" == "msvsphere" +%define gpg_key RPM-GPG-KEY-MSVSphere-8 +%endif +%if "%{dist_name}" == "oraclelinux" %define gpg_key RPM-GPG-KEY-oracle-ol8 %endif -%if %{dist_name} == "rocky" +%if "%{dist_name}" == "rocky" %define gpg_key RPM-GPG-KEY-Rocky-8 %endif %endif %if 0%{?rhel} == 8 -%if %{dist_name} == "almalinux" +%if "%{dist_name}" == "almalinux" %define gpg_key RPM-GPG-KEY-AlmaLinux-9 %endif -%if %{dist_name} == "centos" +%if "%{dist_name}" == "centos" %define gpg_key RPM-GPG-KEY-CentOS-Official %endif -%if %{dist_name} == "eurolinux" +%if "%{dist_name}" == "eurolinux" %define gpg_key RPM-GPG-KEY-eurolinux9 %endif -%if %{dist_name} == "msvsphere" +%if "%{dist_name}" == "msvsphere" %define gpg_key RPM-GPG-KEY-MSVSphere-9 %endif -%if %{dist_name} == "oraclelinux" +%if "%{dist_name}" == "oraclelinux" %define gpg_key RPM-GPG-KEY-oracle-ol9 %endif -%if %{dist_name} == "rocky" +%if "%{dist_name}" == "rocky" %define gpg_key RPM-GPG-KEY-Rocky-9 %endif %endif