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.35 by elmer, Thu Dec 27 20:28:33 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines