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

Comparing COMP/CMSDIST/onlinesystemtools.spec (file contents):
Revision 1.14 by muzaffar, Thu Feb 25 10:48:32 2010 UTC vs.
Revision 1.19 by fwyzard, Wed Jan 19 10:15:43 2011 UTC

# Line 1 | Line 1
1 < ### RPM external onlinesystemtools 2.2
1 > ### RPM external onlinesystemtools 2.3
2 > ## NOCOMPILER
3   Source: none
4 + Requires: oracle-env
5  
6 < # Here we are assuming that online release always uses system compiler:
5 < %define compilertools jcompiler
6 <
6 > %define compilertools %{nil}
7   %define onlinetools zlib curl openssl xerces-c xdaq xdaqheader mimetic oracle oracleocci
8   # 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 xdaq_root                       /opt/xdaq
12 < %define curl_version                    7.12.1
13 < ## INITENV SET CURL_VERSION             %curl_version
14 < %define zlib_version                    1.2.1.2
15 < ## INITENV SET ZLIB_VERSION             %zlib_version
16 < %define oracle_version                  10.2.1
17 < ## INITENV SET ORACLE_VERSION           %oracle_version
18 < ## INITENV SET ORACLE_ROOT              %xdaq_root
19 < %define openssl_version                 0.9.7e
20 < ## INITENV SET OPENSSL_VERSION          %openssl_version
21 < %define xerces_version                  2.7.0
22 < ## INITENV SET XERCES_C_VERSION         %xerces_version
23 < ## INITENV SET XERCES_C_ROOT            %xdaq_root
24 < %define xdaq_version                    3.32.1
25 < ## INITENV SET XDAQ_VERSION             %xdaq_version
26 < ## INITENV SET XDAQ_ROOT                %xdaq_root
12 > %define curl_version                    7.15.5
13 > ## INITENV SETV CURL_VERSION             %curl_version
14 > %define zlib_version                    1.2.3
15 > ## INITENV SETV ZLIB_VERSION             %zlib_version
16 > %define oracle_version                  11.2.2
17 > ## INITENV SETV ORACLE_VERSION           %oracle_version
18 > ## INITENV SETV ORACLE_ROOT             %xdaq_root
19 > %define openssl_version                 0.9.8e
20 > ## INITENV SETV OPENSSL_VERSION          %openssl_version
21 > %define xerces_version                  2.8.0
22 > ## INITENV SETV XERCES_C_VERSION         %xerces_version
23 > ## INITENV SETV XERCES_C_ROOT           %xdaq_root
24 > %define xdaq_version                    3.33.1
25 > ## INITENV SETV XDAQ_VERSION            %xdaq_version
26 > ## INITENV SETV XDAQ_ROOT               %xdaq_root
27   %define mimetic_version                 0.9.1
28 < ## INITENV SET MIMETIC_VERSION          %mimetic_version
28 > ## INITENV SETV MIMETIC_VERSION                 %mimetic_version
29  
30   %define systemtools                     sockets opengl x11 %compilertools %onlinetools
31   %define sockets_version                 1.0
32   %define opengl_version                  XFree4.2
33   %define x11_version                     R6
34 ### why oh why is this hardwired??
35 %define jcompiler_version               1.5.0.p6-CMS8
34  
35 < ## INITENV SET SOCKETS_VERSION          %sockets_version
36 < ## INITENV SET OPENGL_VERSION           %opengl_version
37 < ## INITENV SET X11_VERSION              %x11_version
38 < ## INITENV SET JCOMPILER_VERSION        %jcompiler_version
41 < ## INITENV SET JCOMPILER_TOOL           java-jdk
42 < ## INITENV SET PKGTOOLS_SYSTEM_TOOLS    %systemtools
35 > ## INITENV SETV SOCKETS_VERSION         %sockets_version
36 > ## INITENV SETV OPENGL_VERSION          %opengl_version
37 > ## INITENV SETV X11_VERSION             %x11_version
38 > ## INITENV SETV PKGTOOLS_SYSTEM_TOOLS   %systemtools
39  
40   %prep
41   %build
# Line 56 | Line 52 | cat << \EOF_TOOLFILE >>%i/etc/scram.d/so
52      <lib name="nsl"/>
53      <lib name="crypt"/>
54      <lib name="dl"/>
55 +    <lib name="rt"/>
56   EOF_TOOLFILE
57   ;;
58   osx10* )
# Line 72 | Line 69 | cat << \EOF_TOOLFILE >%i/etc/scram.d/ope
69      <lib name="GL"/>
70      <lib name="GLU"/>
71      <use name="x11"/>
72 +    <environment name="ORACLE_ADMINDIR" default="@ORACLE_ENV_ROOT@/etc"/>
73   EOF_TOOLFILE
74   case %cmsplatf in
75 < osx103* )
75 > osx* )
76   cat << \EOF_TOOLFILE >>%i/etc/scram.d/opengl.xml
77      <client>
78        <environment name="OPENGL_BASE" default="/System/Library/Frameworks/OpenGL.framework/Versions/A"/>
# Line 91 | Line 89 | cat << \EOF_TOOLFILE >%i/etc/scram.d/x11
89    <tool name="x11" version="%x11_version">
90   EOF_TOOLFILE
91   case %cmsplatf in
92 < slc3_* )
92 > slc3_*|osx* )
93   cat << \EOF_TOOLFILE >>%i/etc/scram.d/x11.xml
94      <client>
95        <environment name="INCLUDE" value="/usr/X11R6/include"/>
# Line 113 | Line 111 | cat << \EOF_TOOLFILE >>%i/etc/scram.d/x1
111    </tool>
112   EOF_TOOLFILE
113  
116 # JCompiler
117 %define compiler_ver        %(echo %jcompiler_version | sed -e "s|\\.||g")
118 cat << \EOF_TOOLFILE >>%i/etc/scram.d/jcompiler.xml
119  <tool name="jcompiler" version="%jcompiler_version" type="compiler">
120    <client>
121      <environment name="JAVA_BASE"/>
122      <environment name="JAVAC" value="$JAVA_BASE/bin/javac"/>
123    </client>
124    <flags javac_="$(JAVAC)"/>
125    <flags javac_o="$(JAVAC) -O"/>
126    <flags javac_d="$(JAVAC) -g"/>
127    <flags scram_compiler_name="jsdk%compiler_ver"/>
128    <flags scram_language_type="JAVA"/>
129    <runtime name="JAVA_HOME" default="$JAVA_BASE"/>
130  </tool>
131 EOF_TOOLFILE
132
114   # curl
115   cat << \EOF_TOOLFILE >%i/etc/scram.d/curl.xml
116    <tool name="Curl" version="%curl_version">
# Line 152 | Line 133 | cat << \EOF_TOOLFILE >%i/etc/scram.d/zli
133    </tool>
134   EOF_TOOLFILE
135  
155
136   #openssl
137   cat << \EOF_TOOLFILE >%i/etc/scram.d/openssl.xml
138    <tool name="openssl" version="%openssl_version">
# Line 250 | Line 230 | cat << \EOF_TOOLFILE >%i/etc/scram.d/ora
230      <lib name="nnz11"/>
231      <client>
232        <environment name="ORACLE_BASE" default="%xdaq_root"/>
233 <      <environment name="ORACLE_ADMINDIR" default="."/>
233 >      <environment name="ORACLE_ADMINDIR" default="@ORACLE_ENV_ROOT@/etc"/>
234        <environment name="LIBDIR" value="$ORACLE_BASE/lib"/>
235        <environment name="BINDIR" value="$ORACLE_BASE/bin"/>
236        <environment name="INCLUDE" value="$ORACLE_BASE/include"/>
# Line 268 | Line 248 | cat << \EOF_TOOLFILE >%i/etc/scram.d/ora
248    </tool>
249   EOF_TOOLFILE
250  
251 + export ORACLE_ENV_ROOT
252 + perl -p -i -e 's|\@([^@]*)\@|$ENV{$1}|g' %i/etc/scram.d/*.xml
253 +
254   %post
255 < cd $RPM_INSTALL_PREFIX/%pkgrel
273 < perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
255 > %{relocateConfig}etc/scram.d/*.xml

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines