3 # _without_autodeps - don't BR packages needed only for resolving deps
4 # _with_tests - perform "make test"
6 %include /usr/lib/rpm/macros.perl
9 Summary: Fast, powerful and easily extensible template processing system
10 Summary(pl): Rozbudowany i wydajny system szablonów
11 Name: perl-Template-Toolkit
15 Group: Development/Languages/Perl
16 #Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 Source0: http://www.template-toolkit.com/download/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: a69cc8947d2162ec898708fd3ff44b51
19 Patch0: %{name}-paths.patch
20 Patch1: %{name}-image.patch
21 URL: http://www.template-toolkit.org
22 BuildRequires: perl-devel >= 5.6.1
23 BuildRequires: perl(File::Spec) >= 0.6
24 BuildRequires: perl-AppConfig >= 1.52
25 %if 0%{!?_without_autodeps:1}%{?_with_tests:1}
26 BuildRequires: perl-DBI >= 1.14
27 BuildRequires: perl-GD >= 1.32
28 BuildRequires: perl-GD-Graph >= 1.33
29 BuildRequires: perl-GD-Graph3d >= 0.55
30 BuildRequires: perl-GD-TextUtil >= 0.80
31 BuildRequires: perl-Pod-POM >= 0.1
32 BuildRequires: perl-Text-Autoformat >= 1.03
33 BuildRequires: perl-XML-Parser >= 2.23
34 BuildRequires: perl-XML-RSS >= 0.9
35 BuildRequires: perl-XML-Simple
36 BuildRequires: perl-XML-XPath >= 1.00
37 BuildRequires: perl-libxml-enno
38 BuildRequires: perl(XML::DOM) >= 1.27
40 BuildRequires: rpm-perlprov >= 4.1-13
43 Requires: tetex-pdftex
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 The Template Toolkit is a collection of modules which implement a
48 fast, flexible, powerful and extensible template processing system. It
49 was originally designed and remains primarily useful for generating
50 dynamic web content, but it can be used equally well for processing
51 any other kind of text based documents: HTML, XML, POD, PostScript,
54 It can be used as a stand-alone Perl module or embedded within an
55 Apache/mod_perl server for generating highly configurable dynamic web
56 content. A number of Perl scripts are also provided which can greatly
57 simplify the process of creating and managing static web content and
58 other offline document systems.
61 Template Toolkit to zestaw modu³ów z implementacj± szybkiego,
62 elastycznego, potê¿nego i rozszerzalnego systemu przetwarzania
63 wzorców. Oryginalnie zosta³ zaprojektowany i nadal jest u¿ywany
64 g³ównie do generowania dynamicznych stron WWW, ale mo¿e byæ tak¿e
65 u¿yty do przetwarzania dowolnych innych rodzajów dokumentów
66 tekstowych: HTML, XML, POD, PostScript, LaTeX itd.
68 Mo¿e byæ u¿ywany jako samodzielny modu³ Perla, lub wbudowany w serwer
69 Apache/mod_perl do wysoko konfigurowalnego generowania dynamicznych
70 stron WWW. Za³±czonych jest wiele skryptów Perla, które mog± upro¶ciæ
71 proces tworzenia i zarz±dzania statycznymi stronami WWW oraz innymi
72 systemami dokumentów offline.
75 Summary: Examples for Template Toolkit
76 Summary(pl): Przyk³ady zastosowania Template Toolkit
77 Group: Development/Languages/Perl
80 Examples for Template Toolkit
82 %description examples -l pl
83 Przyk³ady zastosowania Template Toolkit
86 %setup -q -n %{pdir}-%{pnam}-%{version}
91 %{__perl} Makefile.PL \
95 TT_PREFIX=%{_examplesdir}/%{name}-%{version} \
96 TT_IMAGES=%{_examplesdir}/%{name}-%{version}/images \
99 %{__make} OPTIMIZE="%{rpmcflags}"
101 %{?_with_tests:%{__make} test}
102 # GD tests fail as in perl-GD (2.01)
103 # possible explanation - see perl-GD.spec
106 rm -rf $RPM_BUILD_ROOT
108 %{__make} install DESTDIR=$RPM_BUILD_ROOT
111 rm -rf $RPM_BUILD_ROOT
114 %defattr(644,root,root,755)
115 %doc Changes HACKING README TODO
116 %attr(755,root,root) %{_bindir}/*
117 %{perl_vendorarch}/Template.pm
118 %{perl_vendorarch}/Template
119 %dir %{perl_vendorarch}/auto/Template
120 %dir %{perl_vendorarch}/auto/Template/Stash
121 %dir %{perl_vendorarch}/auto/Template/Stash/XS
122 %{perl_vendorarch}/auto/Template/Stash/XS/*.bs
123 %attr(755,root,root) %{perl_vendorarch}/auto/Template/Stash/XS/*.so
127 %defattr(644,root,root,755)
128 %{_examplesdir}/%{name}-%{version}