Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8023 from forthommel/IB/CMSSW_12_5_X/master
CepGen spec-file
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
### RPM external cepgen 1.0.2 | ||
|
||
Source: https://github.com/cepgen/cepgen/archive/refs/tags/%{realversion}.tar.gz | ||
|
||
BuildRequires: cmake ninja | ||
Requires: gsl OpenBLAS hepmc hepmc3 lhapdf pythia6 root | ||
|
||
%prep | ||
%setup -n %{n}-%{realversion} | ||
|
||
%build | ||
rm -rf ../build | ||
mkdir ../build | ||
cd ../build | ||
|
||
export GSL_DIR=${GSL_ROOT} | ||
export OPENBLAS_DIR=${OPENBLAS_ROOT} | ||
export HEPMC_DIR=${HEPMC_ROOT} | ||
export HEPMC3_DIR=${HEPMC3_ROOT} | ||
export LHAPDF_PATH=${LHAPDF_ROOT} | ||
export PYTHIA6_DIR=${PYTHIA6_ROOT} | ||
export ROOTSYS=${ROOT_ROOT} | ||
|
||
cmake ../%{n}-%{realversion} \ | ||
-G Ninja \ | ||
-DCMAKE_INSTALL_PREFIX:PATH="%i" \ | ||
-DCMAKE_BUILD_TYPE=Release | ||
|
||
ninja -v %{makeprocesses} | ||
|
||
%install | ||
cd ../build | ||
ninja %{makeprocesses} install | ||
|
||
case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac | ||
rm -f %i/lib/libCepGen*-[A-Z]*-%realversion.$so | ||
|
||
%post | ||
%{relocateConfig}bin/cepgen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<tool name="cepgen" version="@TOOL_VERSION@"> | ||
<info url="https://cepgen.hepforge.org/"/> | ||
<lib name="CepGen"/> | ||
<lib name="CepGenHepMC2"/> | ||
<lib name="CepGenHepMC3"/> | ||
<lib name="CepGenLHAPDF"/> | ||
<lib name="CepGenProcesses"/> | ||
<lib name="CepGenPythia6"/> | ||
<client> | ||
<environment name="CEPGEN_BASE" default="@TOOL_ROOT@"/> | ||
<environment name="LIBDIR" default="$CEPGEN_BASE/lib64"/> | ||
<environment name="INCLUDE" default="$CEPGEN_BASE/include"/> | ||
</client> | ||
<runtime name="PATH" value="$CEPGEN_BASE/bin" type="path"/> | ||
<runtime name="CEPGEN_PATH" value="$CEPGEN_BASE/share/CepGen"/> | ||
<use name="gsl"/> | ||
<use name="OpenBLAS"/> | ||
<use name="hepmc"/> | ||
<use name="hepmc3"/> | ||
<use name="lhapdf"/> | ||
<use name="pythia6"/> | ||
</tool> |