ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/p5-template-toolkit.spec
(Generate patch)

Comparing COMP/CMSDIST/p5-template-toolkit.spec (file contents):
Revision 1.1 by eulisse, Wed Mar 15 17:57:19 2006 UTC vs.
Revision 1.14 by elmer, Wed Jun 27 13:34:02 2007 UTC

# Line 1 | Line 1
1 < ### RPM external p5-template-toolkit 2.14
1 > ### RPM external p5-template-toolkit 2.15-CMS3
2   ## INITENV +PATH PATH %{i}/bin
3 < ## INITENV +PATH PERL5LIB %{i}/lib/site_perl/$PERL_VERSION/%perlarch
4 < Requires: perl
5 < %define perlarch $($PERL_ROOT/bin/perl -e 'use Config; print $Config{archname}')
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 Template-Toolkit
7 < Source: http://www.cpan.org/modules/by-module/Template/%downloadn-%v.tar.gz
7 >
8 > Provides: perl(AppConfig)
9 > Provides: perl(GD)
10 > Provides: perl(GD::Graph::area)
11 > Provides: perl(GD::Graph::bars)
12 > Provides: perl(GD::Graph::bars3d)
13 > Provides: perl(GD::Graph::lines)
14 > Provides: perl(GD::Graph::lines3d)
15 > Provides: perl(GD::Graph::linespoints)
16 > Provides: perl(GD::Graph::mixed)
17 > Provides: perl(GD::Graph::pie)
18 > Provides: perl(GD::Graph::pie3d)
19 > Provides: perl(GD::Graph::points)
20 > Provides: perl(GD::Text)
21 > Provides: perl(GD::Text::Align)
22 > Provides: perl(GD::Text::Wrap)
23 > Provides: perl(Pod::POM)
24 > Provides: perl(Text::Autoformat)
25 > Provides: perl(XML::DOM)
26 > Provides: perl(XML::RSS)
27 > Provides: perl(XML::Simple)
28 > Provides: perl(XML::XPath)
29 > Source: http://www.cpan.org/modules/by-module/Template/%downloadn-%{realversion}.tar.gz
30  
31   %prep
32 < %setup -n %{downloadn}-%{v}
32 > %setup -n %{downloadn}-%{realversion}
33   %build
34 < perl Makefile.PL TT_LIB=%{i}/lib/site_perl/$PERL_VERSION \
34 > perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion \
35 >                 TT_LIB=%{i}/lib/site_perl/%perlversion \
36                   TT_PREFIX=%{i} \
37                   TT_ACCEPT=y \
38                   TT_DOCS=n \
39                   TT_EXAMPLES=n \
40 <                 LIB=%{i}/lib/site_perl/$PERL_VERSION \
41 <                 PREFIX=%{i}
40 >                 TT_SPLASH=n \
41 >                 TT_DBI=n
42 > perl -p -i -e 's!install :: (.*) tt2_splash!install :: $1!' Makefile
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 > case %{cmsos} in
47 >    slc4_ia32)
48 >    if ldd /usr/bin/gcc | grep -q /lib64/
49 >    then
50 >        make install
51 >        mv %i/lib/site_perl/%perlversion/x86_64-linux-thread-multi  %i/lib/site_perl/%perlversion/i386-linux-thread-multi
52 >        make clean
53 >        export PATH=/usr/bin/:$PATH
54 >        export GCC_EXEC_PREFIX=/usr/lib/gcc/
55 >        perl Makefile.PL PREFIX=%i LIB=%i/lib/site_perl/%perlversion \
56 >                         TT_LIB=%{i}/lib/site_perl/%perlversion \
57 >                         TT_PREFIX=%{i} \
58 >                         TT_ACCEPT=y \
59 >                         TT_DOCS=n \
60 >                         TT_EXAMPLES=n \
61 >                         TT_SPLASH=n \
62 >                         TT_DBI=n
63 >        perl -p -i -e 's!install :: (.*) tt2_splash!install :: $1!' Makefile
64 >        make
65 >        perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' blib/script/tpage
66 >        perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' blib/script/ttree
67 >    fi;;
68 >    *)
69 >    ;;
70 >    esac
71 >
72   %install
73   make install

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines