ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/systemtools.spec
Revision: 1.4
Committed: Sun Sep 9 13:35:21 2007 UTC (17 years, 7 months ago) by dlange
Branch: MAIN
CVS Tags: CMSSW_1_7_7, dl080227for176, CMSSW_1_7_5, CMSSW_1_7_5_g491, dl080111, ge20080109-webconddb, ge20080109-sitedb, CMSSW_1_7_4, CMSSW_1_7_3_g490p1, dl071212t2, dl071212, CMSSW_1_7_3, CMSSW_1_7_2, CMSSW_1_7_1, nr071120_fwlite170_1, CMSSW_1_7_0, CMSSW_1_7_0_pre13, dl071114, ap20071113, CMSSW_1_7_0_pre12, CMSSW_1_7_0_pre11, pe20071103a-ports, pe20071102b-ports, pe20071102a-ports, CMSSW_1_7_0_pre10, CMSSW_1_7_0_pre9, CMSSW_1_7_0_pre8, CMSSW_1_7_0_pre7, dl071028, dl071024, nr071023_fwlite170p6, pe20071023-170p6-amd64, pe20071021-170p6-zlib, dl071021t2, dl071021, pe20071021a-ports, dl071020, CMSSW_1_7_0_pre6, pe20071015-xrootd, pe20071014-ports, dl071014, dl071010t2, dl071010, dl071009t2, dl071009, CMSSW_1_7_0_pre5, dl070926t2, dl070926, ap-20070926, CMSSW_1_7_0_pre4, dl070921t2, dl070921, dl070920, CMSSW_1_7_0_pre3, dl070916, dl070912, dl070812, sm070912b, sm070912a, sm070911a, dl070909p3
Changes since 1.3: +1 -1 lines
Log Message:
try moving systemtools to external to make progress...

File Contents

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