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.4 by lat, Mon May 8 12:24:49 2006 UTC vs.
Revision 1.15 by elmer, Fri Nov 2 17:01:00 2007 UTC

# Line 1 | Line 1
1 < ### RPM external p5-template-toolkit 2.14
1 > ### RPM external p5-template-toolkit 2.15-CMS18
2   ## INITENV +PATH PATH %{i}/bin
3 < ## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion/%perlarch
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: perl-virtual p5-dbi
6   %define downloadn Template-Toolkit
7  
8   Provides: perl(AppConfig)
# Line 27 | Line 26 | 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-%v.tar.gz
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 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
39 >                 TT_EXAMPLES=n \
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