1 |
|
### RPM external p5-dbi 1.50 |
2 |
< |
## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion/%perlarch |
2 |
> |
Requires: gcc-wrapper |
3 |
> |
## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion |
4 |
|
%define perlversion %(perl -e 'printf "%%vd", $^V') |
5 |
|
%define perlarch %(perl -MConfig -e 'print $Config{archname}') |
6 |
|
%define downloadn DBI |
13 |
|
%prep |
14 |
|
%setup -n %downloadn-%v |
15 |
|
%build |
16 |
+ |
## IMPORT gcc-wrapper |
17 |
|
perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion |
18 |
|
make |
19 |
|
perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' blib/script/dbiprof |
20 |
|
perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' blib/script/dbiproxy |
21 |
|
perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' dbiprof |
22 |
|
perl -p -i -e 's|^#!.*perl|#!/usr/bin/env perl|' dbiproxy |
23 |
+ |
# |