1 |
< |
### RPM external pythia8 070-CMS12 |
1 |
> |
### RPM external pythia8 130 |
2 |
> |
## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac |
3 |
> |
|
4 |
|
Requires: hepmc |
5 |
|
Requires: clhep |
6 |
|
Requires: pythia6 |
7 |
+ |
Requires: lhapdf |
8 |
+ |
|
9 |
|
Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz |
10 |
|
%prep |
11 |
|
%setup -q -n %{n}/%{realversion} |
16 |
|
export HEPMCVERSION=${HEPMC_VERSION} |
17 |
|
export CLHEPLOCATION=${CLHEP_ROOT} |
18 |
|
export CLHEPVERSION=${CLHEP_VERSION} |
19 |
< |
./configure |
19 |
> |
./configure --enable-shared --with-hepmc=${HEPMC_ROOT} |
20 |
|
|
21 |
|
%build |
22 |
|
make |
23 |
|
|
24 |
|
%install |
25 |
< |
tar -c lib include | tar -x -C %i |
25 |
> |
tar -c lib include xmldoc | tar -x -C %i |
26 |
|
|
27 |
|
# SCRAM ToolBox toolfile |
28 |
|
mkdir -p %i/etc/scram.d |
34 |
|
<Environment name=LIBDIR default="$PYTHIA8_BASE/lib"></Environment> |
35 |
|
<Environment name=INCLUDE default="$PYTHIA8_BASE/include"></Environment> |
36 |
|
</Client> |
37 |
+ |
<runtime name=PYTHIA8DATA value="$PYTHIA8_BASE/xmldoc"> |
38 |
|
<lib name=pythia8> |
39 |
+ |
<lib name=hepmcinterface> |
40 |
|
<use name=cxxcompiler> |
41 |
|
<use name=hepmc> |
42 |
|
<use name=pythia6> |
43 |
|
<use name=clhep> |
44 |
+ |
<use name=lhapdf> |
45 |
|
</Tool> |
46 |
|
EOF_TOOLFILE |
47 |
|
|