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

Comparing COMP/CMSDIST/fastjet.spec (file contents):
Revision 1.6 by dlange, Sun Apr 29 11:17:18 2007 UTC vs.
Revision 1.26 by dlange, Sun May 10 03:06:02 2009 UTC

# Line 1 | Line 1
1 < ### RPM external fastjet 2.1.0
2 < Source: http://www.lpthe.jussieu.fr/~salam/repository/software/fastjet/%n-%v.tgz
1 > ### RPM external fastjet 2.4.0
2 > Source: http://www.lpthe.jussieu.fr/~salam/fastjet/repo/%n-%realversion.tar.gz
3 > Patch1: fastjet-2.1.0-nobanner
4 > Patch2: fastjet-2.3.4-siscone-banner
5 > Patch3: fastjet-2.4.0-gcc44
6 >
7   %prep
8 < %setup -n %n-%v
8 > %setup -n %n-%realversion
9 > %patch1 -p1
10 > %patch2 -p1
11 > %patch3 -p1
12 >
13 > ./configure --enable-shared --enable-cmsiterativecone --enable-atlascone --prefix=%i
14  
15   %build
7 ## IMPORT gcc-wrapper
8 cd src
9 # The following is a hack, whether it works should be checked whenever
10 # the version is updated from 2.1.0b1
11 perl -p -i -e "s|CXXFLAGS \+\=|CXXFLAGS += -fPIC|" Makefile
12 make
13 make install
14 cd ../plugins
16   make
16 make clean
17  
18 < cd ../include/fastjet
19 < find ../../plugins/CDFCones -name "*.hh" -exec ln -sf {}  \;
20 < find ../../plugins/SISCone -name "*.hh" -exec ln -sf {}  \;
21 <
22 < cd ../../lib/
23 < find ../plugins/CDFCones -name "*.a" -exec mv {} .  \;
24 < find ../plugins/SISCone -name "*.a" -exec mv {} .  \;
18 > %install
19 > make install
20  
21  
22 < %install
22 > # SCRAM ToolBox toolfile
23 > mkdir -p %i/etc/scram.d
24 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
25 > <doc type=BuildSystem::ToolDoc version=1.0>
26 > <Tool name=FastJet version=%v>
27 > <info url=http://www.lpthe.jussieu.fr/~salam/fastjet/></info>
28 > <lib name=CMSIterativeConePlugin>
29 > <lib name=SISConePlugin>
30 > <lib name=CDFConesPlugin>
31 > <lib name=ATLASConePlugin>
32 > <lib name=siscone>
33 > <lib name=siscone_spherical>
34 > <lib name=fastjet>
35 > <client>
36 > <Environment name=FASTJET_BASE default="%i"></Environment>
37 > <Environment name=LIBDIR default="$FASTJET_BASE/lib"></Environment>
38 > <Environment name=INCLUDE default="$FASTJET_BASE/include"></Environment>
39 > </client>
40 > </Tool>
41 > EOF_TOOLFILE
42  
43 < # Take everything including sources, makefiles, documentation and examples (only 16MB).
44 < gtar -cv ./| gtar -x -C %i
43 > %post
44 > %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines