From 159a08696bf620081279099f0d25b9b62b75d37b89cccc900296ba1522d9e048 Mon Sep 17 00:00:00 2001 From: Nicolas Morey Date: Tue, 10 Oct 2023 13:57:23 +0000 Subject: [PATCH] Accepting request 1116688 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/1116688 OBS-URL: https://build.opensuse.org/package/show/science:HPC/mpiP?expand=0&rev=42 --- mpiP.changes | 5 +++++ mpiP.spec | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/mpiP.changes b/mpiP.changes index 18fde37..a81ae1e 100644 --- a/mpiP.changes +++ b/mpiP.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 10 09:40:37 UTC 2023 - Nicolas Morey + +- Drop %vers macro so that the Version tag can be parsed more easily + ------------------------------------------------------------------- Mon Oct 24 06:45:37 UTC 2022 - Steve Kowalik diff --git a/mpiP.spec b/mpiP.spec index fa2a2ce..7ae0077 100644 --- a/mpiP.spec +++ b/mpiP.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,6 @@ %global flavor @BUILD_FLAVOR@%{nil} %define pname mpiP -%define vers 3.5 %define _vers 3_5 %if 0%{?sle_version} >= 150200 @@ -259,7 +258,7 @@ Name: %{?hpc_package_name:%{hpc_package_name %_vers}}%{!?hpc_package_n Summary: A profiling library for MPI applications License: BSD-3-Clause Group: Development/Tools/Debuggers -Version: %vers +Version: 3.5 Release: 0 URL: https://github.com/LLNL/mpiP Source0: https://github.com/LLNL/mpiP/releases/download/%{version}/mpip-%{version}.tgz#/%{pname}-%{version}.tgz @@ -320,6 +319,10 @@ This contains the documentation. %{hpc_master_package doc} +%if "%(echo %version | tr '.' '_')" != "%_vers" +%{error: Fix _vers variable to match package version!} +%endif + %prep %setup -q -n %{pname}-%{version} %autopatch -p1