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

Comparing COMP/CMSDIST/oracle-toolfile.spec (file contents):
Revision 1.1 by muzaffar, Tue Aug 10 14:20:17 2010 UTC vs.
Revision 1.3 by muzaffar, Thu Sep 23 08:21:35 2010 UTC

# Line 1 | Line 1
1   ### RPM external oracle-toolfile 1.0
2   Requires: oracle
3 + Requires: oracle-env
4   %prep
5  
6   %build
# Line 11 | Line 12 | mkdir -p %i/etc/scram.d
12   cat << \EOF_TOOLFILE >%i/etc/scram.d/oracle.xml
13   <tool name="oracle" version="@TOOL_VERSION@">
14    <lib name="clntsh"/>
15 <  <lib name="nnz11"/>
15 >  @OS_LIBS@
16    <client>
17      <environment name="ORACLE_BASE" default="@TOOL_ROOT@"/>
18 <    <environment name="ORACLE_ADMINDIR"/>
18 >    <environment name="ORACLE_ADMINDIR" value="@ORACLE_ENV_ROOT@/etc"/>
19      <environment name="LIBDIR" value="$ORACLE_BASE/lib"/>
20      <environment name="BINDIR" value="$ORACLE_BASE/bin"/>
21      <environment name="INCLUDE" value="$ORACLE_BASE/include"/>
# Line 32 | Line 33 | cat << \EOF_TOOLFILE >%i/etc/scram.d/ora
33   </tool>
34   EOF_TOOLFILE
35  
36 + case $ORACLE_VERSION in
37 +   11.* )
38 +        export OS_LIBS="<lib name='nnz11'/>"
39 +   ;;
40 + esac
41 +
42 + export ORACLE_ENV_ROOT
43   ## IMPORT scram-tools-post

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines