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.8 by eulisse, Wed May 10 07:47:54 2006 UTC vs.
Revision 1.20 by ratnik, Wed Apr 18 23:46:02 2007 UTC

# Line 1 | Line 1
1 < ### RPM external oracle 10.2.0.1
1 > ### RPM external oracle 10.2.0.2
2 > Requires: gcc-wrapper
3   ## INITENV SET ORACLE_HOME %i
4 < ## INITENV +PATH SQLPATH %i/bin
5 < Source0: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-basic-linux32-10.2.0.1-20050713.zip
6 < Source1: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-linux32-10.2.0.1-20050713.zip
7 < Source2: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sqlplus-linux32-10.2.0.1-20050713.zip
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://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-basic-linux32-10.2.0.2-20060331.zip
7 > Source1: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-linux32-10.2.0.2-20060331.zip
8 > Source2: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sqlplus-linux32-10.2.0.2-20060331.zip
9 >
10 > Source3: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-basic-linux-x86-64-10.2.0.2-20060228.zip
11 > Source4: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-linux-x86-64-10.2.0.2-20060228.zip
12 > Source5: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sqlplus-linux-x86-64-10.2.0.2-20060228.zip
13 >
14 > # Not accessible with a user/pass and not in suncms cache
15 > #Source6: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-basic-macosx-10.1.0.3.zip
16 > #Source7: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-macosx-10.1.0.3.zip
17 > #Source8: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sqlplus-macosx-10.1.0.3.zip
18  
19 + Source9: oracle-license
20 + Source10: http://www.oracle.com/technology/tech/oci/occi/downloads/occi_gcc343_102020.tar.gz
21 +
22 + ## INITENV +PATH SQLPATH %i/bin
23   %prep
24 < rm -rf instantclient_$(echo %v | cut -f1,2 -d. | tr . _)
25 < yes | unzip %_sourcedir/instantclient-basic*.zip
26 < yes | unzip %_sourcedir/instantclient-sdk*.zip
27 < yes | unzip %_sourcedir/instantclient-sqlplus*.zip
24 > rm -rf instantclient_*
25 > case %cmsos in
26 >  slc3_ia32 )
27 >    yes | unzip %_sourcedir/*-basic-*linux32*.zip
28 >    yes | unzip %_sourcedir/*-sdk-*linux32*.zip
29 >    yes | unzip %_sourcedir/*-sqlplus-*linux32*.zip
30 >    ;;
31 >  slc4_ia32 )
32 >    yes | unzip %_sourcedir/*-basic-*linux32*.zip
33 >    yes | unzip %_sourcedir/*-sdk-*linux32*.zip
34 >    yes | unzip %_sourcedir/*-sqlplus-*linux32*.zip
35 >    tar xzvf %_sourcedir/occi_gcc343_102020.tar.gz
36 >    ;;
37 >  slc*_amd64 )
38 >    yes | unzip %_sourcedir/*-basic-*linux-x86-64*.zip
39 >    yes | unzip %_sourcedir/*-sdk-*linux-x86-64*.zip
40 >    yes | unzip %_sourcedir/*-sqlplus-*linux-x86-64*.zip
41 >    ;;
42 >  osx* )
43 >    #yes | unzip %_sourcedir/*-basic-*macosx*.zip
44 >    #yes | unzip %_sourcedir/*-sdk-*macosx*.zip
45 >    #yes | unzip %_sourcedir/*-sqlplus-*macosx*.zip
46 >    ;;  
47 > esac
48 >
49   %build
50 + ## IMPORT gcc-wrapper
51   %install
52   mkdir -p %i/bin %i/etc %i/lib %i/admin %i/java %i/demo %i/include
53 + cp %_sourcedir/oracle-license %{i}/oracle-license
54   cp -p instantclient*/lib* %i/lib
55   cp -p instantclient*/sqlplus %i/bin
56   cp -p instantclient*/glogin.sql %i/bin
57   cp -p instantclient*/*.jar %i/java
58   cp -p instantclient*/sdk/demo/* %i/demo
59   cp -p instantclient*/sdk/include/* %i/include
60 + %if "%cmsplatf" == "slc4_ia32_gcc345"
61 + echo Copying libocci libraries for slc4_ia32_gcc345
62 + mv libocci.so.10.1 %i/lib
63 + mv libocci10.a %i/lib
64 + %endif
65   (cd %i/lib && ln -s libclntsh.* $(echo libclntsh.* | sed 's/[0-9.]*$//'))
66 + (cd %i/lib && ln -s libocci.* $(echo libocci.* | sed 's/[0-9.]*$//'))
67 + chmod -R g-w %i

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines