Revision: | 1.15 |
Committed: | Thu Dec 27 20:28:33 2007 UTC (17 years, 4 months ago) by elmer |
Branch: | MAIN |
CVS Tags: | pe20080119a-ports-412, pe20080119a-ports, pe20080118g-ports-412, pe20080118g-ports, pe20080118f-ports-412, pe20080118f-ports, nr_pe20080118e-ports-onl, pe20080118e-ports-412, pe20080118e-ports, pe20080118d-ports-412, pe20080118d-ports, pe20080118c-ports, pe20080118b-ports, pe20080118a-ports, pe20080111b-ports, pe20080111a-ports, pe20080110b-ports, pe20080110a-ports, pe20080109a-ports, pe20080108c-ports, ge20080108-wt, pe20080108b-ports, pe20080108a-ports, pe20080105a-ports, pe20080104a-ports, pe20080103a-ports-gcc422, pe20080103a-ports, pe20070103a-ports, pe20080101a-ports, pe20071128b-ports, pe20071128a-ports, pe20071127b-ports |
Changes since 1.14: | +1 -1 lines |
Log Message: | Update to -CMS19 (and variants) and CMS_152. SCRAMV1 was updated to V1_0_3-p4 |
# | User | Rev | Content |
---|---|---|---|
1 | elmer | 1.15 | ### RPM external fastjet 2.1.0-CMS19 |
2 | elmer | 1.8 | Source: http://www.lpthe.jussieu.fr/~salam/repository/software/fastjet/%n-%realversion.tgz |
3 | elmer | 1.9 | Patch1: fastjet-2.1.0-nobanner |
4 | dlange | 1.13 | Patch2: fastjet_sisconebanner |
5 | elmer | 1.9 | |
6 | ratnik | 1.1 | %prep |
7 | elmer | 1.8 | %setup -n %n-%realversion |
8 | elmer | 1.9 | %patch1 -p1 |
9 | dlange | 1.13 | %patch2 -p1 |
10 | ratnik | 1.1 | |
11 | %build | ||
12 | elmer | 1.3 | # The following is a hack, whether it works should be checked whenever |
13 | # the version is updated from 2.1.0b1 | ||
14 | elmer | 1.12 | perl -p -i -e "s|CXXFLAGS \+\= \-O3|CXXFLAGS += -fPIC -O3|" Makefile |
15 | cd src | ||
16 | ratnik | 1.1 | make |
17 | make install | ||
18 | dlange | 1.5 | cd ../plugins |
19 | elmer | 1.12 | perl -p -i -e "s|CFLAGS \=|CFLAGS = -fPIC|" SISCone/siscone/src/Makefile |
20 | perl -p -i -e "s|^CXXFLAGSmidpoint \=|CXXFLAGSmidpoint = -fPIC|" CDFCones/CDFcode/Makefile | ||
21 | dlange | 1.5 | make |
22 | make clean | ||
23 | |||
24 | cd ../include/fastjet | ||
25 | find ../../plugins/CDFCones -name "*.hh" -exec ln -sf {} \; | ||
26 | find ../../plugins/SISCone -name "*.hh" -exec ln -sf {} \; | ||
27 | |||
28 | cd ../../lib/ | ||
29 | find ../plugins/CDFCones -name "*.a" -exec mv {} . \; | ||
30 | find ../plugins/SISCone -name "*.a" -exec mv {} . \; | ||
31 | |||
32 | ratnik | 1.1 | |
33 | %install | ||
34 | dlange | 1.5 | |
35 | ratnik | 1.1 | # Take everything including sources, makefiles, documentation and examples (only 16MB). |
36 | gtar -cv ./| gtar -x -C %i | ||
37 | muzaffar | 1.11 | # SCRAM ToolBox toolfile |
38 | mkdir -p %i/etc/scram.d | ||
39 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n | ||
40 | <doc type=BuildSystem::ToolDoc version=1.0> | ||
41 | <Tool name=FastJet version=%v> | ||
42 | <info url=http://www.lpthe.jussieu.fr/~salam/fastjet/></info> | ||
43 | <lib name=SISConePlugin> | ||
44 | <lib name=CDFConesPlugin> | ||
45 | <lib name=fastjet> | ||
46 | <client> | ||
47 | <Environment name=FASTJET_BASE default="%i"></Environment> | ||
48 | <Environment name=LIBDIR default="$FASTJET_BASE/lib"></Environment> | ||
49 | <Environment name=INCLUDE default="$FASTJET_BASE/include"></Environment> | ||
50 | </client> | ||
51 | </Tool> | ||
52 | EOF_TOOLFILE | ||
53 | |||
54 | %post | ||
55 | %{relocateConfig}etc/scram.d/%n |