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