Revision: | 1.5 |
Committed: | Thu May 8 04:37:13 2008 UTC (16 years, 11 months ago) by dlange |
Branch: | MAIN |
CVS Tags: | pe20080610-for21X, pe20080610-for21X-412, pe20080609-for21X-412, pe20080609-for21X, pe20080607-21X-gendict, sm080606a, CMSSW_2_1_0_pre5g491p02, pe20080604-for21X-g491p02, SiteDB_030608_1, CMSSW_2_1_0_pre5, pe20080531-for210p5, SiteDB_300508_1, SiteDB_280508_1, pe20080518b-ports-from210p4, pe20080518a-ports-from210p4, CMSSW_2_1_0_pre4, pe20080512-for21X, zx20080509, pe20080508-testcvs, dl080507 |
Changes since 1.4: | +2 -2 lines |
Log Message: | round of changes from Christophe |
# | Content |
---|---|
1 | ### RPM external thepeg 1.2.0 |
2 | Source: http://www.thep.lu.se/~leif/ThePEG/ThePEG-%{realversion}.tgz |
3 | Requires: lhapdf |
4 | Requires: gsl |
5 | |
6 | %prep |
7 | %setup -q -n ThePEG-%{realversion} |
8 | perl -p -i -e 's|-lLHAPDF|-llhapdf -llhapdf_dummy|' configure |
9 | perl -p -i -e 's|libLHAPDF|liblhapdf|' configure |
10 | ./configure --with-LHAPDF=$LHAPDF_ROOT/lib --without-javagui --prefix=%i --with-gsl=$GSL_ROOT |
11 | |
12 | %build |
13 | make |
14 | |
15 | %install |
16 | |
17 | make install |
18 | rm %i/share/ThePEG/Doc/fixinterfaces.pl |
19 | |
20 | # SCRAM ToolBox toolfile |
21 | mkdir -p %i/etc/scram.d |
22 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
23 | <doc type=BuildSystem::ToolDoc version=1.0> |
24 | <Tool name=thepeg version=%v> |
25 | <Client> |
26 | <Environment name=THEPEG_BASE default="%i"></Environment> |
27 | <Environment name=LIBDIR default="$THEPEG_BASE/lib/ThePEG"></Environment> |
28 | <Environment name=INCLUDE default="$THEPEG_BASE/include"></Environment> |
29 | </Client> |
30 | <lib name=ThePEG> |
31 | <use name=lhapdf> |
32 | <use name=gsl> |
33 | </Tool> |
34 | EOF_TOOLFILE |
35 | |
36 | %post |
37 | %{relocateConfig}etc/scram.d/%n |