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.1 by eulisse, Wed Feb 22 14:29:39 2006 UTC vs.
Revision 1.37 by eulisse, Thu Feb 21 11:23:37 2008 UTC

# Line 1 | Line 1
1 < ### RPM external oracle 10.1.0.3
2 < Source: http://eulisse.web.cern.ch/eulisse/%n-%v.tgz
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 + Source0: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/basic-%cmsos.zip
6 + Source1: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/sdk-%cmsos.zip
7 + Source2: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/sqlplus-%cmsos.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 < %setup -n %{n}-%{v}
13 > rm -rf instantclient_*
14 > rm -rf libocci.so.10.1 libocci10.a
15 > unzip -o -u %_sourcedir/basic-%cmsos.zip
16 > unzip -o -u %_sourcedir/sdk-%cmsos.zip
17 > unzip -o -u %_sourcedir/sqlplus-%cmsos.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 < ls
29 < cp -r bin %i
30 < cp -r include %i
31 < cp -r lib %i
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