File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ### RPM external celeritas 0.6.3
2- Source: https://github.com/celeritas-project/celeritas/releases/download/v%{realversion }/celeritas-%{realversion }.tar.gz
1+ ### RPM external celeritas 0.7.0-devX
2+ %define tag 1fb77992ff4a8b6da8cc8d8630df3727a3c33cf3
3+ %define branch develop
4+ %define github_user celeritas-project
5+ Source: git+https://github.com/%{github_user }/celeritas.git?obj= %{branch }/%{tag }&export= %{n }-%{realversion }&output= /%{n }-%{realversion }-%{tag }.tgz
36
47%define package_build_flags -Wall -Wextra -pedantic
58## INCLUDE geant4-deps
69Requires: python3 json geant4 g4vg
710
811%prep
9- %setup -c - n %{n }-%{realversion }
12+ %setup -n %{n }-%{realversion }
1013
1114%build
1215
Original file line number Diff line number Diff line change 11diff --git a/CMakeLists.txt b/CMakeLists.txt
2- index dad4bdc..2886ead 100644
2+ index 2db3a68..5363894 100644
33--- a/CMakeLists.txt
44+++ b/CMakeLists.txt
5- @@ -17 ,7 +17 ,7 @@ include(ExternalProject )
5+ @@ -127 ,7 +127 ,7 @@ option(VECGEOM_SANITIZER "Enable memory sanitizer." OFF )
66
7- # Set VecGeom_VERSION using git tags or release metadata
8- include("${CMAKE_CURRENT_LIST_DIR}/cmake/CgvFindVersion.cmake")
9- - cgv_find_version(VecGeom)
10- + #cgv_find_version(VecGeom)
11- message(STATUS "VecGeom version string: ${VecGeom_VERSION_STRING}")
12-
13- project(VecGeom
14- @@ -111,7 +111,7 @@ option(VECGEOM_SANITIZER "Enable memory sanitizer." OFF)
15-
167 set(VECGEOM_ISAS empty)
178 if(CMAKE_SYSTEM_PROCESSOR MATCHES "(i686|x86_64)")
189- set(VECGEOM_ISAS sse2 sse3 ssse3 sse4.1 sse4.2 avx avx2 native empty)
Original file line number Diff line number Diff line change 1- ### RPM external vecgeom v2.0 .0
1+ ### RPM external vecgeom 2.1 .0
22## INCLUDE compilation_flags
33## INCLUDE compilation_flags_lto
44## INCLUDE cpp-standard
55## INCLUDE microarch_flags
66
7- %define tag %{realversion }
7+ %define tag v %{realversion }
88%define branch master
99Source: git+https://gitlab.cern.ch/VecGeom/VecGeom.git?obj= %{branch }/%{tag }&export= %{n }-%{realversion }&output= /%{n }-%{realversion }.tgz
1010Patch0: vecgeom-fix-vector
@@ -18,6 +18,8 @@ Requires: xerces-c
1818%prep
1919%setup -n %{n }-%{realversion }
2020%patch0 -p1
21+ grep -q ' set(VecGeom_VERSION\s*' CMakeLists.txt
22+ sed -i -e ' s|set(VecGeom_VERSION *.*|set(VecGeom_VERSION %{realversion})|' CMakeLists.txt
2123
2224%build
2325%ifarch x86_64
@@ -34,7 +36,6 @@ cmake ../%{n}-%{realversion} \
3436 -DVecGeom_GIT_DESCRIBE= "%{vecgeom_version };;" \
3537 -DCMAKE_INSTALL_PREFIX= %{i } \
3638 -DBUILD_TESTING= OFF \
37- -DVecGeom_VERSION= %{vecgeom_version } \
3839 -DCMAKE_CXX_STANDARD:STRING= "%{cms_cxx_standard }" \
3940 -DCMAKE_AR= $(which gcc-ar) \
4041 -DCMAKE_RANLIB= $(which gcc-ranlib) \
You can’t perform that action at this time.
0 commit comments