ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/p5-template-toolkit.spec
Revision: 1.8
Committed: Fri Jun 16 14:19:01 2006 UTC (18 years, 10 months ago) by eulisse
Branch: MAIN
Changes since 1.7: +1 -1 lines
Log Message:
removing perlarch.

File Contents

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