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.10 by muzaffar, Wed Jan 27 09:16:07 2010 UTC vs.
Revision 1.14 by muzaffar, Thu Feb 25 10:48:32 2010 UTC

# Line 4 | Line 4 | Source: none
4   # Here we are assuming that online release always uses system compiler:
5   %define compilertools jcompiler
6  
7 < %define onlinetools zlib curl openssl xerces-c xdaq xdaqheader mimetic
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            /opt/xdaq
24 < %define xdaq_version                    3.28.0
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                /opt/xdaq
26 > ## INITENV SET XDAQ_ROOT                %xdaq_root
27   %define mimetic_version                 0.9.1
28   ## INITENV SET MIMETIC_VERSION          %mimetic_version
29  
# Line 47 | Line 51 | cat << \EOF_TOOLFILE >%i/etc/scram.d/soc
51    <tool name="sockets" version="%sockets_version">
52   EOF_TOOLFILE
53   case %cmsplatf in
54 < slc3_* | slc4_* | slc4onl_* | slc5_* )
54 > slc3_* | slc4_* | slc5_* | slc4onl_*| slc5onl_* )
55   cat << \EOF_TOOLFILE >>%i/etc/scram.d/sockets.xml
56      <lib name="nsl"/>
57      <lib name="crypt"/>
# Line 167 | Line 171 | cat << \EOF_TOOLFILE >%i/etc/scram.d/xer
171      <info url="http://xml.apache.org/xerces-c/"/>
172      <lib name="xerces-c"/>
173      <client>
174 <      <environment name="XERCES_C_BASE" default="/opt/xdaq"/>
174 >      <environment name="XERCES_C_BASE" default="%xdaq_root"/>
175        <environment name="INCLUDE" default="$XERCES_C_BASE/include"/>
176        <environment name="LIBDIR" default="$XERCES_C_BASE/lib"/>
177      </client>
# Line 197 | Line 201 | cat << \EOF_TOOLFILE >%i/etc/scram.d/xda
201      <lib name="i2outils"/>
202      <lib name="xdaq2rc"/>
203      <client>
204 <      <environment name="XDAQ_BASE" default="/opt/xdaq"/>
204 >      <environment name="XDAQ_BASE" default="%xdaq_root"/>
205        <environment name="LIBDIR" default="$XDAQ_BASE/lib"/>
206        <environment name="BINDIR" default="$XDAQ_BASE/bin"/>
207        <environment name="INCLUDE" default="$XDAQ_BASE/include"/>
# Line 222 | Line 226 | cat << \EOF_TOOLFILE >%i/etc/scram.d/xda
226    <tool name="XDAQHEADER" version="%xdaq_version">
227      <info url="http://home.cern.ch/xdaq"/>
228      <client>
229 <      <environment name="XDAQHEADER_BASE" default="/opt/xdaq"/>
229 >      <environment name="XDAQHEADER_BASE" default="%xdaq_root"/>
230        <environment name="INCLUDE" default="$XDAQHEADER_BASE/include"/>
231      </client>
232    </tool>
# Line 233 | Line 237 | cat << \EOF_TOOLFILE >%i/etc/scram.d/mim
237    <tool name="mimetic" version="%mimetic_version">
238      <lib name="mimetic"/>
239      <client>
240 <      <environment name="MIMETIC_BASE" default="/opt/xdaq"/>
240 >      <environment name="MIMETIC_BASE" default="%xdaq_root"/>
241        <environment name="LIBDIR" default="$MIMETIC_BASE/lib"/>
242        <environment name="INCLUDE" default="$MIMETIC_BASE/include"/>
243      </client>
244    </tool>
245   EOF_TOOLFILE
246  
247 + cat << \EOF_TOOLFILE >%i/etc/scram.d/oracle.xml
248 +  <tool name="oracle" version="%oracle_version">
249 +    <lib name="clntsh"/>
250 +    <lib name="nnz11"/>
251 +    <client>
252 +      <environment name="ORACLE_BASE" default="%xdaq_root"/>
253 +      <environment name="ORACLE_ADMINDIR" default="."/>
254 +      <environment name="LIBDIR" value="$ORACLE_BASE/lib"/>
255 +      <environment name="BINDIR" value="$ORACLE_BASE/bin"/>
256 +      <environment name="INCLUDE" value="$ORACLE_BASE/include"/>
257 +    </client>
258 +    <runtime name="PATH" value="$BINDIR" type="path"/>
259 +    <runtime name="TNS_ADMIN" default="$ORACLE_ADMINDIR"/>
260 +    <use name="sockets"/>
261 +  </tool>
262 + EOF_TOOLFILE
263 +
264 + cat << \EOF_TOOLFILE >%i/etc/scram.d/oracleocci.xml
265 +  <tool name="oracleocci" version="%oracle_version">
266 +    <lib name="occi"/>
267 +    <use name="oracle"/>
268 +  </tool>
269 + EOF_TOOLFILE
270 +
271   %post
272   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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines