-
Notifications
You must be signed in to change notification settings - Fork 183
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 #5862 from davidlange6/dl200526
make pcms for tinyxml and clhep
- Loading branch information
Showing
3 changed files
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### RPM external pcm_util-toolfile 1.0 | ||
Requires: pcm_util | ||
%prep | ||
|
||
%build | ||
|
||
%install | ||
|
||
mkdir -p %i/etc/scram.d | ||
cat << \EOF_TOOLFILE >%i/etc/scram.d/pcm_util.xml | ||
<tool name="pcm_util" version="@TOOL_VERSION@"> | ||
<client> | ||
<environment name="PCM_UTIL_BASE" default="@TOOL_ROOT@"/> | ||
</client> | ||
<runtime name="CLING_PREBUILT_MODULE_PATH" value="$PCM_UTIL_BASE/lib" type="path"/> | ||
</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,30 @@ | ||
### RPM external pcm_util 1.0 | ||
|
||
Source: none | ||
BuildRequires: root clhep tinyxml2 | ||
|
||
%prep | ||
|
||
|
||
%build | ||
|
||
rm -f empty.h | ||
rm -f dummy.modulemap | ||
|
||
touch empty.h | ||
echo "module Dummy{}" > dummy.modulemap | ||
|
||
rm -f dummy_dict.cc | ||
rm -f libDummy.so | ||
rootcling dummy_dict.cc -moduleMapFile=${CLHEP_ROOT}/include/module.modulemap -s ./libDummy.so -moduleMapFile=dummy.modulemap -cxxmodule -m clhep -mByproduct clhep -I ${CLHEP_ROOT}/include/ empty.h | ||
|
||
rm -f dummy_dict.cc | ||
rm -f libDummy.so | ||
rootcling dummy_dict.cc -s ./libDummy.so -moduleMapFile=dummy.modulemap -cxxmodule -m tinyxml2 -mByproduct tinyxml2 -I ${TINYXML2_ROOT}/include/ empty.h | ||
|
||
|
||
%install | ||
|
||
mkdir %{i}/lib | ||
cp clhep.pcm %{i}/lib/. | ||
cp tinyxml2.pcm %{i}/lib/. |