ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/systemtools.spec
Revision: 1.16
Committed: Fri Jun 19 12:50:25 2009 UTC (15 years, 10 months ago) by muzaffar
Branch: MAIN
CVS Tags: DAS_20100302_slc5_amd64_gcc434, DBS_20100226_slc5_amd64_gcc434, DBS_20100217_slc5_amd64_gcc434, FILEMOVER_20100217_slc5_amd64_gcc434, DAS_20100217_slc5_amd64_gcc434, DAS_20100216b_slc5_amd64_gcc434, DAS_20100216_slc5_amd64_gcc434, dsr20100209fwlite342, CMSSW_3_4_2_patch1, for342patch1, CMSSW_3_4_2, eskFor342, DQMGUI_5_1_7, for341op1-onl-slc5, dg20100201-dbs3, FILEMOVER_20100201_slc5_amd64_gcc434, FILEMOVER_20100128b_slc5_amd64_gcc434, dg20100129-dbs3, dg20100128-dbs3, FILEMOVER_20100128_slc5_amd64_gcc434, DAS_20100127_slc5_amd64_gcc434, CMSSW_3_4_1_ONLINE, DAS_20100126_slc5_amd64_gcc434, sm100126, FILEMOVER_20100122_slc5_amd64_gcc434, DAS_20100119_slc5_amd64_gcc434, DAS_20100115_slc5_amd64_gcc434, dg20100115-security, DBS_20100115_slc5_amd64_gcc434, dg20100112-security, DBS_20100112_slc5_amd64_gcc434, sm20100112-for35X, pe20100112-for35X, DBS_20100111_slc5_amd64_gcc434, dg20100111-security, dg20100107b-wmcore, dg20100107-wmcore, dsr20100107fwlite341, sm100107a, 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, dg20091203-comp-base, CMSSW_3_3_3_onlpatch5_ONLINE, 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, CMSSW_3_3_3_onlpatch4_ONLINE, apFor335v0-sl5igcc4, pe20091126a-for33X-slc5-gcc434, CMSSW_3_3_3_onlpatch2_ONLINE, CMSSW_3_3_3_onlpatch3_ONLINE, 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, CMSSW_3_3_3_ONLINE, fw20091114b, fw20091114a, pe20091114a-for34X-slc5-gcc434, fw20091114, pe20091113c-for34X-slc5-gcc434, pe20091113c-for33X-slc5-gcc434, pe20091113b-for33X-slc5-gcc434, pe20091113a-for33X-slc5-gcc434, CMSSW_3_3_2_ONLINE-slc5, sm091112c-slc5onl, sm091112b-slc5onl, sm091112a-slc5onl, sm091112-slc5onl, CMSSW_3_3_2_onlpatch2_ONLINE, CMSSW_3_3_2_ONLINE, CMSSW_3_3_2_onlpatch1_ONLINE, ap20091107-slc5onl, BUILDBOT_01, CERNOIDv02, ap-20091103a-slc5onl-bootstrap, ap-20091103-slc5onl-bootstrap, CouchDB_0_10_0, sm091023b-slc5onl, sm091023a-slc5onl, CMSSW_3_3_0_onlpatch2_ONLINE, CMSSW_3_2_7_onlpatch6_ONLINE, for330op2, for327op6, CMSSW_3_3_0_onlpatch1_ONLINE, CMSSW_3_2_7_onlpatch5_ONLINE, CMSSW_3_2_7_onlpatch4_ONLINE, sm327op4, CERNOIDv01, WMCORE-before-refactor, CMSSW_3_3_0_ONLINE, sm091013a, sm091012c, sm091012b, sm091012a, CMSSW_3_2_7_onlpatch3_ONLINE, sm091007a, PerfSuiteDB_20090930, CMSSW_3_2_7_onlpatch2_ONLINE, sm090928a, CMSSW_3_2_7_onlpatch1_ONLINE, CMSSW_3_2_7_ONLINE, sm090923a, sm090922a, PerfSuiteDB_20090916, PerfSuiteDB_20090904_almost_stable, PerfSuiteDB_20090904, PerfSuiteDB_20090901, CMSSW_3_2_1_onlpatch6_ONLINE, sm090829a, forHEARTBEATr04, CMSSW_3_2_1_onlpatch5_ONLINE, RPMVERIFY_0_2, sm090826a, forHEARTBEATr01, CMSSW_3_2_1_onlpatch4_ONLINE, sm090818a, CMSSW_3_2_4_ONLINE, sm090813e, sm090813d, sm090813c, sm090813b, sm090813a, CMSSW_3_2_1_onlpatch3_ONLINE, sm090810a, CMSSW_3_2_1_onlpatch2_ONLINE, sm090806a, CMSSW_3_2_1_onlpatch1_ONLINE, apFor321onlp1v1, apFor321onlp1v0, CMSSW_3_2_1_ONLINE, sm090721b, sm090721a, sm090720b, sm090720a, apFor320onlv1, CMSSW_3_1_1_onlpatch3_ONLINE, sm090716a, CMSSW_3_1_1_onlpatch2_ONLINE, sm090715c, sm090715b, sm090715a, CMSSW_3_ONLINE_BOOTSTRAP, sm090709a, CMSSW_3_1_1_onlpatch1_ONLINE, sm090708g, CMSSW_3_1_1_ONLINE, sm090708f, sm090708e, sm090708d, sm090708c, sm090708b, CMSSW_3_1_0_ONLINE2, sm090708a, CMSSW_3_1_0_onlpatch1_ONLINE, sm090703a, CMSSW_3_1_0_ONLINE, sm090701b, sm090701a, CMSSW_3_1_0_pre10_ONLINE, sm090621b, sm090621a, sm090620b, sm090620a, sm090619e, sm090619d, sm090619c
Changes since 1.15: +0 -206 lines
Log Message:
more cleanup for online specific stuff. this tool is not part of online, so it should not have any thing specifif for online

