1 |
< |
### RPM external oracle 10.2.0.1 |
1 |
> |
### RPM external oracle 10.2.0.2 |
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} |
4 |
> |
Source0: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-basic-linux32-10.2.0.2-20060331.zip |
5 |
> |
Source1: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-linux32-10.2.0.2-20060331.zip |
6 |
> |
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 |
> |
|
16 |
|
|
17 |
|
## INITENV +PATH SQLPATH %i/bin |
18 |
|
%prep |
19 |
< |
rm -rf instantclient_$(echo %v | cut -f1,2 -d. | tr . _) |
20 |
< |
%define tmpPlatf %(echo %cmsplatf|cut -d_ -f1,2) |
21 |
< |
if [ "%tmpPlatf" == "slc3_ia32" ] |
22 |
< |
then |
23 |
< |
yes | unzip %_sourcedir/%{pkg0name_slc3_ia32_gcc323} |
24 |
< |
yes | unzip %_sourcedir/%{pkg1name_slc3_ia32_gcc323} |
25 |
< |
yes | unzip %_sourcedir/%{pkg2name_slc3_ia32_gcc323} |
26 |
< |
elif [ "%tmpPlatf" == "slc3_amd64" ] |
27 |
< |
then |
28 |
< |
yes | unzip %_sourcedir/%{pkg0name_slc3_amd64_gcc345} |
29 |
< |
yes | unzip %_sourcedir/%{pkg1name_slc3_amd64_gcc345} |
30 |
< |
yes | unzip %_sourcedir/%{pkg2name_slc3_amd64_gcc345} |
31 |
< |
fi |
19 |
> |
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 |
37 |
|
|
38 |
|
%build |
39 |
|
%install |
45 |
|
cp -p instantclient*/sdk/demo/* %i/demo |
46 |
|
cp -p instantclient*/sdk/include/* %i/include |
47 |
|
(cd %i/lib && ln -s libclntsh.* $(echo libclntsh.* | sed 's/[0-9.]*$//')) |
48 |
+ |
(cd %i/lib && ln -s libocci.* $(echo libocci.* | sed 's/[0-9.]*$//')) |