ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/thepeg.spec
Revision: 1.3
Committed: Tue May 6 16:30:55 2008 UTC (16 years, 11 months ago) by dlange
Branch: MAIN
CVS Tags: pe20080507-for21X, dl080506
Changes since 1.2: +3 -4 lines
Log Message:
gen fixes

File Contents

# User Rev Content
1 dlange 1.2 ### RPM external thepeg 1.2.0
2     Source: http://www.thep.lu.se/~leif/ThePEG/ThePEG-%{realversion}.tgz
3 dlange 1.1 Requires: lhapdf
4 dlange 1.2 Requires: gsl
5 dlange 1.1
6     %prep
7 dlange 1.2 %setup -q -n ThePEG-%{realversion}
8 dlange 1.1 perl -p -i -e 's|-lLHAPDF|-llhapdf -llhapdf_dummy|' configure
9     perl -p -i -e 's|libLHAPDF|liblhapdf|' configure
10 dlange 1.2 ./configure --with-LHAPDF=$LHAPDF_ROOT/lib --without-javagui --prefix=%i --with-gsl=$GSL_ROOT
11 dlange 1.1
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=tauola version=%v>
25     <Client>
26     <Environment name=THEPEG_BASE default="%i"></Environment>
27     <Environment name=LIBDIR default="$THEPEG_BASE/lib"></Environment>
28     <Environment name=INCLUDE default="$THEPEG_BASE/include"></Environment>
29     </Client>
30 dlange 1.3 <lib name=thepeg>
31     <use name=lhapdf>
32     <use name=gsl>
33 dlange 1.1 </Tool>
34     EOF_TOOLFILE
35    
36     %post
37     %{relocateConfig}etc/scram.d/%n