diff --git a/cmssw-tool-conf.spec b/cmssw-tool-conf.spec index f411c06216d..4647251c36a 100644 --- a/cmssw-tool-conf.spec +++ b/cmssw-tool-conf.spec @@ -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 diff --git a/pcm_util-toolfile.spec b/pcm_util-toolfile.spec new file mode 100644 index 00000000000..1a7e41330bb --- /dev/null +++ b/pcm_util-toolfile.spec @@ -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 + + + + + + +EOF_TOOLFILE + +## IMPORT scram-tools-post + diff --git a/pcm_util.spec b/pcm_util.spec new file mode 100644 index 00000000000..9d147d2faf8 --- /dev/null +++ b/pcm_util.spec @@ -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/.