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

Comparing COMP/CMSDIST/oracle.spec (file contents):
Revision 1.29 by elmer, Fri Nov 2 20:11:55 2007 UTC vs.
Revision 1.45 by eulisse, Tue Sep 29 13:11:11 2009 UTC

# Line 1 | Line 1
1 < ### RPM external oracle 10.2.0.3-CMS18
1 > ### RPM external oracle 11.2.0.1.0
2   ## INITENV SET ORACLE_HOME %i
3 < ## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;;  Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac
4 <
5 < Source0: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-basic-linux32-10.2.0.3-20061115.zip
6 < Source1: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-linux32-10.2.0.3-20061115.zip
7 < Source2: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sqlplus-linux32-10.2.0.3-20061115.zip
8 <
9 < Source3: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-basic-linux-x86-64-10.2.0.3-20070103.zip
10 < Source4: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-linux-x86-64-10.2.0.3-20070103.zip
11 < Source5: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sqlplus-linux-x86-64-10.2.0.3-20070103.zip
12 <
13 < # Not accessible with a user/pass and not in suncms cache
14 < #Source6: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-basic-macosx-10.1.0.3.zip
15 < #Source7: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-macosx-10.1.0.3.zip
16 < #Source8: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sqlplus-macosx-10.1.0.3.zip
3 > ## NOCOMPILER
4 > ## BUILDIF case `uname`:`uname -p` in Linux:i*86 ) true ;; Linux:x86_64 ) true ;;  Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac
5  
6 + Source0: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/basic.zip?arch=%cmsos&version=%realversion
7 + Source1: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/sdk.zip?arch=%cmsos&version=%realversion
8 + Source2: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/sqlplus.zip?arch=%cmsos&version=%realversion
9   Source9: oracle-license
10   Source10: http://www.oracle.com/technology/tech/oci/occi/downloads/occi_gcc343_102020.tar.gz
11  
12   ## INITENV +PATH SQLPATH %i/bin
13   %prep
14   rm -rf instantclient_*
15 < case %cmsos in
16 <  slc3_ia32 )
17 <    yes | unzip %_sourcedir/*-basic-*linux32*.zip
18 <    yes | unzip %_sourcedir/*-sdk-*linux32*.zip
19 <    yes | unzip %_sourcedir/*-sqlplus-*linux32*.zip
20 <    ;;
21 <  slc4_ia32 )
22 <    yes | unzip %_sourcedir/*-basic-*linux32*.zip
23 <    yes | unzip %_sourcedir/*-sdk-*linux32*.zip
33 <    yes | unzip %_sourcedir/*-sqlplus-*linux32*.zip
34 <    tar xzvf %_sourcedir/occi_gcc343_102020.tar.gz
35 <    ;;
36 <  slc*_amd64 )
37 <    yes | unzip %_sourcedir/*-basic-*linux-x86-64*.zip
38 <    yes | unzip %_sourcedir/*-sdk-*linux-x86-64*.zip
39 <    yes | unzip %_sourcedir/*-sqlplus-*linux-x86-64*.zip
15 > rm -rf libocci.so.10.1 libocci10.a
16 >
17 > unzip -o -u "%_sourcedir/basic.zip?arch=%cmsos&version=%realversion"
18 > unzip -o -u "%_sourcedir/sdk.zip?arch=%cmsos&version=%realversion"
19 > unzip -o -u "%_sourcedir/sqlplus.zip?arch=%cmsos&version=%realversion"
20 > %if "%{realversion}" == "10.2.0.3"
21 > case %cmsos in
22 >    slc4_ia32 )
23 >        tar xzvf %_sourcedir/occi_gcc343_102020.tar.gz
24      ;;
41  osx* )
42    #yes | unzip %_sourcedir/*-basic-*macosx*.zip
43    #yes | unzip %_sourcedir/*-sdk-*macosx*.zip
44    #yes | unzip %_sourcedir/*-sqlplus-*macosx*.zip
45    ;;  
25   esac
26 + %endif
27  
28   %build
29   %install
# Line 57 | Line 37 | cp -p instantclient*/sdk/demo/* %i/demo
37   cp -p instantclient*/sdk/include/* %i/include
38   %if "%cmsplatf" == "slc4_ia32_gcc345"
39   echo Copying libocci libraries for slc4_ia32_gcc345
40 < mv libocci.so.10.1 %i/lib
41 < mv libocci10.a %i/lib
40 > [ -f libocci.so.10.1 ] && mv libocci.so.10.1 %i/lib
41 > [ -f libocci10.a ] && mv libocci10.a %i/lib
42   %endif
43   (cd %i/lib && ln -s libclntsh.* $(echo libclntsh.* | sed 's/[0-9.]*$//'))
44   (cd %i/lib && ln -s libocci.* $(echo libocci.* | sed 's/[0-9.]*$//'))
# Line 88 | Line 68 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
68   <Runtime name=TNS_ADMIN default="$ORACLE_ADMINDIR">
69   </Tool>
70   EOF_TOOLFILE
91
71   %post
72   %{relocateConfig}etc/scram.d/%n
94

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines