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.2 by dlange, Tue May 6 04:52:17 2008 UTC vs.
Revision 1.26 by muzaffar, Mon Dec 13 17:43:06 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
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 > Patch2: thepeg-1.6.1-use-dylibs-macosx
10 > patch3: thepeg-1.6.1-lhapdf-env
11   Requires: lhapdf
12   Requires: gsl
13 + # FIXME: hepmc?
14 + # FIXME: rivet?
15 + %if "%(echo %cmsos | grep osx >/dev/null && echo true)" == "true"
16 + Requires: gfortran-macosx
17 + %endif
18  
19   %prep
20 < %setup -q -n ThePEG-%{realversion}
21 < perl -p -i -e 's|-lLHAPDF|-llhapdf -llhapdf_dummy|' configure
22 < perl -p -i -e 's|libLHAPDF|liblhapdf|' configure
23 < ./configure --with-LHAPDF=$LHAPDF_ROOT/lib --without-javagui --prefix=%i --with-gsl=$GSL_ROOT
20 > %setup -q -n %{n}/%{realversion}
21 > %patch0 -p2
22 > %patch1 -p2
23 > %if "%(echo %cmsos | grep osx >/dev/null && echo true)" == "true"
24 > %patch2 -p1
25 > %endif
26 > %patch3 -p2
27  
28   %build
29 + ./configure --with-LHAPDF=$LHAPDF_ROOT/lib --without-javagui --prefix=%i --with-gsl=$GSL_ROOT --disable-readline
30   make
31  
32   %install
# Line 17 | Line 34 | make
34   make install
35   rm %i/share/ThePEG/Doc/fixinterfaces.pl
36  
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 <lib name=tauola>
31 <lib name=pretauola>
32 <use name=f77compiler>
33 <use name=pythia6>
34 </Tool>
35 EOF_TOOLFILE
36
37   %post
38 < %{relocateConfig}etc/scram.d/%n
38 > %{relocateConfig}lib/ThePEG/*.la

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines