1 %include /usr/lib/rpm/macros.perl
4 Summary: Template::Toolkit perl extension
5 Summary(pl): Rozszerzenie perla: Template::Toolkit
6 Name: perl-Template-Toolkit
10 Group: Development/Languages/Perl
11 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
12 Patch0: %{name}-paths.patch
13 BuildRequires: rpm-perlprov >= 3.0.3-16
14 BuildRequires: perl >= 5.6.1
15 BuildRequires: perl-AppConfig
16 BuildRequires: perl-DBI >= 1.14
17 BuildRequires: perl-GD >= 1.32
18 BuildRequires: perl-GD-TextUtil >= 0.80
19 BuildRequires: perl-GD-Graph >= 1.33
20 BuildRequires: perl-GD-Graph3d >= 0.55
21 BuildRequires: perl-Pod-POM >= 0.1
22 BuildRequires: perl-Text-Autoformat >= 1.03
23 BuildRequires: perl-XML-Parser >= 2.23
24 BuildRequires: perl-XML-RSS >= 0.9
25 BuildRequires: perl-XML-XPath >= 1.00
26 BuildRequires: perl-libxml-enno
27 BuildRequires: perl(XML::DOM) >= 1.27
30 Requires: tetex-pdftex
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 The Template Toolkit is a collection of modules which implement a
36 fast, flexible, powerful and extensible template processing system. It
37 was originally designed and remains primarily useful for generating
38 dynamic web content, but it can be used equally well for processing
39 any other kind of text based documents: HTML, XML, POD, PostScript,
42 It can be used as a stand-alone Perl module or embedded within an
43 Apache/mod_perl server for generating highly configurable dynamic web
44 content. A number of Perl scripts are also provided which can greatly
45 simplify the process of creating and managing static web content and
46 other offline document systems.
49 Template Toolkit to zestaw modu³ów z implementacj± szybkiego,
50 elastycznego, potê¿nego i rozszerzalnego systemu przetwarzania
51 wzorców. Oryginalnie zosta³ zaprojektowany i nadal jest u¿ywany
52 g³ównie do generowania dynamicznych stron WWW, ale mo¿e byæ tak¿e
53 u¿yty do przetwarzania dowolnych innych rodzajów dokumentów
54 tekstowych: HTML, XML, POD, PostScript, LaTeX itd.
56 Mo¿e byæ u¿ywany jako samodzielny modu³ Perla, lub wbudowany w serwer
57 Apache/mod_perl do wysoko konfigurowalnego generowania dynamicznych
58 stron WWW. Za³±czonych jest wiele skryptów Perla, które mog± upro¶ciæ
59 proces tworzenia i zarz±dzania statycznymi stronami WWW oraz innymi
60 systemami dokumentów offline.
63 %setup -q -n %{pdir}-%{pnam}-%{version}
67 perl Makefile.PL TT_DBI=n TT_LATEX=y TT_PREFIX=%{_examplesdir}/tt2 TT_IMAGES=%{_examplesdir}/tt2/images TT_ACCEPT=y
71 rm -rf $RPM_BUILD_ROOT
73 %{__make} install DESTDIR=$RPM_BUILD_ROOT
76 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
80 %doc Changes HACKING README TODO
81 %doc %{_examplesdir}/tt2
82 %attr(755,root,root) %{_bindir}/*
83 %{perl_sitearch}/Template.pm
84 %{perl_sitearch}/Template
85 %{perl_sitearch}/auto/Template