From c4a21f8bf234c79ef7850f7cfbc0d2fb83ebdd73b5027d503430a84cd762bcad Mon Sep 17 00:00:00 2001 From: Nicolas Morey Date: Tue, 10 Oct 2023 13:57:48 +0000 Subject: [PATCH] Accepting request 1116692 from home:NMorey:branches:science:HPC - Drop %vers macro so that the Version tag can be parsed more easily OBS-URL: https://build.opensuse.org/request/show/1116692 OBS-URL: https://build.opensuse.org/package/show/science:HPC/openmpi4?expand=0&rev=30 --- openmpi4.changes | 5 +++++ openmpi4.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/openmpi4.changes b/openmpi4.changes index 89f0666..7928619 100644 --- a/openmpi4.changes +++ b/openmpi4.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 10 09:44:40 UTC 2023 - Nicolas Morey + +- Drop %vers macro so that the Version tag can be parsed more easily + ------------------------------------------------------------------- Mon Oct 2 07:35:01 UTC 2023 - Nicolas Morey diff --git a/openmpi4.spec b/openmpi4.spec index 3183ba1..1d5b79d 100644 --- a/openmpi4.spec +++ b/openmpi4.spec @@ -42,7 +42,6 @@ # % define build_static_devel 1 %global pname openmpi -%global vers 4.1.6 %define _vers 4_1_6 %define m_f_ver 4 %bcond_with ringdisabled @@ -133,7 +132,7 @@ ExclusiveArch: do_not_build ############################################################################# Name: %{package_name}%{?testsuite:-testsuite} -Version: %{vers} +Version: 4.1.6 Release: 0 Summary: An implementation of MPI/SHMEM (Version %{m_f_ver}) License: BSD-3-Clause @@ -396,6 +395,10 @@ This RPM contains the configuration files for OpenMPI runtime (Version 3). %endif # ?with_hpc %endif # !testsuite +%if "%(echo %version | tr '.' '_')" != "%_vers" +%{error: Fix _vers variable to match package version!} +%endif + ############################################################################# # # Prepatory Section