ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/oracle.spec
Revision: 1.39
Committed: Wed Oct 29 10:17:31 2008 UTC (16 years, 6 months ago) by egeland
Branch: MAIN
CVS Tags: MotT0_1_0_2, MotT0_1_0_1, MotT0_1_0_0, MotT0_100531_1, MotT0_100528_1, T0Mon_100518_1, T0Mon_100503_1, T0Mon_100316_1, T0Mon_100308_2, T0Mon_100308_1, T0Mon_100216_1, T0Mon_100210_1, T0Mon_100204_4, T0Mon_100204_3, T0Mon_100204_1, T0Mon_100127_1, DBS-APP_20100122_slc4, DBS-APP_20100121_slc4, DBS-WEB_20100120_slc4, DBS-APP_20100120_slc4, DBS-APP_20100118_slc4, DBS-WEB_20100118_slc4, DBS-APP_20100114_slc4, DBS-WEB_20100113_slc4, DAS_20091202, FILEMOVER_20091118, DBS-APPS_20090929, pe20091117a-fromDAS_20090709, pe20091116b-fromDAS_20090709, pe20091116a-fromDAS_20090709, T0Mon_091111_1, DAS_20091104, DBS-WEB_20091021, forPHEDEX329, forPHEDEX328, DAS_20091016, DAS_20091014, DBS-WEB_20091012, forPHEDEX327, DBS-WEB_20090921, forPHEDEX326, forPHEDEX325, forPHEDEX324, forPHEDEX323, forPHEDEX322, pe20090910-fromDAS_20090709, FILEMOVER_20090910, DBS-WEB_20090817, FILEMOVER_20090828, DBS-APPS_20090706, T0Mon_090828_1, forPHEDEX321, T0Mon_090822_1, forPHEDEX321pre3, WEBTOOLS_APPS_20090817, forPHEDEX321pre2, forPHEDEX321pre1, DBS-APPS_20090804, DBS-APPS_20090730, DAS_20090709, forPHEDEX320, T0Mon_090715_1, forPHEDEX320pre7, forPHEDEX320pre6, forPHEDEX320pre5, DAS_20090607, DBS-WEB_20090618, DBS-APPS_20090619, T0Mon_090612_1, DBS-APPS_20090608, T0Mon_090611_1, T0Mon_090610_1, forPHEDEX320pre4, DBS-APPS_20090604_1, DAS_20090604, DBS-APPS_20090604, DAS_20090603, DBS-APPS_20090603, forPHEDEX320pre3, T0Mon_090601_1, DBS-APPS_20090528, T0Mon_090527_2, T0Mon_090527_1, T0Mon_090522_1, T0Mon_090519_2, T0Mon_090519_1, DBS_APPS_20090518, T0Mon_090517_1, T0Mon_090516_1, T0Mon_090515_4, T0Mon_090515_3, T0Mon_090515_2, T0Mon_090515_1, DAS_20090514_3, DAS_20090514_2, DAS_20090514_1, DAS_20090514, DBS-WEB_20090512, forPHEDEX320pre1, T0Mon_090510_1, DBS-WEB_20090507, DBS_APPS_20090504, DBS_APPS_20090501, DBS-APPS_20090429_2, DBS-WEB_20090429, DBS-APPS_20090429, DBS-WEB_20090428, DBS-WEB_20090422, DBS-WEB_20090420, DBS-APPS_20090417, DBS-APPS_20090415, DBS-APPS_20090410, DAS_20090408, DBS-APPS_20090406, T0Mon_090406_1, DAS_20090330, DBS-APPS_20090326, T0Mon_090326_1, T0Mon_090325_1, DAS_20090319_1, DAS_20090319, DBS-APPS_20090318, T0Mon_090318_1, DBS-APPS_20090316, DAS_20090316, T0Mon_090315_1, DAS_20090313, COUCHDB_20090313, forPHEDEX313a, DBS-APPS_20090310, WEBTOOLS-APPS_20090310_1, WEBTOOLS-APPS_20090310, WEBTOOLS-APPS_20090309, DBS-APPS_20090306, DBS-APPS_20090304_1, DBS-APPS_20090304, DBS-APPS_20090303_1, DBS-APPS_20090303, T0Mon_090303_1, DBS-APPS_20090302, DBS-APPS_20090220_1, DBS-APPS_20090220, T0M_0_0_5, MEMCACHED_20090219_1, MEMCACHED_20090219, forPHEDEX313, WEBTOOLS-APPS_20090217_1, WEBTOOLS-APPS_20090217, WEBTOOLS-APPS_20090216, WEBTOOLS-APPS_20090212, WEBTOOLS-APPS_20090209_64bit, zx20090209, forPHEDEX312, WEBTOOLS-APPS_20090206, T0M_0_0_4, T0M_0_0_3, WEBTOOLS-APPS_20090203_1, WEBTOOLS-APPS_20090203, T0M_0_0_2, zx20090201, WEBTOOLS-APPS_20090130, WEBTOOLS-APPS_20090129, PRODAGENT_0_12_10_pre3, PRODAGENT_0_12_10_pre2_20090127_V2, PRODAGENT_0_12_10_20090122, PRODAGENT_0_12_10_pre1_MISC, sw_20090115a, sw_20090115, forPHEDEX311, forPHEDEX310, forPHEDEX310pre2, forPHEDEX310pre1, testofc, T0Mon_081107_1, T0Mon_081105_1, forPHEDEX307
Changes since 1.38: +2 -2 lines
Log Message:
remove BUILDIF line that breaks deployment on machines reporting "athlon" as their architecture

