ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/systemtools.spec
(Generate patch)

Comparing COMP/CMSDIST/systemtools.spec (file contents):
Revision 1.3 by dlange, Fri Sep 7 14:31:05 2007 UTC vs.
Revision 1.8 by elmer, Tue Nov 13 14:16:42 2007 UTC

# Line 1 | Line 1
1 < ### RPM virtual systemtools 1.0
1 > ### RPM external systemtools 18
2   Source: none
3  
4 < %define systemtools                     sockets opengl x11 jcompiler
4 > %if "%{?use_system_gcc:set}" == "set"
5 > %define compilertools ccompiler cxxcompiler f77compiler jcompiler
6 > %else
7 > %define compilertools %jcompiler
8 > %endif
9 >
10 > %if "%{?online_release:set}" == "set"
11 > #%define onlinetools curl libpng libtiff libungif mimetic mysql openssl oracle python elementtree qt xdaq xerces zlib
12 > %define onlinetools zlib curl oracle openssl xerces-c xdaq mimetic
13 > # Define variables used in non-scram-managed tools, that would be
14 > # normally defined in package's init.sh/csh scrips.
15 > # Set all versions as currently found on the system.
16 > %define compiler_version                3.4.6
17 > ## INITENV SET CXXCOMPILER_VERSION      %compiler_version
18 > ## INITENV SET CCOMPILER_VERSION        %compiler_version
19 > ## INITENV SET F77COMPILER_VERSION      %compiler_version
20 > %define curl_version                    7.12.1
21 > ## INITENV SET CURL_VERSION             %curl_version
22 > %define zlib_version                    1.2.1.2
23 > ## INITENV SET ZLIB_VERSION             %zlib_version
24 > %define oracle_version                  10.2.1
25 > ## INITENV SET ORACLE_VERSION           %oracle_version
26 > ## INITENV SET ORACLE_ROOT              /opt/xdaq
27 > %define openssl_version                 0.9.7a
28 > ## INITENV SET OPENSSL_VERSION          %openssl_version
29 > %define xerces_version                  2.7.0
30 > ## INITENV SET XERCES_C_VERSION         %xerces_version
31 > ## INITENV SET XERCES_C_ROOT            /opt/xdaq
32 > %define xdaq_version                    3.13.0
33 > ## INITENV SET XDAQ_VERSION             %xdaq_version
34 > ## INITENV SET XDAQ_ROOT                /opt/xdaq
35 > %define mimetic_version                 0.9.1
36 > ## INITENV SET MIMETIC_VERSION          %mimetic_version
37 > %else
38 > %define onlinetools %{nil}
39 > %endif
40 >
41 > %define systemtools                     sockets opengl x11 %compilertools %onlinetools
42   %define sockets_version                 1.0
43   %define opengl_version                  XFree4.2
44   %define x11_version                     R6
45   ### why oh why is this hardwired??
46 < %define jcompiler_version               1.5.0.p6-CMS8
46 > %define jcompiler_version               1.5.0.p6-CMS18
47  
48   ## INITENV SET SOCKETS_VERSION          %sockets_version
49   ## INITENV SET OPENGL_VERSION           %opengl_version
# Line 26 | Line 63 | cat << \EOF_TOOLFILE >%i/etc/scram.d/soc
63   <Tool name=Sockets version=%sockets_version>
64   EOF_TOOLFILE
65   case %cmsplatf in
66 < slc3_* | slc4_* )
66 > slc3_* | slc4_* | slc4onl_* )
67   cat << \EOF_TOOLFILE >>%i/etc/scram.d/sockets
68   <lib name=nsl>
69   <lib name=crypt>
# Line 108 | Line 145 | cat << \EOF_TOOLFILE >>%i/etc/scram.d/jc
145   </Tool>
146   EOF_TOOLFILE
147  
148 + %if "%{?online_release:set}" == "set"
149 + #cxxcompiler
150 + cat << \EOF_TOOLFILE >%i/etc/scram.d/cxxcompiler
151 + <doc type=BuildSystem::ToolDoc version=1.1>
152 + <tool name=cxxcompiler version=%compiler_version type=compiler>
153 + <client>
154 + <Environment name=GCC_BASE default="/usr"></Environment>
155 + <Environment name=GCCBINDIR default="$GCC_BASE/bin"></Environment>
156 + <Environment name=CXX value="$GCCBINDIR/c++"></Environment>
157 + </client>
158 + <Flags SCRAM_COMPILER_NAME="gcc345">
159 + <Flags CCcompiler="gcc3">
160 + <Flags MODULEFLAGS="-shared">
161 + <Flags CXXDEBUGFLAG="-g">
162 + <Flags CPPDEFINES="GNU_GCC">
163 + <Flags CPPDEFINES="_GNU_SOURCE">
164 + <Flags CXXSHAREDOBJECTFLAGS="-fPIC">
165 + <Flags CXXFLAGS="-pedantic -ansi -pthread -pipe">
166 + <Flags CXXFLAGS="-O2">
167 + <Flags CXXFLAGS="-felide-constructors -fmessage-length=0 -ftemplate-depth-300">
168 + <Flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wimplicit -Wreturn-type -Wunused -Wparentheses">
169 + <Flags LDFLAGS="-Wl,-E">
170 + <Flags CXXSHAREDFLAGS="-Wl,-E">
171 + <Flags SHAREDSUFFIX="so">
172 + <Flags SCRAM_LANGUAGE_TYPE="C++">
173 + <Runtime name=GCC_EXEC_PREFIX default="$GCC_BASE/lib/gcc-lib/">
174 + </tool>
175 + EOF_TOOLFILE
176 + #ccompiler
177 + cat << \EOF_TOOLFILE >%i/etc/scram.d/ccompiler
178 + <doc type=BuildSystem::ToolDoc version=1.1>
179 + <tool name=ccompiler version=%compiler_version type=compiler>
180 + <client>
181 + <Environment name=GCC_BASE default="/usr"></Environment>
182 + <Environment name=GCCBINDIR value="$GCC_BASE/bin"></Environment>
183 + <Environment name=CC value="$GCCBINDIR/gcc"></Environment>
184 + </client>
185 + <Flags CDEBUGFLAG="-g">
186 + <Flags CSHAREDOBJECTFLAGS="-fPIC">
187 + <Flags CFLAGS="-pthread">
188 + <Flags CFLAGS="-O2">
189 + <Flags LDFLAGS="-Wl,-E">
190 + <Flags CSHAREDFLAGS="-Wl,-E">
191 + <Flags SCRAM_COMPILER_NAME="gcc345">
192 + <Flags SCRAM_LANGUAGE_TYPE="C">
193 + </tool>
194 + EOF_TOOLFILE
195 +
196 + #f77compiler
197 + cat << \EOF_TOOLFILE >%i/etc/scram.d/f77compiler
198 + <doc type=BuildSystem::ToolDoc version=1.1>
199 + <tool name=f77compiler version=%compiler_version type=compiler>
200 + <lib name=g2c>
201 + <lib name=m>
202 + <client>
203 + <Environment name=G77_BASE default="/usr"></Environment>
204 + <Environment name=FC default="$G77_BASE/bin/g77"></Environment>
205 + </client>
206 + <Flags SCRAM_COMPILER_NAME="gcc345">
207 + <Flags FFLAGS="-fno-second-underscore -Wno-globals -Wunused -Wuninitialized">
208 + <Flags FCO2Flag="-O2">
209 + <Flags FCOPTIMISED="-O2">
210 + <Flags FCDEBUGFLAG="-g">
211 + <Flags FCSHAREDFCOBJECTFLAGS="-fPIC">
212 + <Flags SCRAM_LANGUAGE_TYPE="FORTRAN">
213 + </tool>
214 + EOF_TOOLFILE
215 +
216 + # curl
217 + cat << \EOF_TOOLFILE >%i/etc/scram.d/curl
218 + <doc type=BuildSystem::ToolDoc version=1.0>
219 + <Tool name=Curl version=%curl_version>
220 + <lib name=curl>
221 + <client>
222 + <Environment name=CURL_BASE default="/usr/"></Environment>
223 + <Environment name=INCLUDE default="$CURL_BASE/include"></Environment>
224 + <Environment name=LIBDIR  default="$CURL_BASE/lib"></Environment>
225 + </client>
226 + <Runtime name=PATH value="$CURL_BASE/bin" type=path>
227 + </Tool>
228 + EOF_TOOLFILE
229 +
230 + #zlib
231 + cat << \EOF_TOOLFILE >%i/etc/scram.d/zlib
232 + <doc type=BuildSystem::ToolDoc version=1.0>
233 + <Tool name=zlib version=%zlib_version>
234 + <lib name=z>
235 + <client>
236 + <Environment name=ZLIB_BASE default="/usr"></Environment>
237 + <Environment name=INCLUDE default="$ZLIB_BASE/include"></Environment>
238 + <Environment name=LIBDIR  default="$ZLIB_BASE/lib"></Environment>
239 + </client>
240 + </Tool>
241 + EOF_TOOLFILE
242 +
243 + #oracle
244 + cat << \EOF_TOOLFILE >%i/etc/scram.d/oracle
245 + <doc type=BuildSystem::ToolDoc version=1.0>
246 + <Tool name=oracle version=%oracle_version>
247 + <lib name=clntsh>
248 + <lib name=occi>
249 + <lib name=nnz10>
250 + <Client>
251 + <Environment name=ORACLE_BASE default="/opt/xdaq"></Environment>
252 + <Environment name=ORACLE_ADMINDIR default="."> </Environment>
253 + <Environment name=LIBDIR value="$ORACLE_BASE/lib"></Environment>
254 + <Environment name=BINDIR value="$ORACLE_BASE/bin"></Environment>
255 + <Environment name=INCLUDE value="$ORACLE_BASE/include"></Environment>
256 + </Client>
257 + <use name=sockets>
258 + <Runtime name=PATH value="$BINDIR" type=path>
259 + <Runtime name=NLS_LANG value="american_america.WE8ISO8859P9">
260 + <Runtime name=NLS_DATE_FORMAT value="DD-MON-FXYYYY">
261 + <Runtime name=ORA_NLS33 default="$ORACLE_BASE/ocommon/nls/admin/data">
262 + <Runtime name=ORACLE_HOME default="$ORACLE_BASE">
263 + <Runtime name=TNS_ADMIN default="$ORACLE_ADMINDIR">
264 + </Tool>
265 + EOF_TOOLFILE
266 +
267 + #openssl
268 + cat << \EOF_TOOLFILE >%i/etc/scram.d/openssl
269 + <doc type=BuildSystem::ToolDoc version=1.0>
270 + <Tool name=openssl version=%openssl_version>
271 + <lib name=ssl>
272 + <lib name=crypto>
273 + <client>
274 + <Environment name=OPENSSL_BASE default="/usr"></Environment>
275 + <Environment name=INCLUDE default="$OPENSSL_BASE/include"></Environment>
276 + <Environment name=LIBDIR  default="$OPENSSL_BASE/lib"></Environment>
277 + </client>
278 + </Tool>
279 + EOF_TOOLFILE
280 +
281 + #xerces-c
282 + cat << \EOF_TOOLFILE >%i/etc/scram.d/xerces-c
283 + <doc type=BuildSystem::ToolDoc version=1.0>
284 + <Tool name=xerces-c version=%xerces_version>
285 + <info url="http://xml.apache.org/xerces-c/"></info>
286 + <lib name=xerces-c>
287 + <Client>
288 + <Environment name=XERCES_C_BASE default="/opt/xdaq"></Environment>
289 + <Environment name=INCLUDE default="$XERCES_C_BASE/include"></Environment>
290 + <Environment name=LIBDIR default="$XERCES_C_BASE/lib"></Environment>
291 + </Client>
292 + </Tool>
293 + EOF_TOOLFILE
294 +
295 + #xdaq
296 + cat << \EOF_TOOLFILE >%i/etc/scram.d/xdaq
297 + <doc type=BuildSystem::ToolDoc version=1.0>
298 + <Tool name=XDAQ version=%xdaq_version>
299 + <info url=http://home.cern.ch/xdaq></info>
300 + <lib name=toolbox>
301 + <lib name=xdaq>
302 + <lib name=config>
303 + <lib name=xoap>
304 + <lib name=xgi>
305 + <lib name=xdata>
306 + <lib name=cgicc>
307 + <lib name=log4cplus>
308 + <lib name=xcept>
309 + <lib name=logudpappender>
310 + <lib name=peer>
311 + <lib name=logxmlappender>
312 + <lib name=asyncresolv>
313 + <lib name=ptfifo>
314 + <lib name=pthttp>
315 + <lib name=pttcp>
316 + <lib name=i2outils>
317 + <lib name=xdaq2rc>
318 + <Client>
319 + <Environment name=XDAQ_BASE  default="/opt/xdaq"></Environment>
320 + <Environment name=LIBDIR default="$XDAQ_BASE/lib"></Environment>
321 + <Environment name=BINDIR default="$XDAQ_BASE/bin"></Environment>
322 + <Environment name=INCLUDE default="$XDAQ_BASE/include"></Environment>
323 + <Environment name=INCLUDE default="$XDAQ_BASE/include/linux"></Environment>
324 + </Client>
325 + <use name=xerces-c>
326 + <use name=sockets>
327 + <use name=mimetic>
328 + <use name=uuid>
329 + <runtime name=XDAQ_OS value="linux">
330 + <runtime name=XDAQ_PLATFORM value="x86">
331 + <runtime name=PATH value="$BINDIR" type=path>
332 + <runtime name=XDAQ_ROOT value="$XDAQ_BASE">
333 + <runtime name=XDAQ_DOCUMENT_ROOT value="$XDAQ_BASE/daq">
334 + <flags CPPDEFINES="SOAP__ LITTLE_ENDIAN__">
335 + <flags CPPDEFINES="linux">
336 + </Tool>
337 + EOF_TOOLFILE
338 +
339 + #mimetic
340 + cat << \EOF_TOOLFILE >%i/etc/scram.d/mimetic
341 + <doc type=BuildSystem::ToolDoc version=1.0>
342 + <Tool name=mimetic version=%mimetic_version>
343 + <lib name=mimetic>
344 + <Client>
345 + <Environment name=MIMETIC_BASE default="/opt/xdaq"></Environment>
346 + <Environment name=LIBDIR default="$MIMETIC_BASE/lib"></Environment>
347 + <Environment name=INCLUDE default="$MIMETIC_BASE/include"></Environment>
348 + </Client>
349 + </Tool>
350 + EOF_TOOLFILE
351 +
352 + %endif
353 +
354   %post
355   %{relocateConfig}etc/scram.d/sockets
356   %{relocateConfig}etc/scram.d/opengl
357   %{relocateConfig}etc/scram.d/x11
358   %{relocateConfig}etc/scram.d/jcompiler
359 +
360 + %if "%{?online_release:set}" == "set"
361 + %{relocateConfig}etc/scram.d/cxxcompiler
362 + %{relocateConfig}etc/scram.d/ccompiler
363 + %{relocateConfig}etc/scram.d/f77compiler
364 + %{relocateConfig}etc/scram.d/curl
365 + %{relocateConfig}etc/scram.d/zlib
366 + %{relocateConfig}etc/scram.d/oracle
367 + %{relocateConfig}etc/scram.d/openssl
368 + %{relocateConfig}etc/scram.d/xerces-c
369 + %{relocateConfig}etc/scram.d/xdaq
370 + %{relocateConfig}etc/scram.d/mimetic
371 +
372 + %endif
373 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines