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.9 by elmer, Sun Jan 25 20:37:38 2009 UTC vs.
Revision 1.29 by eulisse, Mon Mar 28 12:02:44 2011 UTC

# Line 1 | Line 1
1 < ### RPM external thepeg 1.3.0
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 < Patch0: thepeg-1.3.0-LHAPDF
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 > Patch4: thepeg-1.6.1-gcc46
12   Requires: lhapdf
13   Requires: gsl
14 + Requires: zlib
15 + # FIXME: hepmc?
16 + # FIXME: rivet?
17 + %if "%(echo %cmsos | grep osx >/dev/null && echo true)" == "true"
18 + Requires: gfortran-macosx
19 + %endif
20  
21   %prep
22 < %setup -q -n ThePEG-%{realversion}
23 < %patch0 -p1
24 < ./configure --with-LHAPDF=$LHAPDF_ROOT/lib --without-javagui --prefix=%i --with-gsl=$GSL_ROOT
22 > %setup -q -n %{n}/%{realversion}
23 > %patch0 -p2
24 > %patch1 -p2
25 > %if "%(echo %cmsos | grep osx >/dev/null && echo true)" == "true"
26 > %patch2 -p1
27 > %endif
28 > %patch3 -p2
29 > %patch4 -p2
30  
31   %build
32 + # configure does not handle linking against archive LHAPDF
33 + # notice that we should probably build an archive library
34 + # also for this library, but we do not care for the moment.
35 + perl -p -i -e 's|LHAPDF[.]dylib|LHAPDF.a|' configure
36 + FC=`which gfortran`
37 + ./configure --enable-shared --disable-static \
38 +            --with-LHAPDF=$LHAPDF_ROOT/lib \
39 +            --without-javagui --prefix=%i --with-gsl=$GSL_ROOT \
40 +            --disable-readline \
41 +            FC=$FC \
42 +            LIBS="`$FC --print-file-name=libgfortranbegin.a` `$FC --print-file-name=libgfortran.a` -L$ZLIB_ROOT -lz"
43   make
44  
45   %install
# Line 18 | Line 47 | make
47   make install
48   rm %i/share/ThePEG/Doc/fixinterfaces.pl
49  
21 # SCRAM ToolBox toolfile
22 mkdir -p %i/etc/scram.d
23 cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
24 <doc type=BuildSystem::ToolDoc version=1.0>
25 <Tool name=thepeg version=%v>
26 <Client>
27 <Environment name=THEPEG_BASE default="%i"></Environment>
28 <Environment name=LIBDIR default="$THEPEG_BASE/lib/ThePEG"></Environment>
29 <Environment name=INCLUDE default="$THEPEG_BASE/include"></Environment>
30 </Client>
31 <lib name=ThePEG>
32 <use name=lhapdf>
33 <use name=gsl>
34 </Tool>
35 EOF_TOOLFILE
36
50   %post
51 < %{relocateConfig}etc/scram.d/%n
39 < %{relocateConfig}lib/ThePEG/ACDCSampler.la
40 < %{relocateConfig}lib/ThePEG/BreitWignerMass.la
41 < %{relocateConfig}lib/ThePEG/ColourPairDecayer.la
42 < %{relocateConfig}lib/ThePEG/DalitzDecayer.la
43 < %{relocateConfig}lib/ThePEG/FixedCMSLuminosity.la
44 < %{relocateConfig}lib/ThePEG/GaussianPtGenerator.la
45 < %{relocateConfig}lib/ThePEG/GRV94L.la
46 < %{relocateConfig}lib/ThePEG/GRV94M.la
47 < %{relocateConfig}lib/ThePEG/GRVBase.la
48 < %{relocateConfig}lib/ThePEG/KTClus.la
49 < %{relocateConfig}lib/ThePEG/LeptonLeptonPDF.la
50 < %{relocateConfig}lib/ThePEG/LeptonLeptonRemnant.la
51 < %{relocateConfig}lib/ThePEG/LesHouches.la
52 < %{relocateConfig}lib/ThePEG/libThePEG.la
53 < %{relocateConfig}lib/ThePEG/LWHFactory.la
54 < %{relocateConfig}lib/ThePEG/MadGraphReader.la
55 < %{relocateConfig}lib/ThePEG/MEee2gZ2qq.la
56 < %{relocateConfig}lib/ThePEG/MENCDIS.la
57 < %{relocateConfig}lib/ThePEG/MEQCD.la
58 < %{relocateConfig}lib/ThePEG/MultiEventGenerator.la
59 < %{relocateConfig}lib/ThePEG/O1AlphaS.la
60 < %{relocateConfig}lib/ThePEG/OmegaPhi3PiDecayer.la
61 < %{relocateConfig}lib/ThePEG/Onium3GDecayer.la
62 < %{relocateConfig}lib/ThePEG/QuarksToHadronsDecayer.la
63 < %{relocateConfig}lib/ThePEG/ReweightConstant.la
64 < %{relocateConfig}lib/ThePEG/ReweightMinPT.la
65 < %{relocateConfig}lib/ThePEG/SimpleAlphaEM.la
66 < %{relocateConfig}lib/ThePEG/SimpleDISCut.la
67 < %{relocateConfig}lib/ThePEG/SimpleFlavour.la
68 < %{relocateConfig}lib/ThePEG/SimpleKTCut.la
69 < %{relocateConfig}lib/ThePEG/SimpleZGenerator.la
70 < %{relocateConfig}lib/ThePEG/StandardCKM.la
71 < %{relocateConfig}lib/ThePEG/Tau2HadronsDecayer.la
72 < %{relocateConfig}lib/ThePEG/TestLHAPDF.la
73 < %{relocateConfig}lib/ThePEG/ThePEGStrategy.la
74 < %{relocateConfig}lib/ThePEG/V2LeptonsCut.la
75 < %{relocateConfig}lib/ThePEG/V2PPDecayer.la
76 < %{relocateConfig}lib/ThePEG/WeakToHadronsDecayer.la
77 < %{relocateConfig}lib/ThePEG/XSecCheck.la
78 <
51 > %{relocateConfig}lib/ThePEG/*.la

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines