diff --git a/cmssw-tool-conf.spec b/cmssw-tool-conf.spec index 9bfe37ccaca..953b3e30349 100644 --- a/cmssw-tool-conf.spec +++ b/cmssw-tool-conf.spec @@ -37,6 +37,7 @@ Requires: gsl Requires: highfive Requires: hector Requires: hepmc +Requires: hepmc3 Requires: heppdt Requires: herwig Requires: herwig7 diff --git a/hepmc3.spec b/hepmc3.spec new file mode 100644 index 00000000000..7128d1de094 --- /dev/null +++ b/hepmc3.spec @@ -0,0 +1,33 @@ +### RPM external hepmc3 3.2.5 + +Source: https://gitlab.cern.ch/hepmc/HepMC3/-/archive/3.2.5/HepMC3-%{realversion}.tar.gz + +BuildRequires: cmake + +%define drop_files %i/share + +%prep +%setup -q -n HepMC3-%{realversion} + +%build +sed 's/SOVERSION 3//' < CMakeLists.txt > tmpsed.txt +mv tmpsed.txt CMakeLists.txt +cd search +sed 's/SOVERSION 4//' < CMakeLists.txt > tmpsed.txt +mv tmpsed.txt CMakeLists.txt +cd .. +rm -rf ../build +mkdir ../build +cd ../build + +cmake ../HepMC3-%{realversion} \ + -DHEPMC3_ENABLE_ROOTIO:BOOL=OFF -DHEPMC3_ENABLE_TEST:BOOL=OFF \ + -DHEPMC3_INSTALL_INTERFACES:BOOL=ON -DHEPMC3_ENABLE_PYTHON:BOOL=OFF \ + -DHEPMC3_BUILD_STATIC_LIBS:BOOL=OFF -DHEPMC3_BUILD_DOCS:BOOL=OFF \ + -DCMAKE_INSTALL_PREFIX:PATH="%i" + +make %{makeprocesses} + +%install +cd ../build +make install diff --git a/scram-tools.file/tools/hepmc3/hepmc3.xml b/scram-tools.file/tools/hepmc3/hepmc3.xml new file mode 100644 index 00000000000..1bec426f62c --- /dev/null +++ b/scram-tools.file/tools/hepmc3/hepmc3.xml @@ -0,0 +1,10 @@ + + + + + + + + + +