3 %bcond_without tests # do not perform "make test"
6 %define pnam Template-Extension
7 Summary: HTML::Template::Extension - Module support extension for HTML::Template
8 Summary(pl.UTF-8): HTML::Template::Extension - rozszerzenie obsługujące moduły dla HTML::Template
9 Name: perl-HTML-Template-Extension
12 License: GPL v2+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 494a89334e9c00567930669e35972a34
16 URL: http://search.cpan.org/dist/HTML-Template-Extension/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-HTML-Parser
21 BuildRequires: perl-HTML-Template >= 2.1
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module extends HTML::Template to easily support methods and tags
28 not implemented in parent module. Piece of code needed to add new tags
29 syntax and new functionality are called plugins. All plugins can be
30 dynamically loaded for supporting needed syntax and functionality.
32 %description -l pl.UTF-8
33 Ten moduł rozszerza klasę HTML::Template tak, aby mogła łatwo
34 obsługiwać metody i znaczniki nie zaimplementowane w macierzystym
35 module. Kawałki kodu potrzebne do dodania składni nowych znaczników i
36 nowej funkcjonalności są nazywane wtyczkami. Wszystkie wtyczki mogą
37 być dynamicznie wczytywane w celu obsługi wymaganej składni i
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc Changes README TODO DISCLAIMER
62 %{perl_vendorlib}/HTML/Template/*.pm
63 %dir %{perl_vendorlib}/HTML/Template/Extension
64 %{perl_vendorlib}/HTML/Template/Extension/*.pm