1 |
< |
### RPM external oracle 10.2.0.2 |
1 |
> |
### RPM external oracle 11.1.0.6.0 |
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://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-basic-linux32-10.2.0.2-20060331.zip |
6 |
< |
Source1: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-linux32-10.2.0.2-20060331.zip |
7 |
< |
Source2: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sqlplus-linux32-10.2.0.2-20060331.zip |
8 |
< |
|
9 |
< |
Source3: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-basic-linux-x86-64-10.2.0.2-20060228.zip |
10 |
< |
Source4: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-linux-x86-64-10.2.0.2-20060228.zip |
11 |
< |
Source5: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sqlplus-linux-x86-64-10.2.0.2-20060228.zip |
12 |
< |
|
13 |
< |
Source6: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-basic-macosx-10.1.0.3.zip |
14 |
< |
Source7: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sdk-macosx-10.1.0.3.zip |
15 |
< |
Source8: http://oraclelon1.oracle.com/otn/linux/instantclient/10201/instantclient-sqlplus-macosx-10.1.0.3.zip |
16 |
< |
|
5 |
> |
Source0: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/basic.zip |
6 |
> |
Source1: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/sdk.zip |
7 |
> |
Source2: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/sqlplus.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 |
|
rm -rf instantclient_* |
14 |
< |
case %cmsos in |
15 |
< |
slc3_ia32 ) |
16 |
< |
yes | unzip %_sourcedir/*-basic-*linux32*.zip |
26 |
< |
yes | unzip %_sourcedir/*-sdk-*linux32*.zip |
27 |
< |
yes | unzip %_sourcedir/*-sqlplus-*linux32*.zip |
28 |
< |
;; |
29 |
< |
slc4_ia32 ) |
30 |
< |
yes | unzip %_sourcedir/*-basic-*linux32*.zip |
31 |
< |
yes | unzip %_sourcedir/*-sdk-*linux32*.zip |
32 |
< |
yes | unzip %_sourcedir/*-sqlplus-*linux32*.zip |
33 |
< |
tar xzvf %_sourcedir/occi_gcc343_102020.tar.gz |
34 |
< |
;; |
35 |
< |
slc*_amd64 ) |
36 |
< |
yes | unzip %_sourcedir/*-basic-*linux-x86-64*.zip |
37 |
< |
yes | unzip %_sourcedir/*-sdk-*linux-x86-64*.zip |
38 |
< |
yes | unzip %_sourcedir/*-sqlplus-*linux-x86-64*.zip |
39 |
< |
;; |
40 |
< |
osx* ) |
41 |
< |
yes | unzip %_sourcedir/*-basic-*macosx*.zip |
42 |
< |
yes | unzip %_sourcedir/*-sdk-*macosx*.zip |
43 |
< |
yes | unzip %_sourcedir/*-sqlplus-*macosx*.zip |
44 |
< |
;; |
45 |
< |
esac |
14 |
> |
unzip -o -u %_sourcedir/basic.zip |
15 |
> |
unzip -o -u %_sourcedir/sdk.zip |
16 |
> |
unzip -o -u %_sourcedir/sqlplus.zip |
17 |
|
|
18 |
|
%build |
19 |
|
%install |
27 |
|
cp -p instantclient*/sdk/include/* %i/include |
28 |
|
%if "%cmsplatf" == "slc4_ia32_gcc345" |
29 |
|
echo Copying libocci libraries for slc4_ia32_gcc345 |
30 |
< |
mv libocci.so.10.1 %i/lib |
31 |
< |
mv libocci10.a %i/lib |
30 |
> |
[ -f libocci.so.10.1 ] && mv libocci.so.10.1 %i/lib |
31 |
> |
[ -f libocci10.a ] && mv libocci10.a %i/lib |
32 |
|
%endif |
33 |
|
(cd %i/lib && ln -s libclntsh.* $(echo libclntsh.* | sed 's/[0-9.]*$//')) |
34 |
|
(cd %i/lib && ln -s libocci.* $(echo libocci.* | sed 's/[0-9.]*$//')) |
35 |
|
chmod -R g-w %i |
36 |
+ |
|
37 |
+ |
# SCRAM ToolBox toolfile |
38 |
+ |
mkdir -p %i/etc/scram.d |
39 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
40 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
41 |
+ |
<Tool name=%n version=%v> |
42 |
+ |
<lib name=clntsh> |
43 |
+ |
<lib name=occi> |
44 |
+ |
<lib name=nnz10> |
45 |
+ |
<Client> |
46 |
+ |
<Environment name=ORACLE_BASE default="%i"></Environment> |
47 |
+ |
<Environment name=ORACLE_ADMINDIR></Environment> |
48 |
+ |
<Environment name=LIBDIR value="$ORACLE_BASE/lib"></Environment> |
49 |
+ |
<Environment name=BINDIR value="$ORACLE_BASE/bin"></Environment> |
50 |
+ |
<Environment name=INCLUDE value="$ORACLE_BASE/include"></Environment> |
51 |
+ |
</Client> |
52 |
+ |
<use name=sockets> |
53 |
+ |
<Runtime name=PATH value="$BINDIR" type=path> |
54 |
+ |
<Runtime name=NLS_LANG value="american_america.WE8ISO8859P9"> |
55 |
+ |
<Runtime name=NLS_DATE_FORMAT value="DD-MON-FXYYYY"> |
56 |
+ |
<Runtime name=ORA_NLS33 default="$ORACLE_BASE/ocommon/nls/admin/data"> |
57 |
+ |
<Runtime name=ORACLE_HOME default="$ORACLE_BASE"> |
58 |
+ |
<Runtime name=TNS_ADMIN default="$ORACLE_ADMINDIR"> |
59 |
+ |
</Tool> |
60 |
+ |
EOF_TOOLFILE |
61 |
+ |
%post |
62 |
+ |
%{relocateConfig}etc/scram.d/%n |