ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/p5-template-toolkit.spec
Revision: 1.10
Committed: Wed Apr 18 23:46:02 2007 UTC (18 years ago) by ratnik
Branch: MAIN
CVS Tags: pe20070428a-ports, pe20070423b-ports, pe20070423a-ports
Changes since 1.9: +2 -0 lines
Log Message:
Changes for building  externals in 64/32 mode: added gcc-wrapper .

File Contents

# Content
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/%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 ## 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
43 make
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 #