Revision: | 1.1 |
Committed: | Thu Nov 22 21:59:19 2007 UTC (17 years, 5 months ago) by eulisse |
Branch: | MAIN |
CVS Tags: | CMSSW_1_8_4, pe20080405-for184, CMSSW_1_8_3, pe20080326-for183, pe20080325-for183, CMSSW_1_8_2, pe20080324-for182, CMSSW_1_8_1, nr080314_181onl1, pe20080314-for181, CMSSW_1_8_0_ONLINE1, nr080310_180onl1, nr080307onl180onl1, CMSSW_1_8_0, pe20080304a-for180, pe20080303a-for18X, CMSSW_1_8_0_pre10, pe20080226-for180p10, pe20080220a-for18X, CMSSW_1_8_0_pre9, nr080215g491p01dbg, CMSSW_2_0_0_pre1, CMSSW_1_8_0_pre8, dl080202, pe20080126-for180p8, CMSSW_1_8_0_pre7, pe20080122a-for180p7, dl080120, pe20080120a-for180p7, pe20080117b-for180p7, pe20080117-for180p7, dl080115, CMSSW_1_8_0_pre6, NR080108_geant491-dbg-global, sm20080101a-newscram, pe20071226c-for180p6, pe20071226b-for180p6, pe20071226a-for180p6, pe20071220b-for180p6, pe20071220-for180p6, CMSSW_1_8_0_pre5, pe20071216-for180p5, CMSSW_1_8_0_pre4-vg330, ge20071212-perfreport, pe20071207-for180p4g491c3, NR071206_geant491cand3-global, pe20071206-for180test1, CMSSW_1_8_0_pre4, pe20071205b-for180p4, pe20071205-for180p4, CMSSW_1_8_0_pre3a, pe20071201b-for180p3a, pe20071201-for180p3a, pe20071130-for180p3, pe20071129-for180p3, CMSSW_1_8_0_pre2, CMSSW_1_8_0_pre0-amd64, CMSSW_1_8_0_pre0, pe20071123e-ports-412, pe20071123d-ports-412, pe20071123c-ports-422, pe20071123c-ports-412, pe20071123c-ports, pe20071123b-ports-422, pe20071123b-ports-412, pe20071123b-ports, pe20071123a-ports-422, pe20071123a-ports-412, pe20071123a-ports, ge20071122-new-bootstrap |
Log Message: | New spec which generatest a driver file for the bootstrap on a given architecture. |
# | User | Rev | Content |
---|---|---|---|
1 | eulisse | 1.1 | ### RPM external bootstrap-driver 1.0 |
2 | Source: bootstrap | ||
3 | Requires: apt | ||
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" | ||
17 | |||
18 | case %cmsplatf in | ||
19 | slc*online* ) | ||
20 | platformSeeds="glibc coreutils bash tcsh zsh pdksh perl tcl | ||
21 | readline openssl ncurses | ||
22 | e2fsprogs krb5-libs freetype fontconfig | ||
23 | xorg-x11-deprecated-libs xorg-x11-libs xorg-x11-Mesa-libGLU | ||
24 | xorg-x11-Mesa-libGL compat-libstdc++-33 libidn" | ||
25 | |||
26 | # ONLINE: seed system compiler (only libraries for runtime) | ||
27 | platformSeeds="$platformSeeds libgcc libstdc++" | ||
28 | |||
29 | # ONLINE: seed other available system tools: | ||
30 | platformSeeds="$platformSeeds curl libpng libtiff libungif openssl qt zlib perl-DBI-1.40-8" | ||
31 | # Python tools are commented out due to compatibility problems. | ||
32 | #platformSeeds="$platformSeeds python python-elementtree" | ||
33 | |||
34 | # ONLINE: seed daq-built tools: | ||
35 | platformSeeds="$platformSeeds daq-cgicc daq-mimetic daq-oracle daq-tinyproxy | ||
36 | daq-xerces daq-xdaq" | ||
37 | platformSeeds="$platformSeeds daq-config daq-log4cplus daq-logudpappender | ||
38 | daq-logxmlappender daq-pt daq-ptfifo daq-pthttp | ||
39 | daq-pttcp daq-toolbox daq-xcept daq-xdaq2rc daq-xdata | ||
40 | daq-xgi daq-xoap" | ||
41 | ;; | ||
42 | *) | ||
43 | packageList="external+zlib+$ZLIB_VERSION-1-$ZLIB_REVISION.%cmsplatf.rpm | ||
44 | external+openssl+$OPENSSL_VERSION-1-$OPENSSL_REVISION.%cmsplatf.rpm | ||
45 | $packageList" | ||
46 | platformSeeds="glibc glibc-32bit coreutils bash tcsh zsh pdksh perl | ||
47 | tcl tk perl-Tk readline openssl ncurses XFree86-libs | ||
48 | e2fsprogs krb5-libs freetype fontconfig XFree86-Mesa-libGLU | ||
49 | XFree86-Mesa-libGL xorg-x11-deprecated-libs | ||
50 | xorg-x11-libs xorg-x11-Mesa-libGLU xorg-x11-Mesa-libGL | ||
51 | compat-libstdc++-33 fglrx_6_8_0 libidn" | ||
52 | ;; | ||
53 | esac | ||
54 | |||
55 | case $cmsplatf in | ||
56 | ydl*_ppc64* ) | ||
57 | platformSeeds="$platformSeeds gcc libgcc libstdc++" | ||
58 | ;; | ||
59 | esac | ||
60 | |||
61 | # OpenSuse | ||
62 | unsupportedSeeds="xorg-x11-Mesa compat-readline4 compat-curl2 freetype2 | ||
63 | xorg-x11-libX11" | ||
64 | # Ubuntu | ||
65 | unsupportedSeeds="$unsupportedSeeds libcomerr2 libidn11 libxi6 libxpm4 libxinerama1 | ||
66 | libncurses5 libsm6 libice6 libc6 libxcursor1 libxmu6 | ||
67 | libgl1-mesa-glx libxft2 perl-base xserver-xorg xserver-xorg-core | ||
68 | libfreetype6 libfontconfig1 libgl1-mesa libxrandr2 libglu1-mesa | ||
69 | libxext6 libx11-6 libxrender1" | ||
70 | # Fedora | ||
71 | unsupportedSeeds="$unsupportedSeeds libX11 libXmu libSM libICE libXcursor | ||
72 | libXext libXrandr libXft mesa-libGLU mesa-libGL e2fsprogs-libs libXi libXinerama | ||
73 | libXft libXrender libXpm" | ||
74 | |||
75 | # Case statement for additional provides. | ||
76 | case %cmsplatf in | ||
77 | osx* ) | ||
78 | additionalProvides="AGL ApplicationServices Carbon CoreFoundation | ||
79 | CoreServices OpenGL Python QuickTime Tcl Tk | ||
80 | libintl.3.dylib" | ||
81 | ;; | ||
82 | esac | ||
83 | |||
84 | unsupportedProvides="libtcl8.3.so libtk8.3.so /bin/env libcom_err.so.3 | ||
85 | libcrypto.so.4 libgssapi_krb5.so.2 libk5crypto.so.3 | ||
86 | libkrb5.so.3 libssl.so.4 /bin/csh /bin/tcsh libreadline.so.4 | ||
87 | libtcl8.4.so libtk8.4.so" | ||
88 | |||
89 | mkdir -p %{i}/etc/profile.d | ||
90 | (echo "instroot=%{instroot}"; \ | ||
91 | echo "rpm_version=$RPM_VERSION"; \ | ||
92 | echo "platformSeeds=\"$platformSeeds\""; \ | ||
93 | echo "unsupportedSeeds=\"$unsupportedSeeds\""; \ | ||
94 | echo "packageList=\"$packageList\""; \ | ||
95 | echo "additionalProvides=\"$additionalProvides\""; \ | ||
96 | echo "unsupportedProvides=\"$unsupportedProvides\""; \ | ||
97 | ) > %{i}/%{cmsplatf}-driver.txt |