diff --git a/cepgen-toolfile.spec b/cepgen-toolfile.spec new file mode 100644 index 00000000000..ddbe9cc46a7 --- /dev/null +++ b/cepgen-toolfile.spec @@ -0,0 +1,33 @@ +### RPM external cepgen-toolfile 1.0 +Requires: cepgen +%prep + +%build + +%install + +mkdir -p %i/etc/scram.d +cat << \EOF_TOOLFILE >%i/etc/scram.d/cepgen.xml + + + + + + + + + + + + + + + + + + + + +EOF_TOOLFILE + +## IMPORT scram-tools-post diff --git a/cepgen.spec b/cepgen.spec new file mode 100644 index 00000000000..6b4e7a7807f --- /dev/null +++ b/cepgen.spec @@ -0,0 +1,39 @@ +### RPM external cepgen 1.2.1patch1_gcc700 + +Source: https://github.com/cepgen/cepgen/archive/refs/tags/%{realversion}.tar.gz +Patch: cepgen_nopython_noroot + +BuildRequires: cmake gmake +Requires: gsl OpenBLAS hepmc lhapdf pythia6 bz2lib zlib xz + +%prep +%setup -n %{n}-%{realversion} +%patch -p1 + +%build +rm -rf ../build +mkdir ../build +cd ../build + +export GSL_DIR=${GSL_ROOT} +export OPENBLAS_DIR=${OPENBLAS_ROOT} +export HEPMC_DIR=${HEPMC_ROOT} +export LHAPDF_PATH=${LHAPDF_ROOT} +export PYTHIA6_DIR=${PYTHIA6_ROOT} + +cmake ../%{n}-%{realversion} \ + -DCMAKE_INSTALL_PREFIX:PATH="%i" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_PREFIX_PATH="${BZ2LIB_ROOT};${ZLIB_ROOT};${XZ_ROOT}" + +make %{makeprocesses} + +%install +cd ../build +make install + +case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac +rm -f %i/lib/libCepGen*-[A-Z]*-%realversion.$so + +%post +%{relocateConfig}bin/cepgen diff --git a/cepgen_nopython_noroot.patch b/cepgen_nopython_noroot.patch new file mode 100644 index 00000000000..af9ea63b72d --- /dev/null +++ b/cepgen_nopython_noroot.patch @@ -0,0 +1,15 @@ +diff --git a/CepGenAddOns/CMakeLists.txt b/CepGenAddOns/CMakeLists.txt +index 27ac884a..9eb9d422 100644 +--- a/CepGenAddOns/CMakeLists.txt ++++ b/CepGenAddOns/CMakeLists.txt +@@ -14,10 +14,8 @@ add_subdirectory(PhotosTauolaWrapper) + add_subdirectory(ProMCWrapper) + add_subdirectory(Pythia6Wrapper) + add_subdirectory(Pythia8Wrapper) +-add_subdirectory(PythonWrapper) + add_subdirectory(REvolverWrapper) + add_subdirectory(RivetWrapper) +-add_subdirectory(ROOTWrapper) + add_subdirectory(TopdrawerWrapper) + + add_subdirectory(Functionals) diff --git a/cmssw-tool-conf.spec b/cmssw-tool-conf.spec index a30409953e5..6295eccd39c 100644 --- a/cmssw-tool-conf.spec +++ b/cmssw-tool-conf.spec @@ -18,6 +18,7 @@ Requires: starlight-toolfile Requires: alpgen-toolfile Requires: boost-toolfile Requires: bz2lib-toolfile +Requires: cepgen-toolfile Requires: charybdis-toolfile Requires: classlib-toolfile Requires: clhep-toolfile