ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/p5-dbd-oracle.spec
Revision: 1.24
Committed: Thu May 29 19:37:14 2008 UTC (16 years, 11 months ago) by ratnik
Branch: MAIN
CVS Tags: CMSSW_2_2_6_HLT_ONLINE1, nr090319_for226hltonl1, CMSSW_2_2_6_HLT_ONLINE, CMSSW_2_2_6_onlpatch1_ONLINE, CMSSW_2_2_6_ONLINE, nr090307for226_onlpatch1, nr090306onl226_tkonlsw_too_new, CMSSW_2_1_9_ONLINE, CMSSW_2_1_4_ONLINE1, CMSSW_2_1_1_ONLINE1, CMSSW_2_1_0_ONLINE1, nr080806_for210onl, CMSSW_2_0_10_ONLINE1, nr080714_forCRAB, nr080624_for21x, nr080623_for21x, CMSSW_2_0_8_ONLINE1-cms2, CMSSW_2_0_8_ONLINE1, SiteDB_030608_1, nr080529_onl_cmsBuild
Changes since 1.23: +2 -2 lines
Log Message:
Changes for compatibility with online build:
 - source download procedure adjusted for building with cmsBuild.
 - updated oracle sdk url: we now get it from oracle-mirror on cmsrep.

File Contents

# User Rev Content
1 ratnik 1.21 ### RPM external p5-dbd-oracle 1.17-CMS19
2 eulisse 1.9 ## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion
3 ratnik 1.21 ## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac
4 lat 1.6 %define perlversion %(perl -e 'printf "%%vd", $^V')
5     %define perlarch %(perl -MConfig -e 'print $Config{archname}')
6 eulisse 1.1 %define downloadn DBD-Oracle
7 ratnik 1.21
8 ratnik 1.23 %if "%cmsplatf" != "slc4onl_ia32_gcc346"
9 ratnik 1.21 Requires: p5-dbi oracle
10 ratnik 1.22 %define oraclesdksrc none
11     %else
12     # we still need oracle sdk makefiles:
13 ratnik 1.24 %define oraclesdksrc http://cmsrep.cern.ch/cmssw/oracle-mirror/slc4_ia32/10.2.0.3/sdk.zip
14 ratnik 1.22 %endif
15    
16     Source0: http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/P/PY/PYTHIAN/%downloadn-%{realversion}.tar.gz
17     Source1: %oraclesdksrc
18    
19 lat 1.8 Provides: perl(Tk) perl(Tk::Balloon) perl(Tk::ErrorDialog) perl(Tk::FileSelect) perl(Tk::Pod) perl(Tk::ROText)
20 lat 1.5
21 eulisse 1.1 %prep
22 ratnik 1.22 %setup -T -b 0 -n %{downloadn}-%{realversion}
23    
24 ratnik 1.23 %if "%cmsplatf" == "slc4onl_ia32_gcc346"
25 ratnik 1.22 rm -rf instantclient_*
26 ratnik 1.24 yes | unzip %_sourcedir/sdk.zip
27 ratnik 1.22 %endif
28 lat 1.4
29 eulisse 1.1 %build
30 lat 1.4 patch Makefile.PL << \EOF
31     diff Makefile.PL.orig Makefile.PL
32     1407a1408
33     > "$OH/include", # Tim Barrass, hacked for OIC install from zips
34     EOF
35     %ifos darwin
36 ratnik 1.21 perl -p -i -e 's/NMEDIT = nmedit/NMEDIT = true/' Makefile.PL
37 lat 1.4 %endif
38 ratnik 1.21
39 ratnik 1.23 %if "%cmsplatf" != "slc4onl_ia32_gcc346"
40 ratnik 1.21 perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion -l -m $ORACLE_HOME/demo/demo.mk
41 ratnik 1.22 %else
42     export ORACLE_HOME="/opt/xdaq"
43     perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion -l -m instantclient_10_2/demo/demo.mk
44     %endif
45 eulisse 1.1 make