ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/thepeg.spec
Revision: 1.6
Committed: Wed Jun 11 18:36:26 2008 UTC (16 years, 10 months ago) by elmer
Branch: MAIN
Changes since 1.5: +2 -0 lines
Log Message:
Apply patch thepeg-1.2.0-LHAPDF.patch

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 elmer 1.6 Patch0: thepeg-1.2.0-LHAPDF
4 dlange 1.1 Requires: lhapdf
5 dlange 1.2 Requires: gsl
6 dlange 1.1
7     %prep
8 dlange 1.2 %setup -q -n ThePEG-%{realversion}
9 elmer 1.6 %patch0 -p0
10 dlange 1.1 perl -p -i -e 's|-lLHAPDF|-llhapdf -llhapdf_dummy|' configure
11     perl -p -i -e 's|libLHAPDF|liblhapdf|' configure
12 dlange 1.2 ./configure --with-LHAPDF=$LHAPDF_ROOT/lib --without-javagui --prefix=%i --with-gsl=$GSL_ROOT
13 dlange 1.1
14     %build
15     make
16    
17     %install
18    
19     make install
20     rm %i/share/ThePEG/Doc/fixinterfaces.pl
21    
22     # SCRAM ToolBox toolfile
23     mkdir -p %i/etc/scram.d
24     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
25     <doc type=BuildSystem::ToolDoc version=1.0>
26 andreasp 1.4 <Tool name=thepeg version=%v>
27 dlange 1.1 <Client>
28     <Environment name=THEPEG_BASE default="%i"></Environment>
29 dlange 1.5 <Environment name=LIBDIR default="$THEPEG_BASE/lib/ThePEG"></Environment>
30 dlange 1.1 <Environment name=INCLUDE default="$THEPEG_BASE/include"></Environment>
31     </Client>
32 dlange 1.5 <lib name=ThePEG>
33 dlange 1.3 <use name=lhapdf>
34     <use name=gsl>
35 dlange 1.1 </Tool>
36     EOF_TOOLFILE
37    
38     %post
39     %{relocateConfig}etc/scram.d/%n