1 |
< |
### RPM external bootstrap-driver 1.0 |
1 |
> |
### RPM external bootstrap-driver 19.0 |
2 |
|
Source: bootstrap |
3 |
< |
Requires: apt |
3 |
> |
Requires: apt zlib expat openssl beecrypt bz2lib db4 elfutils neon libxml2 rpm cms-common |
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 |
94 |
|
libkrb5.so.3 libssl.so.4 /bin/csh /bin/tcsh libreadline.so.4 |
95 |
|
libtcl8.4.so libtk8.4.so" |
96 |
|
|
97 |
+ |
defaultPkgs="cms+cms-common+$CMS_COMMON_VERSION" |
98 |
+ |
|
99 |
|
mkdir -p %{i}/etc/profile.d |
100 |
|
(echo "instroot=%{instroot}"; \ |
101 |
|
echo "rpm_version=$RPM_VERSION"; \ |
102 |
+ |
echo "apt_version=$APT_VERSION"; \ |
103 |
|
echo "platformSeeds=\"$platformSeeds\""; \ |
104 |
|
echo "unsupportedSeeds=\"$unsupportedSeeds\""; \ |
105 |
< |
echo "packageList=\"$packageList\""; \ |
105 |
> |
echo "packageList=\"`echo $packageList`\""; \ |
106 |
|
echo "additionalProvides=\"$additionalProvides\""; \ |
107 |
|
echo "unsupportedProvides=\"$unsupportedProvides\""; \ |
108 |
+ |
echo "defaultPkgs=\"$defaultPkgs\""; \ |
109 |
|
) > %{i}/%{cmsplatf}-driver.txt |
110 |
+ |
# FIXME: Hack to make sure that the cms-common package is named correctly in the driver file. |
111 |
+ |
# We should make sure that the $PACKAGE_CATEGORY variable is used (requires changes to cmsBuild.sh which |
112 |
+ |
# I don't want to do at this point. |
113 |
+ |
perl -p -i -e 's|external[+]cms-common|cms+cms-common|g' %{i}/%{cmsplatf}-driver.txt |