1 |
|
### RPM external gmake 3.81-CMS18 |
2 |
|
# We will call it "gmake", but gnu calls it "make" |
3 |
|
Source: ftp://ftp.gnu.org/gnu/make/make-%realversion.tar.gz |
4 |
+ |
Patch1: gmake-3.81-expand |
5 |
|
|
6 |
|
%prep |
7 |
|
%setup -n make-%{realversion} |
8 |
+ |
%patch1 -p0 |
9 |
|
|
10 |
|
%build |
11 |
|
./configure --prefix=%i |
16 |
|
make install |
17 |
|
# Put in the symlink |
18 |
|
cd %{i}/bin |
19 |
< |
ln -s make gmake |
19 |
> |
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 |
|
|
19 |
– |
# SCRAM ToolBox toolfile (still to add) |