ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/p5-dbd-oracle.spec
Revision: 1.33
Committed: Tue May 19 09:01:05 2009 UTC (15 years, 11 months ago) by andreasp
Branch: MAIN
CVS Tags: ap20090520-osx105, ap20090519-osx105
Changes since 1.32: +15 -55 lines
Log Message:
updates for building on mac os x 10.5 (leopard)

File Contents

# User Rev Content
1 andreasp 1.33 ### RPM external p5-dbd-oracle 1.17-CMS19
2 eulisse 1.9 ## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion
3 andreasp 1.33 ## 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 eulisse 1.1 %define downloadn DBD-Oracle
7 andreasp 1.33 Source: http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/P/PY/PYTHIAN/%downloadn-%{realversion}.tar.gz
8 ratnik 1.21
9     Requires: p5-dbi oracle
10 lat 1.8 Provides: perl(Tk) perl(Tk::Balloon) perl(Tk::ErrorDialog) perl(Tk::FileSelect) perl(Tk::Pod) perl(Tk::ROText)
11 andreasp 1.33 Provides: /opt/local/bin/perl
12 lat 1.5
13 eulisse 1.1 %prep
14 andreasp 1.33 %setup -n %{downloadn}-%{realversion}
15 lat 1.4
16 eulisse 1.1 %build
17 andreasp 1.33 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 lat 1.4 %ifos darwin
23 andreasp 1.33 perl -p -i -e 's/NMEDIT = nmedit/NMEDIT = true/' Makefile.PL
24 lat 1.4 %endif
25 ratnik 1.21
26 andreasp 1.33 perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion -l -m $ORACLE_HOME/demo/demo.mk
27 eulisse 1.1 make
28 andreasp 1.33 #