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.17 by muzaffar, Tue Jan 12 14:18:39 2010 UTC

# Line 1 | Line 1
1 < ### RPM virtual systemtools 1.0
1 > ### RPM external systemtools 19
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 > %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-CMS8
15 > %define jcompiler_version               1.5.0.p6-CMS18
16  
17   ## INITENV SET SOCKETS_VERSION          %sockets_version
18   ## INITENV SET OPENGL_VERSION           %opengl_version
# Line 21 | Line 27 | Source: none
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>
26 < <Tool name=Sockets version=%sockets_version>
30 > cat << \EOF_TOOLFILE >%i/etc/scram.d/sockets.xml
31 >  <tool name="sockets" version="%sockets_version">
32   EOF_TOOLFILE
33   case %cmsplatf in
34 < slc3_* | slc4_* )
35 < cat << \EOF_TOOLFILE >>%i/etc/scram.d/sockets
36 < <lib name=nsl>
37 < <lib name=crypt>
38 < <lib name=dl>
34 > slc3_* | slc4_* | slc4onl_* | slc5_* )
35 > cat << \EOF_TOOLFILE >>%i/etc/scram.d/sockets.xml
36 >    <lib name="nsl"/>
37 >    <lib name="crypt"/>
38 >    <lib name="dl"/>
39   EOF_TOOLFILE
40   ;;
41   osx10* )
42 < cat << \EOF_TOOLFILE >>%i/etc/scram.d/sockets
43 < <lib name=dl>
42 > cat << \EOF_TOOLFILE >>%i/etc/scram.d/sockets.xml
43 >    <lib name="dl"/>
44   EOF_TOOLFILE
45   ;;
46   esac
47 < echo "</Tool>" >>%i/etc/scram.d/sockets
47 > echo "  </tool>" >>%i/etc/scram.d/sockets.xml
48  
49   # OpenGL
50 < cat << \EOF_TOOLFILE >%i/etc/scram.d/opengl
51 < <doc type=BuildSystem::ToolDoc version=1.1>
52 < <Tool name=OpenGL version=%opengl_version>
53 < <use name=X11>
54 < <lib name=GL>
50 < <lib name=GLU>
50 > cat << \EOF_TOOLFILE >%i/etc/scram.d/opengl.xml
51 >  <tool name="opengl" version="%opengl_version">
52 >    <lib name="GL"/>
53 >    <lib name="GLU"/>
54 >    <use name="x11"/>
55   EOF_TOOLFILE
56   case %cmsplatf in
57   osx103* )
58 < cat << \EOF_TOOLFILE >>%i/etc/scram.d/opengl
59 < <Client>
60 < <Environment name=OPENGL_BASE default="/System/Library/Frameworks/OpenGL.framework/Versions/A"></Environment>
61 < <Environment name=INCLUDE default="$OPENGL_BASE/Headers"></Environment>
62 < <Environment name=LIBDIR default="$OPENGL_BASE/Libraries"></Environment>
63 < </Client>
58 > cat << \EOF_TOOLFILE >>%i/etc/scram.d/opengl.xml
59 >    <client>
60 >      <environment name="OPENGL_BASE" default="/System/Library/Frameworks/OpenGL.framework/Versions/A"/>
61 >      <environment name="INCLUDE"     default="$OPENGL_BASE/Headers"/>
62 >      <environment name="LIBDIR"      default="$OPENGL_BASE/Libraries"/>
63 >    </client>
64   EOF_TOOLFILE
65   ;;
66   esac
67 < echo "</Tool>" >>%i/etc/scram.d/opengl
67 > echo "  </tool>" >>%i/etc/scram.d/opengl.xml
68  
69   # X11
70 < cat << \EOF_TOOLFILE >%i/etc/scram.d/x11
71 < <doc type=BuildSystem::ToolDoc version=1.1>
68 < <Tool name=X11 version=%x11_version>
70 > cat << \EOF_TOOLFILE >%i/etc/scram.d/x11.xml
71 >  <tool name="x11" version="%x11_version">
72   EOF_TOOLFILE
73   case %cmsplatf in
74   slc3_* )
75 < cat << \EOF_TOOLFILE >>%i/etc/scram.d/x11
76 < <Client>
77 < <Environment name=INCLUDE value="/usr/X11R6/include"></Environment>
78 < <Environment name=LIBDIR value="/usr/X11R6/lib"></Environment>
79 < </Client>
80 < <lib name=Xt>
81 < <lib name=Xpm>
82 < <lib name=X11>
83 < <lib name=Xi>
84 < <lib name=Xext>
85 < <lib name=Xmu>
86 < <lib name=ICE>
87 < <lib name=SM>
75 > cat << \EOF_TOOLFILE >>%i/etc/scram.d/x11.xml
76 >    <client>
77 >      <environment name="INCLUDE" value="/usr/X11R6/include"/>
78 >      <environment name="LIBDIR" value="/usr/X11R6/lib"/>
79 >    </client>
80 >    <lib name="Xt"/>
81 >    <lib name="Xpm"/>
82 >    <lib name="X11"/>
83 >    <lib name="Xi"/>
84 >    <lib name="Xext"/>
85 >    <lib name="Xmu"/>
86 >    <lib name="ICE"/>
87 >    <lib name="SM"/>
88   EOF_TOOLFILE
89   ;;
90   esac
91 < cat << \EOF_TOOLFILE >>%i/etc/scram.d/x11
92 < <use name=sockets>
93 < </Tool>
91 > cat << \EOF_TOOLFILE >>%i/etc/scram.d/x11.xml
92 >    <use name="sockets"/>
93 >  </tool>
94   EOF_TOOLFILE
95  
96   # JCompiler
97   %define compiler_ver        %(echo %jcompiler_version | sed -e "s|\\.||g")
98 < cat << \EOF_TOOLFILE >>%i/etc/scram.d/jcompiler
99 < <doc type=BuildSystem::ToolDoc version=1.1>
100 < <Tool name=jcompiler version=%jcompiler_version type=compiler>
101 < <Client>
102 < <Environment name=JAVA_BASE></Environment>
103 < <Environment name=JAVAC value="$JAVA_BASE/bin/javac"></Environment>
104 < </Client>
105 < <Runtime name=JAVA_HOME default="$JAVA_BASE">
106 < <flags JAVAC_="$(JAVAC)">
107 < <flags JAVAC_o="$(JAVAC) -O">
108 < <flags JAVAC_d="$(JAVAC) -g">
109 < <Flags SCRAM_COMPILER_NAME="jsdk%compiler_ver">
110 < <Flags SCRAM_LANGUAGE_TYPE="JAVA">
108 < </Tool>
98 > cat << \EOF_TOOLFILE >>%i/etc/scram.d/jcompiler.xml
99 >  <tool name="jcompiler" version="%jcompiler_version" type="compiler">
100 >    <client>
101 >      <environment name="JAVA_BASE"/>
102 >      <environment name="JAVAC" value="$JAVA_BASE/bin/javac"/>
103 >    </client>
104 >    <flags javac_="$(JAVAC)"/>
105 >    <flags javac_o="$(JAVAC) -O"/>
106 >    <flags javac_d="$(JAVAC) -g"/>
107 >    <flags scram_compiler_name="jsdk%compiler_ver"/>
108 >    <flags scram_language_type="JAVA"/>
109 >    <runtime name="JAVA_HOME" default="$JAVA_BASE"/>
110 >  </tool>
111   EOF_TOOLFILE
112  
113   %post
114 < %{relocateConfig}etc/scram.d/sockets
115 < %{relocateConfig}etc/scram.d/opengl
116 < %{relocateConfig}etc/scram.d/x11
117 < %{relocateConfig}etc/scram.d/jcompiler
114 > %{relocateConfig}etc/scram.d/sockets.xml
115 > %{relocateConfig}etc/scram.d/opengl.xml
116 > %{relocateConfig}etc/scram.d/x11.xml
117 > %{relocateConfig}etc/scram.d/jcompiler.xml

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines