ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/p5-dbd-oracle.spec
(Generate patch)

Comparing COMP/CMSDIST/p5-dbd-oracle.spec (file contents):
Revision 1.26 by egeland, Wed Oct 29 10:17:31 2008 UTC vs.
Revision 1.36 by elmer, Fri Oct 30 19:46:57 2009 UTC

# Line 1 | Line 1
1 < ### RPM external p5-dbd-oracle 1.17
1 > ### RPM external p5-dbd-oracle 1.17-CMS19
2   ## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion
3 <
3 > ## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;;  Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac
4   %define perlversion %(perl -e 'printf "%%vd", $^V')
5   %define perlarch %(perl -MConfig -e 'print $Config{archname}')
6   %define downloadn DBD-Oracle
7 + %define closingbrace )
8 + %define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo false;; esac)
9  
10 < %if "%cmsplatf" != "slc4onl_ia32_gcc346"
10 > %if "%online" != "true"
11   Requires: p5-dbi oracle
12   %define oraclesdksrc none
13   %else
# Line 21 | Line 23 | Provides: perl(Tk) perl(Tk::Balloon) per
23   %prep
24   %setup -T -b 0 -n %{downloadn}-%{realversion}
25  
26 < %if "%cmsplatf" == "slc4onl_ia32_gcc346"
26 > %if "%online" == "true"
27   rm -rf instantclient_*
28   yes | unzip %_sourcedir/sdk.zip
29   %endif
30  
31   %build
32 + patch Makefile.PL << \EOF
33 + diff Makefile.PL.orig Makefile.PL
34 + 1407a1408
35 + >        "$OH/include", # Tim Barrass, hacked for OIC install from zips
36 + EOF
37   %ifos darwin
38   perl -p -i -e 's/NMEDIT = nmedit/NMEDIT = true/' Makefile.PL
39   %endif
40  
41 < %if "%cmsplatf" != "slc4onl_ia32_gcc346"
41 > %if "%online" != "true"
42   perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion -l -m $ORACLE_HOME/demo/demo.mk
43   %else
44   export ORACLE_HOME="/opt/xdaq"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines