[packages/nifticlib] - fix version in cmake configs

qboosh qboosh at pld-linux.org
Sat Apr 27 20:45:06 CEST 2024


commit e9cc2449ef8b3ad8214698e616cbaa0471cd143a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Apr 27 20:30:49 2024 +0200

    - fix version in cmake configs

 nifticlib.spec | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/nifticlib.spec b/nifticlib.spec
index 3b59833..571e3b5 100644
--- a/nifticlib.spec
+++ b/nifticlib.spec
@@ -50,6 +50,9 @@ Pliki nagłówkowe bibliotek C niftilib.
 %setup -q -n nifti_clib-%{version}
 %patch1 -p1
 
+# version is set from git tag, but no git metadata in archive
+%{__sed} -i -e 's/if( NOT GIT_REPO_VERSION )/if( TRUE )/; s/set(GIT_REPO_VERSION "0\.0\.0\.0")/set(GIT_REPO_VERSION "%{version}")/' CMakeLists.txt
+
 %build
 install -d build
 cd build
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nifticlib.git/commitdiff/e9cc2449ef8b3ad8214698e616cbaa0471cd143a



More information about the pld-cvs-commit mailing list