ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/p5-dbd-oracle.spec
Revision: 1.4
Committed: Fri May 5 15:40:35 2006 UTC (18 years, 11 months ago) by lat
Branch: MAIN
Changes since 1.3: +12 -1 lines
Log Message:
Incorporate PhEDEx hacks to get the module to build.
No idea how it ever built against the instant client provided
in earlier 'oracle' packages, it definitely didn't work for me.

File Contents

# Content
1 ### RPM external p5-dbd-oracle 1.17
2 ## INITENV +PATH PERL5LIB %i/lib/site_perl/$PERL_VERSION/%perlarch
3 %define perlarch $(perl -e 'use Config; print $Config{archname}')
4 %define downloadn DBD-Oracle
5 Source: http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/P/PY/PYTHIAN/%downloadn-%v.tar.gz
6
7 Requires: perl-virtual p5-dbi oracle
8 %prep
9 %setup -n %{downloadn}-%{v}
10
11 %build
12 patch Makefile.PL << \EOF
13 diff Makefile.PL.orig Makefile.PL
14 1407a1408
15 > "$OH/include", # Tim Barrass, hacked for OIC install from zips
16 EOF
17 %ifos darwin
18 [ $(uname) = Darwin ] perl -p -i -e 's/NMEDIT = nmedit/NMEDIT = true/' Makefile.PL
19 %endif
20
21 perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/$PERL_VERSION -l -m $ORACLE_HOME/demo/demo.mk
22 make