1 |
|
### RPM external p5-libwww-perl 1.41 |
2 |
< |
## INITENV +PATH PERL5LIB $P5_LIBWWW_PERL_ROOT/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 |
3 |
> |
%define perlversion %(perl -e 'printf "%%vd", $^V') |
4 |
> |
%define perlarch %(perl -MConfig -e 'print $Config{archname}') |
5 |
|
%define downloadn libwww-perl |
6 |
|
%define downloadv 5.805 |
7 |
< |
Requires: perl expat |
7 |
> |
|
8 |
> |
Requires: expat p5-uri |
9 |
> |
|
10 |
> |
## FIXME: we fake the existance of these to remove rpm complaining about needing it. |
11 |
> |
Provides: perl(Authen::NTLM) |
12 |
> |
Provides: perl(HTML::Entities) |
13 |
> |
Provides: perl(HTTP::GHTTP) |
14 |
> |
Provides: perl(Win32) |
15 |
> |
|
16 |
|
Source: http://cpan.mirror.solnet.ch/authors/id/G/GA/GAAS/%{downloadn}-%{downloadv}.tar.gz |
17 |
|
%prep |
18 |
|
%setup -n %downloadn-%downloadv |
19 |
|
%build |
20 |
|
which perl |
21 |
< |
perl Makefile.PL LIB=%{i}/lib/site_perl/$PERL_VERSION/%perlarch |
21 |
> |
perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion |
22 |
|
make |
23 |
|
%install |
24 |
|
make install |
25 |
+ |
# |