ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/p5-dbd-oracle.spec
Revision: 1.27
Committed: Tue Nov 18 12:27:20 2008 UTC (16 years, 5 months ago) by fvlingen
Branch: MAIN
CVS Tags: PRODAGENT_BUILD_TEST_0_0_3_20081120, PRODAGENT_0_12_7_20081118_V3, PRODAGENT_0_12_7_APP
Changes since 1.26: +1 -1 lines
Log Message:
added CMS postfix to version to prevent downloading cached versions

File Contents

# User Rev Content
1 fvlingen 1.27 ### RPM external p5-dbd-oracle 1.17-CMS19
2 eulisse 1.9 ## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion
3 egeland 1.26
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 %ifos darwin
31 ratnik 1.21 perl -p -i -e 's/NMEDIT = nmedit/NMEDIT = true/' Makefile.PL
32 lat 1.4 %endif
33 ratnik 1.21
34 ratnik 1.23 %if "%cmsplatf" != "slc4onl_ia32_gcc346"
35 ratnik 1.21 perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion -l -m $ORACLE_HOME/demo/demo.mk
36 ratnik 1.22 %else
37     export ORACLE_HOME="/opt/xdaq"
38     perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion -l -m instantclient_10_2/demo/demo.mk
39     %endif
40 eulisse 1.1 make