1 |
< |
### RPM external bootstrap-driver 1.0 |
1 |
> |
### RPM external bootstrap-driver 19.0c |
2 |
|
Source: bootstrap |
3 |
< |
Requires: apt |
3 |
> |
%define closingbrace ) |
4 |
> |
%define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo flase;; esac) |
5 |
> |
|
6 |
> |
Requires: apt |
7 |
> |
|
8 |
> |
#danger! cms-common version is now hardwired below (and in bootstrap.file) |
9 |
|
|
10 |
|
%prep |
11 |
|
%build |
12 |
|
%install |
13 |
< |
packageList="external+elfutils+$ELFUTILS_VERSION-1-$ELFUTILS_REVISION.%cmsplatf.rpm |
14 |
< |
external+expat+$EXPAT_VERSION-1-$EXPAT_REVISION.%cmsplatf.rpm |
15 |
< |
external+db4+$DB4_VERSION-1-$DB4_REVISION.%cmsplatf.rpm |
16 |
< |
external+beecrypt+$BEECRYPT_VERSION-1-$BEECRYPT_REVISION.%cmsplatf.rpm |
17 |
< |
external+bz2lib+$BZ2LIB_VERSION-1-$BZ2LIB_REVISION.%cmsplatf.rpm |
18 |
< |
external+neon+$NEON_VERSION-1-$NEON_REVISION.%cmsplatf.rpm |
19 |
< |
external+rpm+$RPM_VERSION-1-$RPM_REVISION.%cmsplatf.rpm |
20 |
< |
external+libxml2+$LIBXML2_VERSION-1-$LIBXML2_REVISION.%cmsplatf.rpm |
21 |
< |
external+apt+$APT_VERSION-1-$APT_REVISION.%cmsplatf.rpm" |
13 |
> |
packageList="" |
14 |
> |
echo requiredtools `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'` |
15 |
> |
for tool in `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'` |
16 |
> |
do |
17 |
> |
case X$tool in |
18 |
> |
Xdistcc|Xccache ) |
19 |
> |
;; |
20 |
> |
* ) |
21 |
> |
toolcap=`echo $tool | tr a-z- A-Z_` |
22 |
> |
toolversion=$(eval echo $`echo ${toolcap}_VERSION`) |
23 |
> |
toolrevision=$(eval echo $`echo ${toolcap}_REVISION`) |
24 |
> |
echo $toolversion $toolrevision |
25 |
> |
packageList="$packageList external+${tool}+${toolversion}-1-${toolrevision}.%cmsplatf.rpm" |
26 |
> |
;; |
27 |
> |
esac |
28 |
> |
done |
29 |
> |
|
30 |
|
|
31 |
|
case %cmsplatf in |
32 |
< |
slc*online* ) |
32 |
> |
slc*onl* ) |
33 |
|
platformSeeds="glibc coreutils bash tcsh zsh pdksh perl tcl |
34 |
|
readline openssl ncurses |
35 |
|
e2fsprogs krb5-libs freetype fontconfig |
53 |
|
daq-xgi daq-xoap" |
54 |
|
;; |
55 |
|
*) |
43 |
– |
packageList="external+zlib+$ZLIB_VERSION-1-$ZLIB_REVISION.%cmsplatf.rpm |
44 |
– |
external+openssl+$OPENSSL_VERSION-1-$OPENSSL_REVISION.%cmsplatf.rpm |
45 |
– |
$packageList" |
56 |
|
platformSeeds="glibc glibc-32bit coreutils bash tcsh zsh pdksh perl |
57 |
|
tcl tk perl-Tk readline openssl ncurses XFree86-libs |
58 |
|
e2fsprogs krb5-libs freetype fontconfig XFree86-Mesa-libGLU |
63 |
|
esac |
64 |
|
|
65 |
|
case $cmsplatf in |
66 |
< |
ydl*_ppc64* ) |
66 |
> |
ydl*_ppc64_* ) |
67 |
> |
platformSeeds="$platformSeeds gcc libgcc libstdc++" |
68 |
> |
;; |
69 |
> |
ydl*_ppc_* ) |
70 |
|
platformSeeds="$platformSeeds gcc libgcc libstdc++" |
71 |
|
;; |
72 |
|
esac |
83 |
|
# Fedora |
84 |
|
unsupportedSeeds="$unsupportedSeeds libX11 libXmu libSM libICE libXcursor |
85 |
|
libXext libXrandr libXft mesa-libGLU mesa-libGL e2fsprogs-libs libXi libXinerama |
86 |
< |
libXft libXrender libXpm" |
86 |
> |
libXft libXrender libXpm ncurses-libs libc6-i686" |
87 |
|
|
88 |
|
# Case statement for additional provides. |
89 |
|
case %cmsplatf in |
99 |
|
libkrb5.so.3 libssl.so.4 /bin/csh /bin/tcsh libreadline.so.4 |
100 |
|
libtcl8.4.so libtk8.4.so" |
101 |
|
|
102 |
+ |
defaultPkgs="cms+cms-common+1.0" |
103 |
+ |
|
104 |
|
mkdir -p %{i}/etc/profile.d |
105 |
|
(echo "instroot=%{instroot}"; \ |
106 |
|
echo "rpm_version=$RPM_VERSION"; \ |
107 |
|
echo "apt_version=$APT_VERSION"; \ |
108 |
|
echo "platformSeeds=\"$platformSeeds\""; \ |
109 |
|
echo "unsupportedSeeds=\"$unsupportedSeeds\""; \ |
110 |
< |
echo "packageList=\"$packageList\""; \ |
110 |
> |
echo "packageList=\"`echo $packageList`\""; \ |
111 |
|
echo "additionalProvides=\"$additionalProvides\""; \ |
112 |
|
echo "unsupportedProvides=\"$unsupportedProvides\""; \ |
113 |
+ |
echo "defaultPkgs=\"$defaultPkgs\""; \ |
114 |
|
) > %{i}/%{cmsplatf}-driver.txt |
115 |
+ |
# FIXME: Hack to make sure that the cms-common package is named correctly in the driver file. |
116 |
+ |
# We should make sure that the $PACKAGE_CATEGORY variable is used (requires changes to cmsBuild.sh which |
117 |
+ |
# I don't want to do at this point. |
118 |
+ |
perl -p -i -e 's|external[+]cms-common|cms+cms-common|g' %{i}/%{cmsplatf}-driver.txt |