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.3 by eulisse, Wed Apr 5 15:23:58 2006 UTC vs.
Revision 1.45 by eulisse, Tue Sep 29 13:11:11 2009 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}.tar.gz
1 > ### RPM external oracle 11.2.0.1.0
2 > ## INITENV SET ORACLE_HOME %i
3 > ## NOCOMPILER
4 > ## BUILDIF case `uname`:`uname -p` in Linux:i*86 ) true ;; Linux:x86_64 ) true ;;  Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac
5  
6 < # tp://eulisse.web.cern.ch/eulisse/%n-%v.tgz
6 > Source0: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/basic.zip?arch=%cmsos&version=%realversion
7 > Source1: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/sdk.zip?arch=%cmsos&version=%realversion
8 > Source2: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/sqlplus.zip?arch=%cmsos&version=%realversion
9 > Source9: oracle-license
10 > Source10: http://www.oracle.com/technology/tech/oci/occi/downloads/occi_gcc343_102020.tar.gz
11  
12 + ## INITENV +PATH SQLPATH %i/bin
13   %prep
14 < %setup -n %{n}-%{v}
14 > rm -rf instantclient_*
15 > rm -rf libocci.so.10.1 libocci10.a
16 >
17 > unzip -o -u "%_sourcedir/basic.zip?arch=%cmsos&version=%realversion"
18 > unzip -o -u "%_sourcedir/sdk.zip?arch=%cmsos&version=%realversion"
19 > unzip -o -u "%_sourcedir/sqlplus.zip?arch=%cmsos&version=%realversion"
20 > %if "%{realversion}" == "10.2.0.3"
21 > case %cmsos in
22 >    slc4_ia32 )
23 >        tar xzvf %_sourcedir/occi_gcc343_102020.tar.gz
24 >    ;;
25 > esac
26 > %endif
27 >
28   %build
29   %install
30 < ls
31 < cp -r bin %i
32 < cp -r include %i
33 < cp -r lib %i
30 > mkdir -p %i/bin %i/etc %i/lib %i/admin %i/java %i/demo %i/include
31 > cp %_sourcedir/oracle-license %{i}/oracle-license
32 > cp -p instantclient*/lib* %i/lib
33 > cp -p instantclient*/sqlplus %i/bin
34 > cp -p instantclient*/glogin.sql %i/bin
35 > cp -p instantclient*/*.jar %i/java
36 > cp -p instantclient*/sdk/demo/* %i/demo
37 > cp -p instantclient*/sdk/include/* %i/include
38 > %if "%cmsplatf" == "slc4_ia32_gcc345"
39 > echo Copying libocci libraries for slc4_ia32_gcc345
40 > [ -f libocci.so.10.1 ] && mv libocci.so.10.1 %i/lib
41 > [ -f libocci10.a ] && mv libocci10.a %i/lib
42 > %endif
43 > (cd %i/lib && ln -s libclntsh.* $(echo libclntsh.* | sed 's/[0-9.]*$//'))
44 > (cd %i/lib && ln -s libocci.* $(echo libocci.* | sed 's/[0-9.]*$//'))
45 > chmod -R g-w %i
46 >
47 > # SCRAM ToolBox toolfile
48 > mkdir -p %i/etc/scram.d
49 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
50 > <doc type=BuildSystem::ToolDoc version=1.0>
51 > <Tool name=%n version=%v>
52 > <lib name=clntsh>
53 > <lib name=occi>
54 > <lib name=nnz10>
55 > <Client>
56 > <Environment name=ORACLE_BASE default="%i"></Environment>
57 > <Environment name=ORACLE_ADMINDIR></Environment>
58 > <Environment name=LIBDIR value="$ORACLE_BASE/lib"></Environment>
59 > <Environment name=BINDIR value="$ORACLE_BASE/bin"></Environment>
60 > <Environment name=INCLUDE value="$ORACLE_BASE/include"></Environment>
61 > </Client>
62 > <use name=sockets>
63 > <Runtime name=PATH value="$BINDIR" type=path>
64 > <Runtime name=NLS_LANG value="american_america.WE8ISO8859P9">
65 > <Runtime name=NLS_DATE_FORMAT value="DD-MON-FXYYYY">
66 > <Runtime name=ORA_NLS33 default="$ORACLE_BASE/ocommon/nls/admin/data">
67 > <Runtime name=ORACLE_HOME default="$ORACLE_BASE">
68 > <Runtime name=TNS_ADMIN default="$ORACLE_ADMINDIR">
69 > </Tool>
70 > EOF_TOOLFILE
71 > %post
72 > %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines