1 |
|
### RPM external p5-dbi 1.50 |
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/%perlarch |
3 |
> |
%define perlversion %(perl -e 'printf "%%vd", $^V') |
4 |
> |
%define perlarch %(perl -MConfig -e 'print $Config{archname}') |
5 |
|
%define downloadn DBI |
6 |
< |
Requires: perl |
6 |
> |
## Let's fake the provides of windows stuff for the time being. |
7 |
> |
Provides: perl(RPC::PlClient) |
8 |
> |
Provides: perl(RPC::PlServer) |
9 |
> |
Provides: perl(Win32::ODBC) |
10 |
> |
|
11 |
|
Source: http://cpan.mirror.solnet.ch/authors/id/T/TI/TIMB/%{downloadn}-%{v}.tar.gz |
12 |
|
%prep |
13 |
|
%setup -n %downloadn-%v |
14 |
|
%build |
15 |
< |
perl Makefile.PL LIB=%i/lib/site_perl/$PERL_VERSION |
15 |
> |
perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion |
16 |
|
make |
17 |
+ |
perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' blib/script/dbiprof |
18 |
+ |
perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' blib/script/dbiproxy |
19 |
+ |
perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' dbiprof |
20 |
+ |
perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' dbiproxy |