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
This commit is contained in:
Nicolas Morey 2023-10-10 13:57:48 +00:00 committed by Git OBS Bridge
parent 64e40dd105
commit c4a21f8bf2
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 10 09:44:40 UTC 2023 - Nicolas Morey <nicolas.morey@suse.com>
- Drop %vers macro so that the Version tag can be parsed more easily
-------------------------------------------------------------------
Mon Oct 2 07:35:01 UTC 2023 - Nicolas Morey <nicolas.morey@suse.com>

View File

@ -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