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.27 by fvlingen, Tue Nov 18 12:27:20 2008 UTC vs.
Revision 1.33 by andreasp, Tue May 19 09:01:05 2009 UTC

# Line 1 | Line 1
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 + Source: http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/P/PY/PYTHIAN/%downloadn-%{realversion}.tar.gz
8  
8 %if "%cmsplatf" != "slc4onl_ia32_gcc346"
9   Requires: p5-dbi oracle
10 %define oraclesdksrc none
11 %else
12 # we still need oracle sdk makefiles:
13 %define oraclesdksrc http://cmsrep.cern.ch/cmssw/oracle-mirror/slc4_ia32/10.2.0.3/sdk.zip
14 %endif
15
16 Source0: http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/P/PY/PYTHIAN/%downloadn-%{realversion}.tar.gz
17 Source1: %oraclesdksrc
18
10   Provides: perl(Tk) perl(Tk::Balloon) perl(Tk::ErrorDialog) perl(Tk::FileSelect) perl(Tk::Pod) perl(Tk::ROText)
11 + Provides: /opt/local/bin/perl
12  
13   %prep
14 < %setup -T -b 0 -n %{downloadn}-%{realversion}
23 <
24 < %if "%cmsplatf" == "slc4onl_ia32_gcc346"
25 < rm -rf instantclient_*
26 < yes | unzip %_sourcedir/sdk.zip
27 < %endif
14 > %setup -n %{downloadn}-%{realversion}
15  
16   %build
17 + patch Makefile.PL << \EOF
18 + diff Makefile.PL.orig Makefile.PL
19 + 1407a1408
20 + >        "$OH/include", # Tim Barrass, hacked for OIC install from zips
21 + EOF
22   %ifos darwin
23   perl -p -i -e 's/NMEDIT = nmedit/NMEDIT = true/' Makefile.PL
24   %endif
25  
34 %if "%cmsplatf" != "slc4onl_ia32_gcc346"
26   perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion -l -m $ORACLE_HOME/demo/demo.mk
36 %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
27   make
28 + #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines