]> git.pld-linux.org Git - packages/perl-Template-Toolkit.git/blob - perl-Template-Toolkit.spec
- new %%doc and cosmetics
[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:        1
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-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
27 Requires:       tetex-dvips
28 Requires:       tetex-latex
29 Requires:       tetex-pdftex
30 BuildArch:      noarch
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
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,
39 LaTeX, and so on.
40
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.
46
47 %description -l pl
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.
54
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.
60
61 %prep
62 %setup -q -n %{pdir}-%{pnam}-%{version}
63 %patch0 -p1
64
65 %build
66 perl Makefile.PL TT_DBI=n TT_LATEX=y TT_PREFIX=%{_examplesdir}/tt2 TT_IMAGES=%{_examplesdir}/tt2/images TT_ACCEPT=y
67 %{__make}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71
72 %{__make} install DESTDIR=$RPM_BUILD_ROOT
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
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
85 %{_mandir}/man[13]/*
This page took 0.267782 seconds and 3 git commands to generate.