Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions geant4.spec
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ cmake ../%{n}.%{realversion} \
-DCMAKE_AR=$(which gcc-ar) \
-DCMAKE_RANLIB=$(which gcc-ranlib) \
-DCMAKE_INSTALL_PREFIX:PATH="%i" \
-DCMAKE_CXX_STANDARD:STRING="17" \
-DCMAKE_BUILD_TYPE=Release \
-DGEANT4_USE_GDML=ON \
-DGEANT4_BUILD_CXXSTD:STRING="17" \
-DGEANT4_BUILD_TLS_MODEL:STRING="global-dynamic" \
-DGEANT4_ENABLE_TESTING=OFF \
-DGEANT4_BUILD_VERBOSE_CODE=OFF \
Expand All @@ -64,7 +64,7 @@ cmake ../%{n}.%{realversion} \
-DGEANT4_INSTALL_EXAMPLES=OFF \
-DGEANT4_USE_SYSTEM_CLHEP=ON \
-DGEANT4_USE_SYSTEM_EXPAT=ON \
-DCMAKE_PREFIX_PATH="${XERCES_C_ROOT};${CLHEP_ROOT};${EXPAT_ROOT};${ZLIB_ROOT};${VECGEOM_ROOT}" \
-DCMAKE_PREFIX_PATH="${XERCES_C_ROOT};${CLHEP_ROOT};${EXPAT_ROOT};${ZLIB_ROOT};${VECGEOM_ROOT};${VECCORE_ROOT}" \
-DGEANT4_USE_SYSTEM_ZLIB=ON \
-DGEANT4_BUILD_MULTITHREADED=ON

Expand Down
7 changes: 7 additions & 0 deletions scram-tools.file/tools/veccore/veccore.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<tool name="veccore" version="@TOOL_VERSION@">
<info url="https://github.com/root-project/veccore"/>
<client>
<environment name="VECCORE_BASE" default="@TOOL_ROOT@"/>
<environment name="INCLUDE" default="$VECCORE_BASE/include"/>
</client>
</tool>
2 changes: 1 addition & 1 deletion scram-tools.file/tools/vecgeom/vecgeom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<lib name="vecgeom"/>
<client>
<environment name="VECGEOM_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$VECGEOM_BASE/lib"/>
<environment name="LIBDIR" default="$VECGEOM_BASE/lib64"/>
</client>
<use name="vecgeom_interface"/>
</tool>
30 changes: 30 additions & 0 deletions veccore.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
### RPM external veccore 0.8.0
## INCLUDE compilation_flags
Source: https://github.com/root-project/veccore/archive/refs/tags/v%{realversion}.tar.gz

BuildRequires: cmake gmake

%prep
%setup -n %{n}-%{realversion}

%build
rm -rf ../build
mkdir ../build
cd ../build

cmake ../%{n}-%{realversion} \
-DCMAKE_INSTALL_PREFIX:PATH="%i" \
%if "%{?arch_build_flags}"
-DCMAKE_CXX_FLAGS="%{arch_build_flags}" \
%endif
-DCMAKE_BUILD_TYPE=Release

make %{makeprocesses}

%install
cd ../build
make %{makeprocesses} install

%post
%{relocateConfig}lib/cmake/VecCore/*.cmake

18 changes: 11 additions & 7 deletions vecgeom.spec
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
### RPM external vecgeom v1.1.18
### RPM external vecgeom v1.1.20
## INCLUDE compilation_flags
%define tag 0afdb8f87dbf1293a4a46b5efa3fe03dd345d302
%define tag ccc45b15420e60f39b60107795a85fed12332005
Source: git+https://gitlab.cern.ch/VecGeom/VecGeom.git?obj=master/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz
BuildRequires: cmake gmake
%define keep_archives true

%define vecgeom_backend Scalar
Patch0: vecgeom-fix-vector

%prep
Expand All @@ -19,24 +19,28 @@ cd ../build

cmake ../%{n}-%{realversion} \
-DCMAKE_INSTALL_PREFIX=%{i} \
-DCMAKE_INSTALL_LIBDIR=%{i}/lib \
-DCMAKE_CXX_STANDARD:STRING="17" \
-DROOT=OFF \
-DCMAKE_AR=$(which gcc-ar) \
-DCMAKE_RANLIB=$(which gcc-ranlib) \
-DCMAKE_BUILD_TYPE=Release \
-DNO_SPECIALIZATION=ON \
-DBACKEND=Scalar \
-DBUILTIN_VECCORE=ON \
-DBACKEND=%{vecgeom_backend} \
%ifarch x86_64
%if "%{vecgeom_backend}" == "Vc"
-DVECGEOM_VECTOR=sse3 \
%endif
%endif
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DCMAKE_CXX_STANDARD=17 \
%if "%{?arch_build_flags}"
-DCMAKE_CXX_FLAGS="%{arch_build_flags}" \
%endif
-DGEANT4=OFF
-DGEANT4=OFF \
-DDATA_DOWNLOAD=OFF

make %{makeprocesses}
make %{makeprocesses} VERBOSE=1

%install
cd ../build
Expand Down