File Contents

# Content
1 ### RPM external systemtools 19
2 Source: none
3
4 %if "%{?use_system_gcc:set}" == "set"
5 %define compilertools ccompiler cxxcompiler f77compiler jcompiler
6 %else
7 %define compilertools %jcompiler
8 %endif
9
10 %define systemtools sockets opengl x11 %compilertools
11 %define sockets_version 1.0
12 %define opengl_version XFree4.2
13 %define x11_version R6
14 ### why oh why is this hardwired??
15 %define jcompiler_version 1.5.0.p6-CMS18
16
17 ## INITENV SET SOCKETS_VERSION %sockets_version
18 ## INITENV SET OPENGL_VERSION %opengl_version
19 ## INITENV SET X11_VERSION %x11_version
20 ## INITENV SET JCOMPILER_VERSION %jcompiler_version
21 ## INITENV SET JCOMPILER_TOOL java-jdk
22 ## INITENV SET PKGTOOLS_SYSTEM_TOOLS %systemtools
23
24 %prep
25 %build
26 %install
27 # SCRAM ToolBox toolfile
28 mkdir -p %i/etc/scram.d
29 # Sockets
30 cat << \EOF_TOOLFILE >%i/etc/scram.d/sockets
31 <doc type=BuildSystem::ToolDoc version=1.1>
32 <Tool name=sockets version=%sockets_version>
33 EOF_TOOLFILE
34 case %cmsplatf in
35 slc3_* | slc4_* | slc4onl_* | slc5_* )
36 cat << \EOF_TOOLFILE >>%i/etc/scram.d/sockets
37 <lib name=nsl>
38 <lib name=crypt>
39 <lib name=dl>
40 EOF_TOOLFILE
41 ;;
42 osx10* )
43 cat << \EOF_TOOLFILE >>%i/etc/scram.d/sockets
44 <lib name=dl>
45 EOF_TOOLFILE
46 ;;
47 esac
48 echo "</Tool>" >>%i/etc/scram.d/sockets
49
50 # OpenGL
51 cat << \EOF_TOOLFILE >%i/etc/scram.d/opengl
52 <doc type=BuildSystem::ToolDoc version=1.1>
53 <Tool name=opengl version=%opengl_version>
54 <use name=X11>
55 <lib name=GL>
56 <lib name=GLU>
57 EOF_TOOLFILE
58 case %cmsplatf in
59 osx103* )
60 cat << \EOF_TOOLFILE >>%i/etc/scram.d/opengl
61 <Client>
62 <Environment name=OPENGL_BASE default="/System/Library/Frameworks/OpenGL.framework/Versions/A"></Environment>
63 <Environment name=INCLUDE default="$OPENGL_BASE/Headers"></Environment>
64 <Environment name=LIBDIR default="$OPENGL_BASE/Libraries"></Environment>
65 </Client>
66 EOF_TOOLFILE
67 ;;
68 esac
69 echo "</Tool>" >>%i/etc/scram.d/opengl
70
71 # X11
72 cat << \EOF_TOOLFILE >%i/etc/scram.d/x11
73 <doc type=BuildSystem::ToolDoc version=1.1>
74 <Tool name=x11 version=%x11_version>
75 EOF_TOOLFILE
76 case %cmsplatf in
77 slc3_* )
78 cat << \EOF_TOOLFILE >>%i/etc/scram.d/x11
79 <Client>
80 <Environment name=INCLUDE value="/usr/X11R6/include"></Environment>
81 <Environment name=LIBDIR value="/usr/X11R6/lib"></Environment>
82 </Client>
83 <lib name=Xt>
84 <lib name=Xpm>
85 <lib name=X11>
86 <lib name=Xi>
87 <lib name=Xext>
88 <lib name=Xmu>
89 <lib name=ICE>
90 <lib name=SM>
91 EOF_TOOLFILE
92 ;;
93 esac
94 cat << \EOF_TOOLFILE >>%i/etc/scram.d/x11
95 <use name=sockets>
96 </Tool>
97 EOF_TOOLFILE
98
99 # JCompiler
100 %define compiler_ver %(echo %jcompiler_version | sed -e "s|\\.||g")
101 cat << \EOF_TOOLFILE >>%i/etc/scram.d/jcompiler
102 <doc type=BuildSystem::ToolDoc version=1.1>
103 <Tool name=jcompiler version=%jcompiler_version type=compiler>
104 <Client>
105 <Environment name=JAVA_BASE></Environment>
106 <Environment name=JAVAC value="$JAVA_BASE/bin/javac"></Environment>
107 </Client>
108 <Runtime name=JAVA_HOME default="$JAVA_BASE">
109 <flags JAVAC_="$(JAVAC)">
110 <flags JAVAC_o="$(JAVAC) -O">
111 <flags JAVAC_d="$(JAVAC) -g">
112 <Flags SCRAM_COMPILER_NAME="jsdk%compiler_ver">
113 <Flags SCRAM_LANGUAGE_TYPE="JAVA">
114 </Tool>
115 EOF_TOOLFILE
116
117 %post
118 %{relocateConfig}etc/scram.d/sockets
119 %{relocateConfig}etc/scram.d/opengl
120 %{relocateConfig}etc/scram.d/x11
121 %{relocateConfig}etc/scram.d/jcompiler