Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3705 from mrodozov/bkprt-vecgeom-10-0-X
Backport vecgeom to 10_0_X
- Loading branch information
Showing
5 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
### RPM external vecgeom-toolfile 1.0 | ||
Requires: vecgeom | ||
%prep | ||
|
||
%build | ||
|
||
%install | ||
|
||
mkdir -p %i/etc/scram.d | ||
cat << \EOF_TOOLFILE >%i/etc/scram.d/vecgeom_interface.xml | ||
<tool name="vecgeom_interface" version="@TOOL_VERSION@"> | ||
<info url="https://gitlab.cern.ch/VecGeom/VecGeom"/> | ||
<client> | ||
<environment name="VECGEOM_INTERFACE_BASE" default="@TOOL_ROOT@"/> | ||
<environment name="INCLUDE" default="$VECGEOM_INTERFACE_BASE/include"/> | ||
</client> | ||
<flags CPPDEFINES="VECGEOM_SCALAR"/> | ||
<flags CPPDEFINES="VECGEOM_REPLACE_USOLIDS"/> | ||
<flags CPPDEFINES="VECGEOM_NO_SPECIALIZATION"/> | ||
<flags CPPDEFINES="VECGEOM_USOLIDS"/> | ||
<flags CPPDEFINES="VECGEOM_INPLACE_TRANSFORMATIONS"/> | ||
<flags CPPDEFINES="VECGEOM_USE_INDEXEDNAVSTATES"/> | ||
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/> | ||
<use name="root_cxxdefaults"/> | ||
</tool> | ||
EOF_TOOLFILE | ||
|
||
mkdir -p %i/etc/scram.d | ||
cat << \EOF_TOOLFILE >%i/etc/scram.d/vecgeom.xml | ||
<tool name="vecgeom" version="@TOOL_VERSION@"> | ||
<info url="https://gitlab.cern.ch/VecGeom/VecGeom"/> | ||
<lib name="vecgeom"/> | ||
<lib name="usolids"/> | ||
<client> | ||
<environment name="VECGEOM_BASE" default="@TOOL_ROOT@"/> | ||
<environment name="LIBDIR" default="$VECGEOM_BASE/lib"/> | ||
</client> | ||
<use name="vecgeom_interface"/> | ||
</tool> | ||
EOF_TOOLFILE | ||
|
||
## IMPORT scram-tools-post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
### RPM external vecgeom v00.05.00 | ||
Source: git+https://gitlab.cern.ch/VecGeom/VecGeom.git?obj=master/%{realversion}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz | ||
BuildRequires: cmake gmake | ||
%define keep_archives true | ||
|
||
%prep | ||
%setup -n %{n}-%{realversion} | ||
|
||
%build | ||
rm -rf ../build | ||
mkdir ../build | ||
cd ../build | ||
|
||
cmake ../%{n}-%{realversion} \ | ||
-DCMAKE_INSTALL_PREFIX=%{i} \ | ||
-DROOT=OFF \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DNO_SPECIALIZATION=ON \ | ||
-DBACKEND=Scalar \ | ||
-DUSOLIDS=ON \ | ||
-DUSOLIDS_VECGEOM=ON \ | ||
-DVECGEOM_VECTOR=sse3 \ | ||
-DGEANT4=OFF | ||
|
||
make %{makeprocesses} | ||
|
||
%install | ||
cd ../build | ||
make %{makeprocesses} install | ||
|
||
%post | ||
%{relocateConfig}lib/cmake/USolids/*.cmake | ||
%{relocateConfig}lib/cmake/VecCore/*.cmake | ||
%{relocateConfig}lib/cmake/VecGeom/*.cmake | ||
|