Skip to content

Commit

Permalink
Merge pull request #5862 from davidlange6/dl200526
Browse files Browse the repository at this point in the history
make pcms for tinyxml and clhep
  • Loading branch information
davidlange6 authored May 26, 2020
2 parents f6aaeea + 7a9097d commit c48a0d2
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmssw-tool-conf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ Requires: OpenBLAS-toolfile
Requires: mxnet-predict-toolfile
Requires: mkfit-toolfile
Requires: dablooms-toolfile
Requires: pcm_util-toolfile

# Only for Linux platform.
%ifos linux
Expand Down
20 changes: 20 additions & 0 deletions pcm_util-toolfile.spec
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

30 changes: 30 additions & 0 deletions pcm_util.spec
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/.

0 comments on commit c48a0d2

Please sign in to comment.