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.1 by eulisse, Sun Feb 26 14:35:22 2006 UTC vs.
Revision 1.37 by andreasp, Sat Nov 7 07:50:16 2009 UTC

# Line 1 | Line 1
1   ### RPM external p5-dbd-oracle 1.17
2 < ## INITENV +PATH PERL5LIB %i/lib/site_perl/$PERL_VERSION/%perlarch
3 < %define perlarch %(perl -V | tr ',' '\\n' | grep arch | cut -d= -f2)
2 > ## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion
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-%v.tar.gz
8 < Requires: perl p5-dbi oracle
7 > %define closingbrace )
8 > %define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo false;; esac)
9 >
10 > %if "%online" != "true"
11 > Requires: p5-dbi oracle
12 > %define oraclesdksrc none
13 > %else
14 > # we still need oracle sdk makefiles:
15 > %define oraclesdksrc http://cmsrep.cern.ch/cmssw/oracle-mirror/slc4_ia32/10.2.0.3/sdk.zip
16 > Provides: perl(DBI)
17 > %endif
18 >
19 > Source0: http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/P/PY/PYTHIAN/%downloadn-%{realversion}.tar.gz
20 > Source1: %oraclesdksrc
21 >
22 > Provides: perl(Tk) perl(Tk::Balloon) perl(Tk::ErrorDialog) perl(Tk::FileSelect) perl(Tk::Pod) perl(Tk::ROText)
23 >
24   %prep
25 < %setup -n %{downloadn}-%{v}
25 > %setup -T -b 0 -n %{downloadn}-%{realversion}
26 >
27 > %if "%online" == "true"
28 > rm -rf instantclient_*
29 > yes | unzip %_sourcedir/sdk.zip
30 > %endif
31 >
32   %build
33 < perl Makefile.PL LIB=%i/lib/site_perl/$PERL_VERSION/
33 > patch Makefile.PL << \EOF
34 > diff Makefile.PL.orig Makefile.PL
35 > 1407a1408
36 > >        "$OH/include", # Tim Barrass, hacked for OIC install from zips
37 > EOF
38 > %ifos darwin
39 > perl -p -i -e 's/NMEDIT = nmedit/NMEDIT = true/' Makefile.PL
40 > %endif
41 >
42 > %if "%online" != "true"
43 > perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion -l -m $ORACLE_HOME/demo/demo.mk
44 > %else
45 > export ORACLE_HOME="/opt/xdaq"
46 > perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion -l -m instantclient_10_2/sdk/demo/demo.mk
47 > %endif
48   make

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines