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.13 by eulisse, Fri Jun 23 11:46:19 2006 UTC vs.
Revision 1.52 by elmer, Fri Nov 20 02:53:00 2009 UTC

# Line 1 | Line 1
1 < ### RPM external oracle 10.2.0.2
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.2-20060331.zip
6 < Source1: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-linux32-10.2.0.2-20060331.zip
7 < Source2: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sqlplus-linux32-10.2.0.2-20060331.zip
7 <
8 < Source3: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-basic-linux-x86-64-10.2.0.2-20060228.zip
9 < Source4: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-linux-x86-64-10.2.0.2-20060228.zip
10 < Source5: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sqlplus-linux-x86-64-10.2.0.2-20060228.zip
11 <
12 < Source6: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-basic-macosx-10.1.0.3.zip
13 < Source7: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-macosx-10.1.0.3.zip
14 < Source8: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sqlplus-macosx-10.1.0.3.zip
15 <
5 > Source0: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/oracle_lcg.tgz
6 > Source9: oracle-license
7 > Requires: fakesystem
8  
9   ## INITENV +PATH SQLPATH %i/bin
10 < %prep
11 < rm -rf instantclient_*
20 < case %cmsos in
21 <  slc*_ia32 )
22 <    yes | unzip %_sourcedir/*-basic-*linux32*.zip
23 <    yes | unzip %_sourcedir/*-sdk-*linux32*.zip
24 <    yes | unzip %_sourcedir/*-sqlplus-*linux32*.zip
25 <    ;;
26 <  slc*_amd64 )
27 <    yes | unzip %_sourcedir/*-basic-*linux-x86-64*.zip
28 <    yes | unzip %_sourcedir/*-sdk-*linux-x86-64*.zip
29 <    yes | unzip %_sourcedir/*-sqlplus-*linux-x86-64*.zip
30 <    ;;
31 <  osx* )
32 <    yes | unzip %_sourcedir/*-basic-*macosx*.zip
33 <    yes | unzip %_sourcedir/*-sdk-*macosx*.zip
34 <    yes | unzip %_sourcedir/*-sqlplus-*macosx*.zip
35 <    ;;  
36 < esac
10 > %prep
11 > %setup -n %realversion
12  
13   %build
14 +
15   %install
16 < mkdir -p %i/bin %i/etc %i/lib %i/admin %i/java %i/demo %i/include
17 < cp -p instantclient*/lib* %i/lib
18 < cp -p instantclient*/sqlplus %i/bin
19 < cp -p instantclient*/glogin.sql %i/bin
20 < cp -p instantclient*/*.jar %i/java
21 < cp -p instantclient*/sdk/demo/* %i/demo
22 < cp -p instantclient*/sdk/include/* %i/include
23 < (cd %i/lib && ln -s libclntsh.* $(echo libclntsh.* | sed 's/[0-9.]*$//'))
24 < (cd %i/lib && ln -s libocci.* $(echo libocci.* | sed 's/[0-9.]*$//'))
16 > mkdir -p %i/bin %i/lib %i/doc %i/include
17 > cp %_sourcedir/oracle-license %{i}/oracle-license
18 > cp -r bin/* %i/bin/
19 > cp -r lib/* %i/lib/
20 > cp -r doc/* %i/doc/
21 > cp -r include/* %i/include/
22 >
23 > # SCRAM ToolBox toolfile
24 > mkdir -p %i/etc/scram.d
25 >
26 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
27 > <doc type=BuildSystem::ToolDoc version=1.0>
28 > <Tool name=%n version=%v>
29 > <lib name=clntsh>
30 > <lib name=nnz11>
31 > <Client>
32 > <Environment name=ORACLE_BASE default="%i"></Environment>
33 > <Environment name=ORACLE_ADMINDIR></Environment>
34 > <Environment name=LIBDIR value="$ORACLE_BASE/lib"></Environment>
35 > <Environment name=BINDIR value="$ORACLE_BASE/bin"></Environment>
36 > <Environment name=INCLUDE value="$ORACLE_BASE/include"></Environment>
37 > </Client>
38 > <use name=sockets>
39 > <Runtime name=PATH value="$BINDIR" type=path>
40 > <Runtime name=NLS_LANG value="american_america.WE8ISO8859P9">
41 > <Runtime name=NLS_DATE_FORMAT value="DD-MON-FXYYYY">
42 > <Runtime name=ORA_NLS33 default="$ORACLE_BASE/ocommon/nls/admin/data">
43 > <Runtime name=ORACLE_HOME default="$ORACLE_BASE">
44 > <Runtime name=TNS_ADMIN default="$ORACLE_ADMINDIR">
45 > </Tool>
46 > EOF_TOOLFILE
47 >
48 > cat << \EOF_TOOLFILE >%i/etc/scram.d/oracleocci
49 > <doc type=BuildSystem::ToolDoc version=1.0>
50 > <Tool name=oracleocci version=%v>
51 > <lib name=occi>
52 > <use name=oracle>
53 > </Tool>
54 > EOF_TOOLFILE
55 >
56 > %post
57 > %{relocateConfig}etc/scram.d/%n
58 > %{relocateConfig}etc/scram.d/oracleocci

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines