3 %bcond_without tests # do not perform "make test"
7 Summary: HTML::Template - Perl module to use HTML templates from CGI scripts
8 Summary(pl.UTF-8): HTML::Template - moduł Perla do obsługi szablonów HTML w skryptach CGI
9 Name: perl-HTML-Template
12 License: GPL v1+ 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: ee5f4a78102d2ffe089e047d2dbb0ff8
16 URL: https://github.com/mpeters/html-template/
17 BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(File::Spec) >= 0.82
22 BuildRequires: perl-Digest-MD5
23 BuildRequires: perl-IPC-SharedCache
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This module attempts make using HTML templates simple and natural.
31 It extends standard HTML with a few new HTML-esque tags - <TMPL_VAR>,
32 <TMPL_LOOP>, <TMPL_INCLUDE>, <TMPL_IF> and <TMPL_ELSE>. The file
33 written with HTML and these new tags is called a template. It is
34 usually saved separate from your script - possibly even created by
37 Using this module you fill in the values for the variables, loops and
38 branches declared in the template. This allows you to seperate design
39 - the HTML - from the data, which you generate in the Perl script.
41 %description -l pl.UTF-8
42 Ten moduł próbuje uczynić wykorzystywanie szablonów HTML prostym i
45 Rozszerza standardowy HTML o kilka znaczników HTML-opodobnych:
46 <TMPL_VAR>, <TMPL_LOOP>, <TMPL_INCLUDE>, <TMPL_IF> oraz <TMPL_ELSE>.
47 Plik napisany w HTML-u z użyciem tych nowych znaczników nazywa się
48 szablonem. Zwykle jest oddzielony od skryptu - a nawet tworzony przez
51 Przy użyciu tego modułu wypełnia się wartościami zmienne, pętle oraz
52 warunki zadeklarowane w szablonie. Pozwala to oddzielić projekt (HTML)
53 od danych generowanych w skrypcie perlowym.
56 %setup -q -n %{pdir}-%{pnam}-%{version}
59 %{__perl} Makefile.PL \
63 %{?with_tests:TEST_SHARED_MEMORY=1 TEST_FILE_CACHE=1 %{__make} test}
66 rm -rf $RPM_BUILD_ROOT
69 DESTDIR=$RPM_BUILD_ROOT
72 %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/HTML/Template/FAQ.pm
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
79 %doc Changes README templates scripts
80 %{perl_vendorlib}/HTML/Template.pm
81 %dir %{perl_vendorlib}/HTML/Template
82 %{_mandir}/man3/HTML::Template.3pm*
83 %{_mandir}/man3/HTML::Template::FAQ.3pm*