Revision: | 1.7 |
Committed: | Thu Nov 12 09:00:48 2009 UTC (15 years, 5 months ago) by muzaffar |
Branch: | MAIN |
CVS Tags: | DQMGUI_5_2_1, DQMGUI_5_2_0, CMSSW_3_5_4_patch2, for354p2, CMSSW_3_5_4_patch1, for354patch1, DQMGUI_5_1_8, CMSSW_3_5_4, apFor354v0, CMSSW_3_5_3, apFor353v0, DAS_20100302_slc5_amd64_gcc434, sm100302a-for35X, CMSSW_3_5_2_patch2, apFor352p2v0, CMSSW_3_5_2_patch1, apFor352p1v0, DBS_20100226_slc5_amd64_gcc434, pe20100223a-for36X, CMSSW_3_5_2, apFor352v0, apFor351p2v0, CMSSW_3_5_1_patch1, for351patch1, DBS_20100217_slc5_amd64_gcc434, FILEMOVER_20100217_slc5_amd64_gcc434, DAS_20100217_slc5_amd64_gcc434, dsr20100216fwlite350, DAS_20100216b_slc5_amd64_gcc434, CMSSW_3_5_1, DAS_20100216_slc5_amd64_gcc434, pe20100216b-for36Xmin, pe20100216a-for36X, apFor351v0, ge20100215-rootqt-r522, ge20100215-rootqt-pre5r526, CMSSW_3_5_0_pre5r526, ge20100212-boost, ge20100112-boost, dsr20100209fwlite342, DQMGUI_5_1_7b, CMSSW_3_5_0_patch1, CMSSW_3_4_2_patch1, for350patch1, for342patch1, CMSSW_3_4_2, CMSSW_3_5_0, apFor350v0, pe20100205a-for35X, eskFor342, pe20100204a-for35X, DQMGUI_5_1_7, dg20100201-dbs3, FILEMOVER_20100201_slc5_amd64_gcc434, FILEMOVER_20100128b_slc5_amd64_gcc434, dg20100129-dbs3, pe20100131c-for35Xr526, pe20100131b-for35Xr526, pe20100131a-for35Xr526, CMSSW_3_5_0_pre5g493, pe20100130b-for35Xg493, pe20100130-for35Xg493, CMSSW_3_5_0_pre5, pe20100129a-for35X, CMSSW_3_5_0_pre4, apFor350pre5v0, dg20100128-dbs3, FILEMOVER_20100128_slc5_amd64_gcc434, apFor350pre4v0, DAS_20100127_slc5_amd64_gcc434, pe20100127e-for35X, pe20100127d-for35X, pe20100127c-for35X, pe20100127b-for35X, pe20100127a-for35X, DAS_20100126_slc5_amd64_gcc434, pe20100124a-for35X, ap20100123a-for35X, FILEMOVER_20100122_slc5_amd64_gcc434, DAS_20100119_slc5_amd64_gcc434, CMSSW_3_5_0_pre3, DAS_20100115_slc5_amd64_gcc434, dg20100115-security, DBS_20100115_slc5_amd64_gcc434, apFor350pre3v0, pe20100113a-for35X, sm20100113a-for35X, sm20100113-for35X, pe20100112b-for35X, dg20100112-security, DBS_20100112_slc5_amd64_gcc434, sm20100112a-for35X, sm20100112-for35X, pe20100112-for35X, DBS_20100111_slc5_amd64_gcc434, dg20100111-security, dg20100107b-wmcore, dg20100107-wmcore, dsr20100107fwlite341, sm100106a, DAS_20100105_slc5_amd64_gcc434, sm100105c, sm100105b, pe20100105a-for34X-for35X, ge20100105-pyqt-relocatable-build, sm100105a, pe20091227a-ports, DAS_20091221_slc5_amd64_gcc434, CMSSW_3_5_0_pre2, CMSSW_3_4_1, apFor350pre2v2, apFor350pre2v1, apFor350pre2v0, eskFor341, pe20091216b-for34X-for35X, pe20091216a-for34X-for35X, CMSSW_3_4_0, ge20091214b-new-bootstrap, ge20091214a-new-bootstrap, ge20091214-new-bootstrap, DAS_20091214_slc5_amd64_gcc434, ge20091214-fix-rh5x, CMSSW_3_5_0_pre1, apFor350pre1v0, eskFor340, dg20091211-couchdb, dg20091210-phedex, pe20091209b-for34X-for35X, dg20091203c-comp-base, pe20091209a-for34X-for35X, DD_20091208_slc5_amd64_gcc434, DAS_20091208_slc5_amd64_gcc434, FILEMOVER_20091208_slc5_amd64_gcc434, DBS_20091208_slc5_amd64_gcc434, CMSSW_3_3_6_slc5-gcc434, apFor336v0-slc5-gcc434, CMSSW_3_3_5_patch4_slc5-gcc434, apFor335p4v0-slc5-gcc434, apFor335p4-slc5-gcc434, CMSSW_3_3_5_patch3_slc5-gcc434, apFor335p3v0-slc5-gcc434, CMSSW_3_4_0_pre7, eskFor340p7-slc5-gcc434, CMSSW_3_3_5_patch2_slc5-gcc434, dg20091203b-comp-base, apFor335p2v0-slc5-gcc434, CMSSW_3_3_5_patch1_slc5-gcc434, pe20091201a-for34X-slc5-gcc434, apFor335pat1v2-slc5-gcc434, apFor335pat1v1-slc5-gcc434, apFor335pat1v0-slc5-gcc434, DQMCATTEST_0_0_1, pe20091130b-for34X-slc5-gcc434, pe20091130a-for34X-slc5-gcc434, CMSSW_3_3_5_slc5-gcc434, apFor335v0-sl5igcc4, pe20091126a-for33X-slc5-gcc434, pe20091120c-for34X-slc5-gcc434, CMSSW_3_4_0_pre6, pe20091120b-for34X-slc5-gcc434, pe20091120a-for34X-slc5-gcc434, pe20091119b-for34X-slc5-gcc434, pe20091119a-for34X-slc5-gcc434, CMSSW_3_3_4_slc5-gcc434, eskFor340p6-slc5-gcc434, apFor334v0-sl5igcc4, DAS_20091117, pe20091116a-for34X-slc5-gcc434, pe20091114a-for34X-slc5-gcc434, pe20091113c-for34X-slc5-gcc434, pe20091113c-for33X-slc5-gcc434, CMSSW_3_3_2_ONLINE-slc5, sm091112c-slc5onl, sm091112b-slc5onl, sm091112a-slc5onl, sm091112-slc5onl |
Changes since 1.6: | +6 -121 lines |
Log Message: | use oracle from external area for online and make use of gcc-toolfile for online too instead of generating compiler toolfiles from onlinesystemtools |
# | User | Rev | Content |
---|---|---|---|
1 | ratnik | 1.4 | ### RPM external onlinesystemtools 2.2 |
2 | ratnik | 1.1 | Source: none |
3 | |||
4 | ratnik | 1.2 | # Here we are assuming that online release always uses system compiler: |
5 | muzaffar | 1.7 | %define compilertools jcompiler |
6 | ratnik | 1.1 | |
7 | muzaffar | 1.7 | %define onlinetools zlib curl openssl xerces-c xdaq xdaqheader mimetic |
8 | ratnik | 1.1 | # Define variables used in non-scram-managed tools, that would be |
9 | # normally defined in package's init.sh/csh scrips. | ||
10 | # Set all versions as currently found on the system. | ||
11 | %define curl_version 7.12.1 | ||
12 | ## INITENV SET CURL_VERSION %curl_version | ||
13 | %define zlib_version 1.2.1.2 | ||
14 | ## INITENV SET ZLIB_VERSION %zlib_version | ||
15 | muzaffar | 1.7 | %define openssl_version 0.9.7e |
16 | ratnik | 1.1 | ## INITENV SET OPENSSL_VERSION %openssl_version |
17 | %define xerces_version 2.7.0 | ||
18 | ## INITENV SET XERCES_C_VERSION %xerces_version | ||
19 | ## INITENV SET XERCES_C_ROOT /opt/xdaq | ||
20 | ratnik | 1.4 | %define xdaq_version 3.24.0 |
21 | ratnik | 1.1 | ## INITENV SET XDAQ_VERSION %xdaq_version |
22 | ## INITENV SET XDAQ_ROOT /opt/xdaq | ||
23 | %define mimetic_version 0.9.1 | ||
24 | ## INITENV SET MIMETIC_VERSION %mimetic_version | ||
25 | |||
26 | %define systemtools sockets opengl x11 %compilertools %onlinetools | ||
27 | %define sockets_version 1.0 | ||
28 | %define opengl_version XFree4.2 | ||
29 | %define x11_version R6 | ||
30 | ### why oh why is this hardwired?? | ||
31 | %define jcompiler_version 1.5.0.p6-CMS8 | ||
32 | |||
33 | ## INITENV SET SOCKETS_VERSION %sockets_version | ||
34 | ## INITENV SET OPENGL_VERSION %opengl_version | ||
35 | ## INITENV SET X11_VERSION %x11_version | ||
36 | ## INITENV SET JCOMPILER_VERSION %jcompiler_version | ||
37 | ## INITENV SET JCOMPILER_TOOL java-jdk | ||
38 | ## INITENV SET PKGTOOLS_SYSTEM_TOOLS %systemtools | ||
39 | |||
40 | %prep | ||
41 | %build | ||
42 | %install | ||
43 | # SCRAM ToolBox toolfile | ||
44 | mkdir -p %i/etc/scram.d | ||
45 | # Sockets | ||
46 | cat << \EOF_TOOLFILE >%i/etc/scram.d/sockets | ||
47 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
48 | <Tool name=Sockets version=%sockets_version> | ||
49 | EOF_TOOLFILE | ||
50 | case %cmsplatf in | ||
51 | andreasp | 1.6 | slc3_* | slc4_* | slc4onl_* | slc5onl_* ) |
52 | ratnik | 1.1 | cat << \EOF_TOOLFILE >>%i/etc/scram.d/sockets |
53 | <lib name=nsl> | ||
54 | <lib name=crypt> | ||
55 | <lib name=dl> | ||
56 | EOF_TOOLFILE | ||
57 | ;; | ||
58 | osx10* ) | ||
59 | cat << \EOF_TOOLFILE >>%i/etc/scram.d/sockets | ||
60 | <lib name=dl> | ||
61 | EOF_TOOLFILE | ||
62 | ;; | ||
63 | esac | ||
64 | echo "</Tool>" >>%i/etc/scram.d/sockets | ||
65 | |||
66 | # OpenGL | ||
67 | cat << \EOF_TOOLFILE >%i/etc/scram.d/opengl | ||
68 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
69 | <Tool name=OpenGL version=%opengl_version> | ||
70 | <use name=X11> | ||
71 | <lib name=GL> | ||
72 | <lib name=GLU> | ||
73 | EOF_TOOLFILE | ||
74 | case %cmsplatf in | ||
75 | osx103* ) | ||
76 | cat << \EOF_TOOLFILE >>%i/etc/scram.d/opengl | ||
77 | <Client> | ||
78 | <Environment name=OPENGL_BASE default="/System/Library/Frameworks/OpenGL.framework/Versions/A"></Environment> | ||
79 | <Environment name=INCLUDE default="$OPENGL_BASE/Headers"></Environment> | ||
80 | <Environment name=LIBDIR default="$OPENGL_BASE/Libraries"></Environment> | ||
81 | </Client> | ||
82 | EOF_TOOLFILE | ||
83 | ;; | ||
84 | esac | ||
85 | echo "</Tool>" >>%i/etc/scram.d/opengl | ||
86 | |||
87 | # X11 | ||
88 | cat << \EOF_TOOLFILE >%i/etc/scram.d/x11 | ||
89 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
90 | <Tool name=X11 version=%x11_version> | ||
91 | EOF_TOOLFILE | ||
92 | case %cmsplatf in | ||
93 | slc3_* ) | ||
94 | cat << \EOF_TOOLFILE >>%i/etc/scram.d/x11 | ||
95 | <Client> | ||
96 | <Environment name=INCLUDE value="/usr/X11R6/include"></Environment> | ||
97 | <Environment name=LIBDIR value="/usr/X11R6/lib"></Environment> | ||
98 | </Client> | ||
99 | <lib name=Xt> | ||
100 | <lib name=Xpm> | ||
101 | <lib name=X11> | ||
102 | <lib name=Xi> | ||
103 | <lib name=Xext> | ||
104 | <lib name=Xmu> | ||
105 | <lib name=ICE> | ||
106 | <lib name=SM> | ||
107 | EOF_TOOLFILE | ||
108 | ;; | ||
109 | esac | ||
110 | cat << \EOF_TOOLFILE >>%i/etc/scram.d/x11 | ||
111 | <use name=sockets> | ||
112 | </Tool> | ||
113 | EOF_TOOLFILE | ||
114 | |||
115 | # JCompiler | ||
116 | %define compiler_ver %(echo %jcompiler_version | sed -e "s|\\.||g") | ||
117 | cat << \EOF_TOOLFILE >>%i/etc/scram.d/jcompiler | ||
118 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
119 | <Tool name=jcompiler version=%jcompiler_version type=compiler> | ||
120 | <Client> | ||
121 | <Environment name=JAVA_BASE></Environment> | ||
122 | <Environment name=JAVAC value="$JAVA_BASE/bin/javac"></Environment> | ||
123 | </Client> | ||
124 | <Runtime name=JAVA_HOME default="$JAVA_BASE"> | ||
125 | <flags JAVAC_="$(JAVAC)"> | ||
126 | <flags JAVAC_o="$(JAVAC) -O"> | ||
127 | <flags JAVAC_d="$(JAVAC) -g"> | ||
128 | <Flags SCRAM_COMPILER_NAME="jsdk%compiler_ver"> | ||
129 | <Flags SCRAM_LANGUAGE_TYPE="JAVA"> | ||
130 | </Tool> | ||
131 | EOF_TOOLFILE | ||
132 | |||
133 | # curl | ||
134 | cat << \EOF_TOOLFILE >%i/etc/scram.d/curl | ||
135 | <doc type=BuildSystem::ToolDoc version=1.0> | ||
136 | <Tool name=Curl version=%curl_version> | ||
137 | <lib name=curl> | ||
138 | <client> | ||
139 | <Environment name=CURL_BASE default="/usr/"></Environment> | ||
140 | <Environment name=INCLUDE default="$CURL_BASE/include"></Environment> | ||
141 | <Environment name=LIBDIR default="$CURL_BASE/lib"></Environment> | ||
142 | </client> | ||
143 | <Runtime name=PATH value="$CURL_BASE/bin" type=path> | ||
144 | </Tool> | ||
145 | EOF_TOOLFILE | ||
146 | |||
147 | #zlib | ||
148 | cat << \EOF_TOOLFILE >%i/etc/scram.d/zlib | ||
149 | <doc type=BuildSystem::ToolDoc version=1.0> | ||
150 | <Tool name=zlib version=%zlib_version> | ||
151 | <lib name=z> | ||
152 | <client> | ||
153 | <Environment name=ZLIB_BASE default="/usr"></Environment> | ||
154 | <Environment name=INCLUDE default="$ZLIB_BASE/include"></Environment> | ||
155 | <Environment name=LIBDIR default="$ZLIB_BASE/lib"></Environment> | ||
156 | </client> | ||
157 | </Tool> | ||
158 | EOF_TOOLFILE | ||
159 | |||
160 | |||
161 | #openssl | ||
162 | cat << \EOF_TOOLFILE >%i/etc/scram.d/openssl | ||
163 | <doc type=BuildSystem::ToolDoc version=1.0> | ||
164 | <Tool name=openssl version=%openssl_version> | ||
165 | <lib name=ssl> | ||
166 | <lib name=crypto> | ||
167 | <client> | ||
168 | <Environment name=OPENSSL_BASE default="/usr"></Environment> | ||
169 | <Environment name=INCLUDE default="$OPENSSL_BASE/include"></Environment> | ||
170 | <Environment name=LIBDIR default="$OPENSSL_BASE/lib"></Environment> | ||
171 | </client> | ||
172 | </Tool> | ||
173 | EOF_TOOLFILE | ||
174 | |||
175 | #xerces-c | ||
176 | cat << \EOF_TOOLFILE >%i/etc/scram.d/xerces-c | ||
177 | <doc type=BuildSystem::ToolDoc version=1.0> | ||
178 | <Tool name=xerces-c version=%xerces_version> | ||
179 | <info url="http://xml.apache.org/xerces-c/"></info> | ||
180 | <lib name=xerces-c> | ||
181 | <Client> | ||
182 | <Environment name=XERCES_C_BASE default="/opt/xdaq"></Environment> | ||
183 | <Environment name=INCLUDE default="$XERCES_C_BASE/include"></Environment> | ||
184 | <Environment name=LIBDIR default="$XERCES_C_BASE/lib"></Environment> | ||
185 | </Client> | ||
186 | </Tool> | ||
187 | EOF_TOOLFILE | ||
188 | |||
189 | #xdaq | ||
190 | cat << \EOF_TOOLFILE >%i/etc/scram.d/xdaq | ||
191 | <doc type=BuildSystem::ToolDoc version=1.0> | ||
192 | <Tool name=XDAQ version=%xdaq_version> | ||
193 | <info url=http://home.cern.ch/xdaq></info> | ||
194 | <lib name=toolbox> | ||
195 | <lib name=xdaq> | ||
196 | <lib name=config> | ||
197 | <lib name=xoap> | ||
198 | <lib name=xgi> | ||
199 | <lib name=xdata> | ||
200 | <lib name=cgicc> | ||
201 | <lib name=log4cplus> | ||
202 | <lib name=xcept> | ||
203 | <lib name=logudpappender> | ||
204 | <lib name=peer> | ||
205 | <lib name=logxmlappender> | ||
206 | <lib name=asyncresolv> | ||
207 | <lib name=ptfifo> | ||
208 | <lib name=pthttp> | ||
209 | <lib name=pttcp> | ||
210 | <lib name=i2outils> | ||
211 | <lib name=xdaq2rc> | ||
212 | <Client> | ||
213 | <Environment name=XDAQ_BASE default="/opt/xdaq"></Environment> | ||
214 | <Environment name=LIBDIR default="$XDAQ_BASE/lib"></Environment> | ||
215 | <Environment name=BINDIR default="$XDAQ_BASE/bin"></Environment> | ||
216 | <Environment name=INCLUDE default="$XDAQ_BASE/include"></Environment> | ||
217 | <Environment name=INCLUDE default="$XDAQ_BASE/include/linux"></Environment> | ||
218 | </Client> | ||
219 | <use name=xerces-c> | ||
220 | <use name=sockets> | ||
221 | <use name=mimetic> | ||
222 | <use name=uuid> | ||
223 | <runtime name=XDAQ_OS value="linux"> | ||
224 | <runtime name=XDAQ_PLATFORM value="x86"> | ||
225 | <runtime name=PATH value="$BINDIR" type=path> | ||
226 | <runtime name=XDAQ_ROOT value="$XDAQ_BASE"> | ||
227 | <runtime name=XDAQ_DOCUMENT_ROOT value="$XDAQ_BASE/daq"> | ||
228 | <flags CPPDEFINES="SOAP__ LITTLE_ENDIAN__"> | ||
229 | <flags CPPDEFINES="linux"> | ||
230 | </Tool> | ||
231 | EOF_TOOLFILE | ||
232 | |||
233 | ratnik | 1.3 | #xdaqheader |
234 | cat << \EOF_TOOLFILE >%i/etc/scram.d/xdaqheader | ||
235 | <doc type=BuildSystem::ToolDoc version=1.0> | ||
236 | <Tool name=XDAQHEADER version=%xdaq_version> | ||
237 | <info url=http://home.cern.ch/xdaq></info> | ||
238 | <Client> | ||
239 | <Environment name=XDAQHEADER_BASE default="/opt/xdaq"></Environment> | ||
240 | <Environment name=INCLUDE default="$XDAQHEADER_BASE/include"></Environment> | ||
241 | </Client> | ||
242 | </Tool> | ||
243 | EOF_TOOLFILE | ||
244 | |||
245 | ratnik | 1.1 | #mimetic |
246 | cat << \EOF_TOOLFILE >%i/etc/scram.d/mimetic | ||
247 | <doc type=BuildSystem::ToolDoc version=1.0> | ||
248 | <Tool name=mimetic version=%mimetic_version> | ||
249 | <lib name=mimetic> | ||
250 | <Client> | ||
251 | <Environment name=MIMETIC_BASE default="/opt/xdaq"></Environment> | ||
252 | <Environment name=LIBDIR default="$MIMETIC_BASE/lib"></Environment> | ||
253 | <Environment name=INCLUDE default="$MIMETIC_BASE/include"></Environment> | ||
254 | </Client> | ||
255 | </Tool> | ||
256 | EOF_TOOLFILE | ||
257 | |||
258 | %post | ||
259 | muzaffar | 1.7 | cd $RPM_INSTALL_PREFIX/%pkgrel |
260 | perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) | ||
261 |