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

Comparing COMP/CMSDIST/jimmy.spec (file contents):
Revision 1.2 by dlange, Tue Apr 24 16:15:37 2007 UTC vs.
Revision 1.13 by elmer, Tue Feb 23 19:31:25 2010 UTC

# Line 1 | Line 1
1   ### RPM external jimmy 4.2
2 < Requires: gcc-wrapper
2 > ## BUILDIF case $(uname):$(uname -m) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;;  Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac
3 >
4   Requires: herwig
4 %define gccwrapperarch slc4_ia32_gcc345
5 %define realversion %(echo %v | cut -d- -f1 )
5   Source: http://service-spi.web.cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
6 + Patch: jimmy-4.2-gfortran
7 +
8   %prep
9 < %setup -q -n %{n}
10 < ./configure --with-herwig=$HERWIG_ROOT
9 > %setup -q -n %{n}/%{realversion}
10 > case %gccver in
11 >  4.*)
12 > %patch -p0
13 >  ;;
14 > esac
15  
16   %build
17 < %if "%{cmsplatf}" == "%{gccwrapperarch}"
13 < echo "Using gcc wrapper for %cmsplatf"
14 < source $GCC_WRAPPER_ROOT/etc/profile.d/init.sh
15 < %endif
17 > ./configure --with-herwig=$HERWIG_ROOT
18   make
19  
20   %install
21   tar -c lib include | tar -x -C %i
22 + # SCRAM ToolBox toolfile
23 + mkdir -p %i/etc/scram.d
24 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n.xml
25 +  <tool name="jimmy" version="%v">
26 +    <lib name="jimmy"/>
27 +    <client>
28 +      <environment name="JIMMY_BASE" default="%i"/>
29 +      <environment name="LIBDIR" default="$JIMMY_BASE/lib"/>
30 +      <environment name="INCLUDE" default="$JIMMY_BASE/include"/>
31 +    </client>
32 +    <use name="f77compiler"/>
33 +    <use name="herwig"/>
34 +  </tool>
35 + EOF_TOOLFILE
36  
37 + %post
38 + %{relocateConfig}etc/scram.d/%n.xml

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines