1 |
|
### RPM external bootstrap-driver 1.0 |
2 |
|
Source: bootstrap |
3 |
< |
Requires: apt |
3 |
> |
Requires: apt zlib expat openssl beecrypt bz2lib db4 elfutils neon libxml2 rpm |
4 |
|
|
5 |
|
%prep |
6 |
|
%build |
7 |
|
%install |
8 |
< |
packageList="external+elfutils+$ELFUTILS_VERSION-1-$ELFUTILS_REVISION.%cmsplatf.rpm |
9 |
< |
external+expat+$EXPAT_VERSION-1-$EXPAT_REVISION.%cmsplatf.rpm |
10 |
< |
external+db4+$DB4_VERSION-1-$DB4_REVISION.%cmsplatf.rpm |
11 |
< |
external+beecrypt+$BEECRYPT_VERSION-1-$BEECRYPT_REVISION.%cmsplatf.rpm |
12 |
< |
external+bz2lib+$BZ2LIB_VERSION-1-$BZ2LIB_REVISION.%cmsplatf.rpm |
13 |
< |
external+neon+$NEON_VERSION-1-$NEON_REVISION.%cmsplatf.rpm |
14 |
< |
external+rpm+$RPM_VERSION-1-$RPM_REVISION.%cmsplatf.rpm |
15 |
< |
external+libxml2+$LIBXML2_VERSION-1-$LIBXML2_REVISION.%cmsplatf.rpm |
16 |
< |
external+apt+$APT_VERSION-1-$APT_REVISION.%cmsplatf.rpm" |
8 |
> |
packageList="" |
9 |
> |
echo requiredtools `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'` |
10 |
> |
for tool in `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'` |
11 |
> |
do |
12 |
> |
case X$tool in |
13 |
> |
Xdistcc|Xccache ) |
14 |
> |
;; |
15 |
> |
* ) |
16 |
> |
toolcap=`echo $tool | tr a-z- A-Z_` |
17 |
> |
toolversion=$(eval echo $`echo ${toolcap}_VERSION`) |
18 |
> |
toolrevision=$(eval echo $`echo ${toolcap}_REVISION`) |
19 |
> |
echo $toolversion $toolrevision |
20 |
> |
packageList="$packageList external+${tool}+${toolversion}-1-${toolrevision}.%cmsplatf.rpm" |
21 |
> |
;; |
22 |
> |
esac |
23 |
> |
done |
24 |
> |
|
25 |
|
|
26 |
|
case %cmsplatf in |
27 |
|
slc*online* ) |
48 |
|
daq-xgi daq-xoap" |
49 |
|
;; |
50 |
|
*) |
43 |
– |
packageList="external+zlib+$ZLIB_VERSION-1-$ZLIB_REVISION.%cmsplatf.rpm |
44 |
– |
external+openssl+$OPENSSL_VERSION-1-$OPENSSL_REVISION.%cmsplatf.rpm |
45 |
– |
$packageList" |
51 |
|
platformSeeds="glibc glibc-32bit coreutils bash tcsh zsh pdksh perl |
52 |
|
tcl tk perl-Tk readline openssl ncurses XFree86-libs |
53 |
|
e2fsprogs krb5-libs freetype fontconfig XFree86-Mesa-libGLU |
58 |
|
esac |
59 |
|
|
60 |
|
case $cmsplatf in |
61 |
< |
ydl*_ppc64* ) |
61 |
> |
ydl*_ppc64_* ) |
62 |
> |
platformSeeds="$platformSeeds gcc libgcc libstdc++" |
63 |
> |
;; |
64 |
> |
ydl*_ppc_* ) |
65 |
|
platformSeeds="$platformSeeds gcc libgcc libstdc++" |
66 |
|
;; |
67 |
|
esac |
100 |
|
echo "apt_version=$APT_VERSION"; \ |
101 |
|
echo "platformSeeds=\"$platformSeeds\""; \ |
102 |
|
echo "unsupportedSeeds=\"$unsupportedSeeds\""; \ |
103 |
< |
echo "packageList=\"$packageList\""; \ |
103 |
> |
echo "packageList=\"`echo $packageList`\""; \ |
104 |
|
echo "additionalProvides=\"$additionalProvides\""; \ |
105 |
|
echo "unsupportedProvides=\"$unsupportedProvides\""; \ |
106 |
|
) > %{i}/%{cmsplatf}-driver.txt |