Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make pcms for tinyxml and clhep #5862

Merged
merged 3 commits into from
May 26, 2020
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
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/.