ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/p5-dbi.spec
(Generate patch)

Comparing COMP/CMSDIST/p5-dbi.spec (file contents):
Revision 1.7 by elmer, Tue Jun 6 22:07:52 2006 UTC vs.
Revision 1.14 by eulisse, Wed Jul 18 17:31:58 2007 UTC

# Line 1 | Line 1
1 < ### RPM external p5-dbi 1.50
2 < ## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion/%perlarch
1 > ### RPM external p5-dbi 1.50-CMS3
2 > ## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion
3   %define perlversion %(perl -e 'printf "%%vd", $^V')
4   %define perlarch %(perl -MConfig -e 'print $Config{archname}')
5   %define downloadn DBI
# Line 7 | Line 7
7   Provides: perl(RPC::PlClient)
8   Provides: perl(RPC::PlServer)
9   Provides: perl(Win32::ODBC)
10 + Provides: libc.so.6(GLIBC_2.3)(64bit)
11  
12 < Source:  http://cpan.mirror.solnet.ch/authors/id/T/TI/TIMB/%{downloadn}-%{v}.tar.gz
12 > Source:  http://cpan.mirror.solnet.ch/authors/id/T/TI/TIMB/%{downloadn}-%{realversion}.tar.gz
13   %prep
14 < %setup -n %downloadn-%v
14 > %setup -n %downloadn-%{realversion}
15   %build
16   perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion
17   make
# Line 18 | Line 19 | perl -p -i -e 's|^#!.*perl|#!/usr/bin/en
19   perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' blib/script/dbiproxy
20   perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' dbiprof
21   perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' dbiproxy
22 +
23 + case %{cmsos} in
24 +    slc4_ia32)
25 +    if ldd /usr/bin/gcc | grep -q /lib64/
26 +    then
27 +        make install
28 +        mv %i/lib/site_perl/%perlversion/x86_64-linux-thread-multi  %i/lib/site_perl/%perlversion/i386-linux-thread-multi
29 +        make clean
30 +        export PATH=/usr/bin/:$PATH
31 +        export GCC_EXEC_PREFIX=/usr/lib/gcc/
32 +        perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion
33 +        make
34 +        perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' blib/script/dbiprof
35 +        perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' blib/script/dbiproxy
36 +        perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' dbiprof
37 +        perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' dbiproxy
38 +    fi;;
39 +    *)
40 +    ;;
41 + esac
42 + #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines