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-Text-Autoformat >= 1.03
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-XML-Parser >= 2.23
23 BuildRequires: perl-XML-RSS >= 0.9
24 BuildRequires: perl-XML-XPath >= 1.00
25 BuildRequires: perl-libxml-enno
26 BuildRequires: perl(XML::DOM) >= 1.27
29 Requires: tetex-pdftex
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 The Template Toolkit is a collection of modules which implement a
35 fast, flexible, powerful and extensible template processing system.
36 It was originally designed and remains primarily useful for generating
37 dynamic web content, but it can be used equally well for processing
38 any other kind of text based documents: HTML, XML, POD, PostScript,
41 It can be used as a stand-alone Perl module or embedded within an
42 Apache/mod_perl server for generating highly configurable dynamic web
43 content. A number of Perl scripts are also provided which can greatly
44 simplify the process of creating and managing static web content and
45 other offline document systems.
48 Template Toolkit to zestaw modu³ów z implementacj± szybkiego,
49 elastycznego, potê¿nego i rozszerzalnego systemu przetwarzania
50 wzorców. Oryginalnie zosta³ zaprojektowany i nadal jest u¿ywany
51 g³ównie do generowania dynamicznych stron WWW, ale mo¿e byæ tak¿e
52 u¿yty do przetwarzania dowolnych innych rodzajów dokumentów
53 tekstowych: HTML, XML, POD, PostScript, LaTeX itd.
55 Mo¿e byæ u¿ywany jako samodzielny modu³ Perla, lub wbudowany w serwer
56 Apache/mod_perl do wysoko konfigurowalnego generowania dynamicznych
57 stron WWW. Za³±czonych jest wiele skryptów Perla, które mog± upro¶ciæ
58 proces tworzenia i zarz±dzania statycznymi stronami WWW oraz innymi
59 systemami dokumentów offline.
62 %setup -q -n %{pdir}-%{pnam}-%{version}
66 perl Makefile.PL TT_DBI=n TT_LATEX=y TT_PREFIX=%{_examplesdir}/tt2 TT_IMAGES=%{_examplesdir}/tt2/images TT_ACCEPT=y
70 rm -rf $RPM_BUILD_ROOT
72 %{__make} install DESTDIR=$RPM_BUILD_ROOT
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
79 %doc Changes HACKING README TODO
80 %doc %{_examplesdir}/tt2
81 %attr(755,root,root) %{_bindir}/*
82 %{perl_sitearch}/Template.pm
83 %{perl_sitearch}/Template
84 %{perl_sitearch}/auto/Template