3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: HTML::Template - Perl module to use HTML templates from CGI scripts
9 Summary(pl): HTML::Template - modu³ Perla do obs³ugi szablonów HTML w skryptach CGI
10 Name: perl-HTML-Template
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: dbd1c0c23fe323123deb9212c82a6f2d
17 URL: http://html-template.sourceforge.net/
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: perl-Digest-MD5
22 BuildRequires: perl-IPC-SharedCache
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module attempts make using HTML templates simple and natural.
30 It extends standard HTML with a few new HTML-esque tags - <TMPL_VAR>,
31 <TMPL_LOOP>, <TMPL_INCLUDE>, <TMPL_IF> and <TMPL_ELSE>. The file written
32 with HTML and these new tags is called a template. It is usually saved
33 separate from your script - possibly even created by someone else!
35 Using this module you fill in the values for the variables, loops and
36 branches declared in the template. This allows you to seperate design -
37 the HTML - from the data, which you generate in the Perl script.
40 HTML::Template jest modu³em pozwalaj±cym na wykorzystywanie szablonów
41 HTML (i nie tylko) w skryptach CGI (a tak¿e w dowolnym innym
42 oprogramowaniu przy tworzeniu którego zachodzi potrzeba rozdzielenia
43 programu od wygl±du danych.
46 %setup -q -n %{pdir}-%{pnam}-%{version}
49 %{__perl} Makefile.PL \
53 %{?with_tests:TEST_SHARED_MEMORY=1 TEST_FILE_CACHE=1 %{__make} test}
56 rm -rf $RPM_BUILD_ROOT
59 DESTDIR=$RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{perl_vendorlib}/%{pdir}/%{pnam}
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
68 %doc Changes README ANNOUNCE FAQ templates scripts
69 %{perl_vendorlib}/%{pdir}/*.pm
70 %dir %{perl_vendorlib}/%{pdir}/%{pnam}