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

Comparing COMP/CMSDIST/cascade.spec (file contents):
Revision 1.2 by muzaffar, Mon Nov 22 11:03:28 2010 UTC vs.
Revision 1.4 by eulisse, Fri Jul 8 18:35:53 2011 UTC

# Line 5 | Line 5 | Patch0: cascade-2.2.0-nomanual
5   Requires: lhapdf pythia6
6   %prep
7  
8 case %gccver in
9 4.*)
10 export F77=gfortran
11 ;;
12 esac
13
8   %setup -q -n %{n}/%{realversion}
9   %patch0 -p2
10  
11 < export PYTHIA="$PYTHIA6_ROOT"
12 < export LHAPDF="$LHAPDF_ROOT"
13 <
14 < ./configure --enable-shared --with-hepevt=4000 --prefix=%i
15 <
11 > # Notice that cascade expects a flat pythia installation,
12 > # where libraries and headers are all in the same place.
13 > # Since the source code is not actually needed, we point
14 > # it to the library location so that it links correctly.
15 > PYTHIA="$PYTHIA6_ROOT/lib"
16 > LHAPDF="$LHAPDF_ROOT"
17 > case %cmsplatf in
18 >  slc5_*_gcc4[0123]*)
19 >    F77="`which gfortran`"
20 >    PLATF_CONFIG_OPTS="--enable-shared"
21 >  ;;
22 >  *)
23 >    F77="`which gfortran` -fPIC"
24 >    PLATF_CONFIG_OPTS="--enable-static --disable-shared"
25 >    LIBS='-lstdc++ -lz'
26 >  ;;
27 > esac
28 > PYTHIA=$PYTHIA LHAPDF=$LHAPDF ./configure $PLATF_CONFIG_OPTS --with-hepevt=4000 --prefix=%i F77="$F77" LIBS="$LIBS"
29   %build
30   make %makeprocesses
31  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines