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.9 by eulisse, Tue May 16 10:15:45 2006 UTC vs.
Revision 1.29 by elmer, Fri Nov 2 20:11:55 2007 UTC

# Line 1 | Line 1
1 < ### RPM external oracle 10.2.0.1
1 > ### RPM external oracle 10.2.0.3-CMS18
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 < %define pkg0name_slc3_ia32_gcc323 instantclient-basic-linux32-10.2.0.1-20050713.zip
6 < %define pkg1name_slc3_ia32_gcc323 instantclient-sdk-linux32-10.2.0.1-20050713.zip
7 < %define pkg2name_slc3_ia32_gcc323 instantclient-sqlplus-linux32-10.2.0.1-20050713.zip
8 < Source0: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/%{pkg0name_slc3_ia32_gcc323}
9 < Source1: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/%{pkg1name_slc3_ia32_gcc323}
10 < Source2: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/%{pkg2name_slc3_ia32_gcc323}
11 <
12 < %define pkg0name_slc3_amd64_gcc345 instantclient-basic-linux-x86-64-10.2.0.2-20060228.zip
13 < %define pkg1name_slc3_amd64_gcc345 instantclient-sdk-linux-x86-64-10.2.0.2-20060228.zip
14 < %define pkg2name_slc3_amd64_gcc345 instantclient-sqlplus-linux-x86-64-10.2.0.2-20060228.zip
15 <
16 < Source3: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/%{pkg0name_slc3_amd64_gcc345}
17 < Source4: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/%{pkg1name_slc3_amd64_gcc345}
18 < Source5: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/%{pkg2name_slc3_amd64_gcc345}
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
17 >
18 > Source9: oracle-license
19 > Source10: http://www.oracle.com/technology/tech/oci/occi/downloads/occi_gcc343_102020.tar.gz
20  
21   ## INITENV +PATH SQLPATH %i/bin
22   %prep
23 < rm -rf instantclient_$(echo %v | cut -f1,2 -d. | tr . _)
24 < %define tmpPlatf %(echo %cmsplatf|cut -d_ -f1,2)
25 < if [ "%tmpPlatf" == "slc3_ia32" ]
26 < then
27 < yes | unzip %_sourcedir/%{pkg0name_slc3_ia32_gcc323}
28 < yes | unzip %_sourcedir/%{pkg1name_slc3_ia32_gcc323}
29 < yes | unzip %_sourcedir/%{pkg2name_slc3_ia32_gcc323}
30 < elif [ "%tmpPlatf" == "slc3_amd64" ]
31 < then
32 < yes | unzip %_sourcedir/%{pkg0name_slc3_amd64_gcc345}
33 < yes | unzip %_sourcedir/%{pkg1name_slc3_amd64_gcc345}
34 < yes | unzip %_sourcedir/%{pkg2name_slc3_amd64_gcc345}
35 < fi
23 > rm -rf instantclient_*
24 > case %cmsos in
25 >  slc3_ia32 )
26 >    yes | unzip %_sourcedir/*-basic-*linux32*.zip
27 >    yes | unzip %_sourcedir/*-sdk-*linux32*.zip
28 >    yes | unzip %_sourcedir/*-sqlplus-*linux32*.zip
29 >    ;;
30 >  slc4_ia32 )
31 >    yes | unzip %_sourcedir/*-basic-*linux32*.zip
32 >    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
40 >    ;;
41 >  osx* )
42 >    #yes | unzip %_sourcedir/*-basic-*macosx*.zip
43 >    #yes | unzip %_sourcedir/*-sdk-*macosx*.zip
44 >    #yes | unzip %_sourcedir/*-sqlplus-*macosx*.zip
45 >    ;;  
46 > esac
47  
48   %build
49   %install
50   mkdir -p %i/bin %i/etc %i/lib %i/admin %i/java %i/demo %i/include
51 + cp %_sourcedir/oracle-license %{i}/oracle-license
52   cp -p instantclient*/lib* %i/lib
53   cp -p instantclient*/sqlplus %i/bin
54   cp -p instantclient*/glogin.sql %i/bin
55   cp -p instantclient*/*.jar %i/java
56   cp -p instantclient*/sdk/demo/* %i/demo
57   cp -p instantclient*/sdk/include/* %i/include
58 + %if "%cmsplatf" == "slc4_ia32_gcc345"
59 + echo Copying libocci libraries for slc4_ia32_gcc345
60 + mv libocci.so.10.1 %i/lib
61 + mv libocci10.a %i/lib
62 + %endif
63   (cd %i/lib && ln -s libclntsh.* $(echo libclntsh.* | sed 's/[0-9.]*$//'))
64 + (cd %i/lib && ln -s libocci.* $(echo libocci.* | sed 's/[0-9.]*$//'))
65 + chmod -R g-w %i
66 +
67 + # SCRAM ToolBox toolfile
68 + mkdir -p %i/etc/scram.d
69 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
70 + <doc type=BuildSystem::ToolDoc version=1.0>
71 + <Tool name=%n version=%v>
72 + <lib name=clntsh>
73 + <lib name=occi>
74 + <lib name=nnz10>
75 + <Client>
76 + <Environment name=ORACLE_BASE default="%i"></Environment>
77 + <Environment name=ORACLE_ADMINDIR></Environment>
78 + <Environment name=LIBDIR value="$ORACLE_BASE/lib"></Environment>
79 + <Environment name=BINDIR value="$ORACLE_BASE/bin"></Environment>
80 + <Environment name=INCLUDE value="$ORACLE_BASE/include"></Environment>
81 + </Client>
82 + <use name=sockets>
83 + <Runtime name=PATH value="$BINDIR" type=path>
84 + <Runtime name=NLS_LANG value="american_america.WE8ISO8859P9">
85 + <Runtime name=NLS_DATE_FORMAT value="DD-MON-FXYYYY">
86 + <Runtime name=ORA_NLS33 default="$ORACLE_BASE/ocommon/nls/admin/data">
87 + <Runtime name=ORACLE_HOME default="$ORACLE_BASE">
88 + <Runtime name=TNS_ADMIN default="$ORACLE_ADMINDIR">
89 + </Tool>
90 + EOF_TOOLFILE
91 +
92 + %post
93 + %{relocateConfig}etc/scram.d/%n
94 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines