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.9 by eulisse, Tue May 16 10:15:45 2006 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.1
2 > ## INITENV SET ORACLE_HOME %i
3  
4 + %define pkg0name_slc3_ia32_gcc323 instantclient-basic-linux32-10.2.0.1-20050713.zip
5 + %define pkg1name_slc3_ia32_gcc323 instantclient-sdk-linux32-10.2.0.1-20050713.zip
6 + %define pkg2name_slc3_ia32_gcc323 instantclient-sqlplus-linux32-10.2.0.1-20050713.zip
7 + Source0: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/%{pkg0name_slc3_ia32_gcc323}
8 + 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}
18 +
19 + ## INITENV +PATH SQLPATH %i/bin
20   %prep
21 < %setup -n %{n}-%{v}
21 > rm -rf instantclient_$(echo %v | cut -f1,2 -d. | tr . _)
22 > %define tmpPlatf %(echo %cmsplatf|cut -d_ -f1,2)
23 > if [ "%tmpPlatf" == "slc3_ia32" ]
24 > then
25 > yes | unzip %_sourcedir/%{pkg0name_slc3_ia32_gcc323}
26 > yes | unzip %_sourcedir/%{pkg1name_slc3_ia32_gcc323}
27 > yes | unzip %_sourcedir/%{pkg2name_slc3_ia32_gcc323}
28 > elif [ "%tmpPlatf" == "slc3_amd64" ]
29 > then
30 > yes | unzip %_sourcedir/%{pkg0name_slc3_amd64_gcc345}
31 > yes | unzip %_sourcedir/%{pkg1name_slc3_amd64_gcc345}
32 > yes | unzip %_sourcedir/%{pkg2name_slc3_amd64_gcc345}
33 > fi
34 >
35   %build
36   %install
37 < ls
38 < cp -r bin %i
39 < cp -r include %i
40 < cp -r lib %i
37 > mkdir -p %i/bin %i/etc %i/lib %i/admin %i/java %i/demo %i/include
38 > cp -p instantclient*/lib* %i/lib
39 > cp -p instantclient*/sqlplus %i/bin
40 > cp -p instantclient*/glogin.sql %i/bin
41 > cp -p instantclient*/*.jar %i/java
42 > cp -p instantclient*/sdk/demo/* %i/demo
43 > cp -p instantclient*/sdk/include/* %i/include
44 > (cd %i/lib && ln -s libclntsh.* $(echo libclntsh.* | sed 's/[0-9.]*$//'))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines