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.7 by elmer, Fri Nov 2 18:51:04 2007 UTC vs.
Revision 1.16 by eulisse, Fri Jul 8 17:24:30 2011 UTC

# Line 1 | Line 1
1 < ### RPM external jimmy 4.2-CMS18
1 > ### RPM external jimmy 4.2
2 >
3   Requires: herwig
4   Source: http://service-spi.web.cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
5 < Patch: jimmy-4.2-gfortran
5 > Patch0: jimmy-4.2-gfortran
6 > Patch1: jimmy-4.2-macosx
7 >
8 > %if "%(echo %cmsos | grep osx >/dev/null && echo true)" == "true"
9 > Requires: gfortran-macosx
10 > %endif
11  
12   %prep
13   %setup -q -n %{n}/%{realversion}
14 < %if "%cmsplatf" == "slc4_ia32_gcc412"
15 < %patch -p0
16 < %endif
17 < ./configure --with-herwig=$HERWIG_ROOT
14 > case %gccver in
15 >  4.*)
16 > %patch0 -p0
17 > %patch1 -p3
18 >  ;;
19 > esac
20 >
21  
22   %build
23 < make
23 > # NOTE: only in recent architectures we build static libraries.
24 > case %cmsplatf in
25 >  slc*_*_gcc4[0123]*) ;;
26 >  *) PLATF_CONFIG_OPTS="--enable-static --disable-shared" ;;
27 > esac
28 >
29 > ./configure $PLATF_CONFIG_OPTS --with-herwig=$HERWIG_ROOT
30 > # Looks like ./configure does not do all it should do to have our
31 > # version of herwig picked up at link time.
32 > # Workaround until they fix the GENESER makefiles is to define
33 > # the variable and use it directly inside "Makeshared".
34 > make HERWIG_ROOT=$HERWIG_ROOT
35  
36   %install
37   tar -c lib include | tar -x -C %i
38 < # SCRAM ToolBox toolfile
39 < mkdir -p %i/etc/scram.d
20 < cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
21 <
22 < <doc type=BuildSystem::ToolDoc version=1.0>
23 < <Tool name=jimmy version=%v>
24 < <lib name=jimmy>
25 < <Client>
26 < <Environment name=JIMMY_BASE default="%i"></Environment>
27 < <Environment name=LIBDIR default="$JIMMY_BASE/lib"></Environment>
28 < <Environment name=INCLUDE default="$JIMMY_BASE/include"></Environment>
29 < </Client>
30 < <use name=f77compiler>
31 < <use name=herwig>
32 < </Tool>
33 < EOF_TOOLFILE
34 <
35 < %post
36 < %{relocateConfig}etc/scram.d/%n
38 > find %i/lib/archive -name "*.a" -exec mv {} %i/lib \;
39 > rm -rf %i/lib/archive

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines