Revision: | 1.4 |
Committed: | Sat Sep 6 12:58:13 2008 UTC (16 years, 7 months ago) by andreasp |
Branch: | MAIN |
CVS Tags: | apFor2119v1, apFor2119v0, CMSSW_2_1_17, apFor2117v1, apFor2117v0, PRODAGENT_0_12_2, CMSSW_2_1_9_ONLINE, T0Mon_080926_1, CMSSW_2_1_7_FWLITE, T0Mon_080920_2, T0Mon_080920_1, T0Mon_080916_2, CMSSW_2_1_9, apFor219v0, CMSSW_2_1_8, apFor218v0, apFor217patch1v1, apFor217patch1v0, CMSSW_2_1_7, CMSSW_2_1_, apFor217v1 |
Changes since 1.3: | +1 -0 lines |
Log Message: | added relocation for toolbox file |
# | User | Rev | Content |
---|---|---|---|
1 | andreasp | 1.1 | ### RPM external millepede 2.0 |
2 | # CAREFUL: NO VERSION IN TARBALL !!! | ||
3 | # Source: http://www.desy.de/~blobel/Mptwo.tgz | ||
4 | Source: http://cmsrep.cern.ch/cmssw/millepede-mirror/millepede-2.0.tar.gz | ||
5 | |||
6 | andreasp | 1.2 | Patch: millepede_2008_08_18 |
7 | Patch1: millepede_64bit_2008_08_18 | ||
8 | andreasp | 1.1 | |
9 | %prep | ||
10 | %setup -n millepede-%realversion | ||
11 | %patch -p1 | ||
12 | |||
13 | andreasp | 1.2 | %if "%cpu" == "amd64" |
14 | %patch1 -p1 | ||
15 | %endif | ||
16 | |||
17 | andreasp | 1.1 | %build |
18 | make %makeprocesses | ||
19 | |||
20 | %install | ||
21 | andreasp | 1.3 | make install |
22 | mkdir -p %i/bin | ||
23 | cp bin/* %i/bin | ||
24 | andreasp | 1.1 | |
25 | # Toolfile with only PATH | ||
26 | andreasp | 1.2 | # SCRAM ToolBox toolfile |
27 | mkdir -p %i/etc/scram.d | ||
28 | # millepede tool file | ||
29 | cat << \EOF_TOOLFILE >%i/etc/scram.d/millepede | ||
30 | <doc type=BuildSystem::ToolDoc version=1.0> | ||
31 | <Tool name=millepede version=%v> | ||
32 | <info url="http://www.desy.de/~blobel"></info> | ||
33 | <Client> | ||
34 | <Environment name=MILLEPEDE_BASE default="%i"></Environment> | ||
35 | </Client> | ||
36 | <use name=sockets> | ||
37 | <use name=pcre> | ||
38 | <use name=zlib> | ||
39 | <Runtime name=PATH value="$MILLEPEDE_BASE/bin" type=path> | ||
40 | </Tool> | ||
41 | EOF_TOOLFILE | ||
42 | andreasp | 1.1 | |
43 | %post | ||
44 | andreasp | 1.4 | %{relocateConfig}etc/scram.d/%n |
45 | andreasp | 1.1 | |
46 |