]> git.pld-linux.org Git - packages/perl-Template-Toolkit.git/blob - perl-Template-Toolkit.spec
- BR: perl-AppConfig
[packages/perl-Template-Toolkit.git] / perl-Template-Toolkit.spec
1 %include        /usr/lib/rpm/macros.perl
2 %define pdir    Template
3 %define pnam    Toolkit
4 Summary:        Template::Toolkit perl extension
5 Summary(pl):    Rozszerzenie perla: Template::Toolkit
6 Name:           perl-Template-Toolkit
7 Version:        2.07
8 Release:        2
9 License:        GPL
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
28 Requires:       tetex-dvips
29 Requires:       tetex-latex
30 Requires:       tetex-pdftex
31 BuildArch:      noarch
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
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,
40 LaTeX, and so on.
41
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.
47
48 %description -l pl
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.
55
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.
61
62 %prep
63 %setup -q -n %{pdir}-%{pnam}-%{version}
64 %patch0 -p1
65
66 %build
67 perl Makefile.PL TT_DBI=n TT_LATEX=y TT_PREFIX=%{_examplesdir}/tt2 TT_IMAGES=%{_examplesdir}/tt2/images TT_ACCEPT=y
68 %{__make}
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72
73 %{__make} install DESTDIR=$RPM_BUILD_ROOT
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
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
86 %{_mandir}/man[13]/*
This page took 0.035866 seconds and 3 git commands to generate.