1 |
|
### RPM external p5-template-toolkit 2.14 |
2 |
+ |
Requires: gcc-wrapper |
3 |
|
## INITENV +PATH PATH %{i}/bin |
4 |
< |
## INITENV +PATH PERL5LIB %{i}/lib/site_perl/$PERL_VERSION/%perlarch |
5 |
< |
Requires: perl |
6 |
< |
%define perlarch $($PERL_ROOT/bin/perl -e 'use Config; print $Config{archname}') |
4 |
> |
## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion |
5 |
> |
%define perlversion %(perl -e 'printf "%%vd", $^V') |
6 |
> |
%define perlarch %(perl -MConfig -e 'print $Config{archname}') |
7 |
> |
Requires: p5-dbi |
8 |
|
%define downloadn Template-Toolkit |
9 |
+ |
|
10 |
+ |
Provides: perl(AppConfig) |
11 |
+ |
Provides: perl(GD) |
12 |
+ |
Provides: perl(GD::Graph::area) |
13 |
+ |
Provides: perl(GD::Graph::bars) |
14 |
+ |
Provides: perl(GD::Graph::bars3d) |
15 |
+ |
Provides: perl(GD::Graph::lines) |
16 |
+ |
Provides: perl(GD::Graph::lines3d) |
17 |
+ |
Provides: perl(GD::Graph::linespoints) |
18 |
+ |
Provides: perl(GD::Graph::mixed) |
19 |
+ |
Provides: perl(GD::Graph::pie) |
20 |
+ |
Provides: perl(GD::Graph::pie3d) |
21 |
+ |
Provides: perl(GD::Graph::points) |
22 |
+ |
Provides: perl(GD::Text) |
23 |
+ |
Provides: perl(GD::Text::Align) |
24 |
+ |
Provides: perl(GD::Text::Wrap) |
25 |
+ |
Provides: perl(Pod::POM) |
26 |
+ |
Provides: perl(Text::Autoformat) |
27 |
+ |
Provides: perl(XML::DOM) |
28 |
+ |
Provides: perl(XML::RSS) |
29 |
+ |
Provides: perl(XML::Simple) |
30 |
+ |
Provides: perl(XML::XPath) |
31 |
|
Source: http://www.cpan.org/modules/by-module/Template/%downloadn-%v.tar.gz |
32 |
|
|
33 |
|
%prep |
34 |
|
%setup -n %{downloadn}-%{v} |
35 |
|
%build |
36 |
< |
perl Makefile.PL TT_LIB=%{i}/lib/site_perl/$PERL_VERSION \ |
36 |
> |
## IMPORT gcc-wrapper |
37 |
> |
perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion \ |
38 |
> |
TT_LIB=%{i}/lib/site_perl/%perlversion \ |
39 |
|
TT_PREFIX=%{i} \ |
40 |
|
TT_ACCEPT=y \ |
41 |
|
TT_DOCS=n \ |
42 |
< |
TT_EXAMPLES=n \ |
17 |
< |
LIB=%{i}/lib/site_perl/$PERL_VERSION \ |
18 |
< |
PREFIX=%{i} |
42 |
> |
TT_EXAMPLES=n |
43 |
|
make |
44 |
< |
make test |
44 |
> |
perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' blib/script/tpage |
45 |
> |
perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' blib/script/ttree |
46 |
> |
|
47 |
|
%install |
48 |
|
make install |
49 |
+ |
# |
50 |
+ |
# |