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.42 by egeland, Fri Apr 16 11:01:40 2010 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)
1 > ### RPM external p5-dbd-oracle 1.23
2 > ## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion
3 > ## BUILDIF case $(uname):$(uname -m) 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 > Requires: oracle
11 > %if "%online" != "true"
12 > Requires: p5-dbi
13 > %else
14 > Provides: perl(DBI)
15 > %endif
16 >
17 > Source0: http://mirror.switch.ch/ftp/mirror/CPAN/authors/id/P/PY/PYTHIAN/%downloadn-%{realversion}.tar.gz
18 >
19 > Provides: perl(Tk) perl(Tk::Balloon) perl(Tk::ErrorDialog) perl(Tk::FileSelect) perl(Tk::Pod) perl(Tk::ROText)
20 >
21   %prep
22 < %setup -n %{downloadn}-%{v}
22 > %setup -T -b 0 -n %{downloadn}-%{realversion}
23 >
24   %build
25 < perl Makefile.PL LIB=%i/lib/site_perl/$PERL_VERSION/
25 > %ifos darwin
26 > perl -p -i -e 's/NMEDIT = nmedit/NMEDIT = true/' Makefile.PL
27 > %endif
28 >
29 > perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion -l -m $ORACLE_HOME/demo/demo.mk -h $ORACLE_HOME/include
30   make

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines