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.4 by eulisse, Wed Apr 5 15:25:55 2006 UTC vs.
Revision 1.55 by muzaffar, Wed Jan 27 12:55:27 2010 UTC

# Line 1 | Line 1
1 < ### RPM external oracle 10.2.0.1
2 < # 10.1.0.3
3 < Source: afs:///afs/cern.ch/sw/lcg/external/oracle/%{v}/%{cmsplatf}?export=/%{n}-%{v}-%{cmsplatf}.tar.gz
1 > ### RPM external oracle 11.2.0.1.0a
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 < # tp://eulisse.web.cern.ch/eulisse/%n-%v.tgz
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 > %setup -n %realversion
12  
7 %prep
8 %setup -n %{n}-%{v}-%{cmsplatf}
13   %build
14 +
15   %install
16 < ls
17 < cp -r bin %i
18 < cp -r include %i
19 < cp -r lib %i
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.xml
27 >  <tool name="oracle" version="%v">
28 >    <lib name="clntsh"/>
29 >    <lib name="nnz11"/>
30 >    <client>
31 >      <environment name="ORACLE_BASE" default="%i"/>
32 >      <environment name="ORACLE_ADMINDIR"/>
33 >      <environment name="LIBDIR" value="$ORACLE_BASE/lib"/>
34 >      <environment name="BINDIR" value="$ORACLE_BASE/bin"/>
35 >      <environment name="INCLUDE" value="$ORACLE_BASE/include"/>
36 >    </client>
37 >    <runtime name="PATH" value="$BINDIR" type="path"/>
38 >    <runtime name="TNS_ADMIN" default="$ORACLE_ADMINDIR"/>
39 >    <use name="sockets"/>
40 >  </tool>
41 > EOF_TOOLFILE
42 >
43 > cat << \EOF_TOOLFILE >%i/etc/scram.d/oracleocci.xml
44 >  <tool name="oracleocci" version="%v">
45 >    <lib name="occi"/>
46 >    <use name="oracle"/>
47 >  </tool>
48 > EOF_TOOLFILE
49 >
50 > %post
51 > %{relocateConfig}etc/scram.d/%n.xml
52 > %{relocateConfig}etc/scram.d/oracleocci.xml

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines