ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/thepeg.spec
(Generate patch)

Comparing COMP/CMSDIST/thepeg.spec (file contents):
Revision 1.6 by elmer, Wed Jun 11 18:36:26 2008 UTC vs.
Revision 1.24 by eulisse, Wed Sep 15 07:18:45 2010 UTC

# Line 1 | Line 1
1 < ### RPM external thepeg 1.2.0
2 < Source: http://www.thep.lu.se/~leif/ThePEG/ThePEG-%{realversion}.tgz
3 < Patch0: thepeg-1.2.0-LHAPDF
1 > ### RPM external thepeg 1.6.1
2 > ## INITENV +PATH LD_LIBRARY_PATH %i/lib/ThePEG
3 > ## INITENV +PATH DYLD_LIBRARY_PATH %i/lib/ThePEG
4 > #Source: http://www.thep.lu.se/~leif/ThePEG/ThePEG-%{realversion}.tgz
5 > #Source: http://projects.hepforge.org/herwig/files/ThePEG-%{realversion}.tar.gz
6 > Source: http://service-spi.web.cern.ch/service-spi/external/MCGenerators/distribution/thepeg-%{realversion}-src.tgz
7 > Patch0: thepeg-1.6.1-break-termcap-dependence
8 > Patch1: thepeg-1.6.1-units
9   Requires: lhapdf
10   Requires: gsl
11 + %if "%(echo %cmsos | grep osx >/dev/null && echo true)" == "true"
12 + Requires: gfortran-macosx
13 + %endif
14  
15   %prep
16 < %setup -q -n ThePEG-%{realversion}
17 < %patch0 -p0
18 < perl -p -i -e 's|-lLHAPDF|-llhapdf -llhapdf_dummy|' configure
11 < perl -p -i -e 's|libLHAPDF|liblhapdf|' configure
12 < ./configure --with-LHAPDF=$LHAPDF_ROOT/lib --without-javagui --prefix=%i --with-gsl=$GSL_ROOT
16 > %setup -q -n %{n}/%{realversion}
17 > %patch0 -p2
18 > %patch1 -p2
19  
20   %build
21 + ./configure --with-LHAPDF=$LHAPDF_ROOT/lib --without-javagui --prefix=%i --with-gsl=$GSL_ROOT --disable-readline
22   make
23  
24   %install
# Line 19 | Line 26 | make
26   make install
27   rm %i/share/ThePEG/Doc/fixinterfaces.pl
28  
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 <Tool name=thepeg version=%v>
27 <Client>
28 <Environment name=THEPEG_BASE default="%i"></Environment>
29 <Environment name=LIBDIR default="$THEPEG_BASE/lib/ThePEG"></Environment>
30 <Environment name=INCLUDE default="$THEPEG_BASE/include"></Environment>
31 </Client>
32 <lib name=ThePEG>
33 <use name=lhapdf>
34 <use name=gsl>
35 </Tool>
36 EOF_TOOLFILE
37
29   %post
30 < %{relocateConfig}etc/scram.d/%n
30 > %{relocateConfig}lib/ThePEG/*.la

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines