ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/oracle.spec
Revision: 1.65
Committed: Sat Oct 8 21:52:20 2011 UTC (13 years, 6 months ago) by lat
Branch: MAIN
CVS Tags: bld_1364477047_CmsTC_slc5_amd64_gcc434, bld_1363597235_CmsTC_slc5_amd64_gcc434, bld_1361358843_CmsTC_slc5_amd64_gcc434, bld_1360935597_CmsTC_slc5_amd64_gcc434, bld_1358942699_CmsTC_slc5_amd64_gcc434, bld_1358853292_CmsTC_slc5_amd64_gcc434, TW20120428p, TW20120417a, TW20120416a, TW20120410b, TW20120410a, TW20120327b, TW20120327a, TW20120326a, TW20120322a, HG1203i, TW20120321c, TW20120321b, TW20120321a, TW20120320b, TW20120320a, TW20120319k, TW20120319j, TW20120319i, TW20120319h, TW20120319g, TW20120319f, TW20120319e, TW20120319d, TW20120319c, TW20120319b, TW20120319a, TW20120313a, TW20120309h, TW20120309g, TW20120309f, TW20120309e, TW20120309d, TW20120309c, TW20120309b, TW20120309a, TW20120308b, TW20120308a, TW20120307a, HG1203h, TW20120305b, HG1203g, HG1203f, HG1203e, HG1203d, HG1203c, HG1203b, TW20120216b, TW20120216a, HG1201d, HG1203a, TW20120210a, TW20120209a, TW20120207b, TW20120207a, HG1201c, bld_1328198772_crab_slc5_amd64_gcc461, TW20120130b, TW20120130a, TW20120127b, TW20120127a, TW20120125a, bld_1327424666_crab-client3_slc5_amd64_gcc461, HG1201b, bld_1327416353_crab-server3_slc5_amd64_gcc461, bld_1327397075_cmsbuilder_slc5_amd64_gcc461, TW20120123a, TW20120120a, TW20120119b, TW20120119a, bld_1326980038_cmsbuild_slc5_amd64_gcc461, TW20120118a, bld_1326280382_cmsBuilder_slc5_amd64_gcc461, bld_1326274893_cmsBuilder_slc5_amd64_gcc461, bld_1326273864_asyncstageout_slc5_amd64_gcc461, bld_1324281658_cmsweb_osx106_amd64_gcc461, HG1201a, HG1112d, bld_1323333807_CmsTC_slc5_amd64_gcc461, HG1112c, TW20111129e, TW20111129d, TW20111129c, TW20111129a, TW20111128c, TW20111128b, TW20111128a, HG1112b, TW20111122a, TW20111120a, TW20111118c, TW20111118b, TW20111118a, HG1111e, bld_1321455789_happyface_slc5_amd64_gcc461, bld_1321454935_happyface_slc5_amd64_gcc461, TW20111115d, TW20111115c, TW20111115b, TW20111115a, HG1112a, TW20111103a, TW20111101e, TW20111101d, TW20111101c, TW20111101b, TW20111101a, TW20111028a, bld_1319551575_PHEDEX-combined-agents_slc5_amd64_gcc461, HG1111d, TW20111017d, TW20111017c, TW20111017b, TW20111017a, TW20111016a, TW20111015a, TW20111014a, bld_1318523430_cmsweb_slc5_amd64_gcc434, HG1111c-gcc434, HG1111c, LT20111012a, HG1111b
Changes since 1.64: +1 -1 lines
Log Message:
Treat SL6 like SL5.

File Contents

# User Rev Content
1 eulisse 1.63 ### RPM external oracle 100.0
2 lat 1.6 ## INITENV SET ORACLE_HOME %i
3 eulisse 1.63 ## INITENV +PATH SQLPATH %i/bin
4 eulisse 1.9
5 eulisse 1.63 # Notice that we have a dummy package version because the mac and linux clients
6     # are not in sync. Moreover, because it's a binary only package we need to
7     # point to different tarballs for different architecture.
8     # Do not even think about commenting out one of the sources, simply because
9     # it's not needed for your platform.
10     # Also notice that even if LCG provides a tarball named without references
11     # to CMS architecture, we need to have a -%%cmsos suffix in order to
12     # avoid that one overwrites the other.
13     %define macversion 10.2.0.4.0
14     %define linuxversion 11.2.0.1.0p2
15     Source0: http://cmsrep.cern.ch/cmssw/oracle-mirror/slc5_amd64/%{linuxversion}/oracle_lcg-slc5_amd64.tgz
16     Source1: http://cmsrep.cern.ch/cmssw/oracle-mirror/slc5_ia32/%{linuxversion}/oracle_lcg-slc5_ia32.tgz
17     Source2: http://cmsrep.cern.ch/cmssw/oracle-mirror/osx106_amd64/%{macversion}/oracle_lcg-osx106_amd64.tgz
18 eulisse 1.14 Source9: oracle-license
19 elmer 1.59 Requires: fakesystem
20 eulisse 1.12
21 eulisse 1.63 %prep
22     # We unpack only the sources for the architecture we are working on. Do not
23     # change this to unpack all the architectures. Notice also that you cannot put
24     # ;; on the same line as the %%setup macro, because the latter will swallow it
25     # as part of the arguments.
26 eulisse 1.64 # Notice that we are forced to use rpm macros because %%setup registers the
27     # final directory to use as the one of the last %%setup happening.
28 lat 1.65 %if %cmsos == slc6_amd64 || %cmsos == slc5_amd64
29 eulisse 1.63 %setup -T -n %linuxversion -b 0
30 eulisse 1.64 %endif
31     %if %cmsos == slc5_ia32
32 eulisse 1.63 %setup -T -n %linuxversion -b 1
33 eulisse 1.64 %endif
34     %if %cmsos == osx106_amd64
35 eulisse 1.63 %setup -T -n %macversion -b 2
36 eulisse 1.64 %endif
37 eulisse 1.9
38 eulisse 1.1 %build
39 elmer 1.59
40 eulisse 1.1 %install
41 elmer 1.59 mkdir -p %i/bin %i/lib %i/doc %i/include
42 eulisse 1.14 cp %_sourcedir/oracle-license %{i}/oracle-license
43 elmer 1.59 cp -r bin/* %i/bin/
44     cp -r lib/* %i/lib/
45     cp -r doc/* %i/doc/
46     cp -r include/* %i/include/
47 eulisse 1.63
48     case %cmsplatf in
49     osx* )
50     ln -sf libclntsh.dylib.10.1 %i/lib/libclntsh.dylib
51     ln -sf libocci.dylib.10.1 %i/lib/libocci.dylib
52     ;;
53     esac