Revision: | 1.4 |
Committed: | Sat Nov 3 12:45:35 2007 UTC (17 years, 5 months ago) by elmer |
Branch: | MAIN |
CVS Tags: | CMSSW_1_7_7, dl080227for176, CMSSW_1_7_5, CMSSW_1_7_5_g491, dl080111, ge20080109-webconddb, ge20080109-sitedb, CMSSW_1_7_4, CMSSW_1_7_3_g490p1, dl071212t2, dl071212, CMSSW_1_7_3, CMSSW_1_7_2, CMSSW_1_7_1, nr071120_fwlite170_1, CMSSW_1_7_0, CMSSW_1_7_0_pre13, dl071114, ap20071113, CMSSW_1_7_0_pre12, CMSSW_1_7_0_pre11, pe20071105c-ports, pe20071105b-ports, pe20071105a-ports, pe20071103e-ports, pe20071103d-ports |
Changes since 1.3: | +17 -2 lines |
Log Message: | Add tool file definition (from Shahzad) |
# | User | Rev | Content |
---|---|---|---|
1 | elmer | 1.1 | ### RPM external gmake 3.81-CMS18 |
2 | elmer | 1.2 | # We will call it "gmake", but gnu calls it "make" |
3 | Source: ftp://ftp.gnu.org/gnu/make/make-%realversion.tar.gz | ||
4 | elmer | 1.3 | Patch1: gmake-3.81-expand |
5 | elmer | 1.1 | |
6 | %prep | ||
7 | %setup -n make-%{realversion} | ||
8 | elmer | 1.3 | %patch1 -p0 |
9 | elmer | 1.1 | |
10 | %build | ||
11 | ./configure --prefix=%i | ||
12 | |||
13 | make %makeprocesses | ||
14 | |||
15 | %install | ||
16 | make install | ||
17 | # Put in the symlink | ||
18 | elmer | 1.2 | cd %{i}/bin |
19 | elmer | 1.4 | ln -sf make gmake |
20 | |||
21 | # SCRAM ToolBox toolfile | ||
22 | mkdir -p %i/etc/scram.d | ||
23 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n | ||
24 | <doc type=BuildSystem::ToolDoc version=1.0> | ||
25 | <Tool name=%n version=%v> | ||
26 | <Client> | ||
27 | <Environment name=MAKE_BASE default="%i"></Environment> | ||
28 | </Client> | ||
29 | <Runtime name=PATH value="$MAKE_BASE/bin" type=path> | ||
30 | </Tool> | ||
31 | EOF_TOOLFILE | ||
32 | |||
33 | %post | ||
34 | cd $RPM_INSTALL_PREFIX/%cmsplatf/external/%n/%v/bin | ||
35 | %{relocateConfig}etc/scram.d/%n | ||
36 | elmer | 1.1 |