File Contents

# User Rev Content
1 egeland 1.39 ### RPM external oracle 10.2.0.3
2 lat 1.6 ## INITENV SET ORACLE_HOME %i
3 eulisse 1.9
4 egeland 1.39 # TODO: actually there is an instantclient for OSX now... we could make it deployable
5 eulisse 1.38 %if "%(echo %cmsplatf | cut -b 1,2,3 )" == "osx"
6     Source0: none
7     %else
8 eulisse 1.37 Source0: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/basic-%cmsos.zip
9     Source1: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/sdk-%cmsos.zip
10     Source2: http://cmsrep.cern.ch/cmssw/oracle-mirror/%cmsos/%realversion/sqlplus-%cmsos.zip
11 eulisse 1.14 Source9: oracle-license
12 eulisse 1.16 Source10: http://www.oracle.com/technology/tech/oci/occi/downloads/occi_gcc343_102020.tar.gz
13 eulisse 1.38 %endif
14 eulisse 1.12
15 lat 1.6 ## INITENV +PATH SQLPATH %i/bin
16 eulisse 1.1 %prep
17 eulisse 1.38 case %cmsos in
18     osx* )
19     ;;
20     * )
21     rm -rf instantclient_*
22     rm -rf libocci.so.10.1 libocci10.a
23     unzip -o -u %_sourcedir/basic-%cmsos.zip
24     unzip -o -u %_sourcedir/sdk-%cmsos.zip
25     unzip -o -u %_sourcedir/sqlplus-%cmsos.zip
26     ;;
27     esac
28    
29 eulisse 1.37 %if "%{realversion}" == "10.2.0.3"
30     case %cmsos in
31     slc4_ia32 )
32     tar xzvf %_sourcedir/occi_gcc343_102020.tar.gz
33 eulisse 1.34 ;;
34     esac
35 eulisse 1.37 %endif
36 eulisse 1.9
37 eulisse 1.1 %build
38     %install
39 lat 1.6 mkdir -p %i/bin %i/etc %i/lib %i/admin %i/java %i/demo %i/include
40 eulisse 1.14 cp %_sourcedir/oracle-license %{i}/oracle-license
41 lat 1.6 cp -p instantclient*/lib* %i/lib
42     cp -p instantclient*/sqlplus %i/bin
43     cp -p instantclient*/glogin.sql %i/bin
44     cp -p instantclient*/*.jar %i/java
45     cp -p instantclient*/sdk/demo/* %i/demo
46     cp -p instantclient*/sdk/include/* %i/include
47 eulisse 1.16 %if "%cmsplatf" == "slc4_ia32_gcc345"
48     echo Copying libocci libraries for slc4_ia32_gcc345
49 eulisse 1.37 [ -f libocci.so.10.1 ] && mv libocci.so.10.1 %i/lib
50     [ -f libocci10.a ] && mv libocci10.a %i/lib
51 eulisse 1.16 %endif
52 lat 1.6 (cd %i/lib && ln -s libclntsh.* $(echo libclntsh.* | sed 's/[0-9.]*$//'))
53 eulisse 1.11 (cd %i/lib && ln -s libocci.* $(echo libocci.* | sed 's/[0-9.]*$//'))
54 ratnik 1.15 chmod -R g-w %i
55 eulisse 1.37
56     # SCRAM ToolBox toolfile
57     mkdir -p %i/etc/scram.d
58     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
59     <doc type=BuildSystem::ToolDoc version=1.0>
60     <Tool name=%n version=%v>
61     <lib name=clntsh>
62     <lib name=occi>
63     <lib name=nnz10>
64     <Client>
65     <Environment name=ORACLE_BASE default="%i"></Environment>
66     <Environment name=ORACLE_ADMINDIR></Environment>
67     <Environment name=LIBDIR value="$ORACLE_BASE/lib"></Environment>
68     <Environment name=BINDIR value="$ORACLE_BASE/bin"></Environment>
69     <Environment name=INCLUDE value="$ORACLE_BASE/include"></Environment>
70     </Client>
71     <use name=sockets>
72     <Runtime name=PATH value="$BINDIR" type=path>
73     <Runtime name=NLS_LANG value="american_america.WE8ISO8859P9">
74     <Runtime name=NLS_DATE_FORMAT value="DD-MON-FXYYYY">
75     <Runtime name=ORA_NLS33 default="$ORACLE_BASE/ocommon/nls/admin/data">
76     <Runtime name=ORACLE_HOME default="$ORACLE_BASE">
77     <Runtime name=TNS_ADMIN default="$ORACLE_ADMINDIR">
78     </Tool>
79     EOF_TOOLFILE
80     %post
81     %{relocateConfig}etc/scram.d/%n