[packages/perl-HTML-Template] - updated to 2.95
qboosh
qboosh at pld-linux.org
Tue Jun 9 17:22:06 CEST 2015
commit 0d9a7791ca4d9669d4d7d34e0c6cb53c12a48ca7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jun 9 17:23:20 2015 +0200
- updated to 2.95
perl-HTML-Template.spec | 47 ++++++++++++++++++++++++++++++-----------------
1 file changed, 30 insertions(+), 17 deletions(-)
---
diff --git a/perl-HTML-Template.spec b/perl-HTML-Template.spec
index e6b3e5f..d4e1137 100644
--- a/perl-HTML-Template.spec
+++ b/perl-HTML-Template.spec
@@ -8,16 +8,18 @@
Summary: HTML::Template - Perl module to use HTML templates from CGI scripts
Summary(pl.UTF-8): HTML::Template - moduł Perla do obsługi szablonów HTML w skryptach CGI
Name: perl-HTML-Template
-Version: 2.94
+Version: 2.95
Release: 1
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 7b7683c3672d55fb922734ea1e9ba7e8
+Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 6f08e9631af52e6a5f6e4648b89265fe
URL: https://github.com/mpeters/html-template/
-BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
%if %{with tests}
+BuildRequires: perl(File::Spec) >= 0.82
BuildRequires: perl-Digest-MD5
BuildRequires: perl-IPC-SharedCache
%endif
@@ -28,19 +30,28 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
This module attempts make using HTML templates simple and natural.
It extends standard HTML with a few new HTML-esque tags - <TMPL_VAR>,
-<TMPL_LOOP>, <TMPL_INCLUDE>, <TMPL_IF> and <TMPL_ELSE>. The file written
-with HTML and these new tags is called a template. It is usually saved
-separate from your script - possibly even created by someone else!
+<TMPL_LOOP>, <TMPL_INCLUDE>, <TMPL_IF> and <TMPL_ELSE>. The file
+written with HTML and these new tags is called a template. It is
+usually saved separate from your script - possibly even created by
+someone else!
Using this module you fill in the values for the variables, loops and
-branches declared in the template. This allows you to seperate design -
-the HTML - from the data, which you generate in the Perl script.
+branches declared in the template. This allows you to seperate design
+- the HTML - from the data, which you generate in the Perl script.
%description -l pl.UTF-8
-HTML::Template jest modułem pozwalającym na wykorzystywanie szablonów
-HTML (i nie tylko) w skryptach CGI (a także w dowolnym innym
-oprogramowaniu przy tworzeniu którego zachodzi potrzeba rozdzielenia
-programu od wyglądu danych.
+Ten moduł próbuje uczynić wykorzystywanie szablonów HTML prostym i
+naturalnym.
+
+Rozszerza standardowy HTML o kilka znaczników HTML-opodobnych:
+<TMPL_VAR>, <TMPL_LOOP>, <TMPL_INCLUDE>, <TMPL_IF> oraz <TMPL_ELSE>.
+Plik napisany w HTML-u z użyciem tych nowych znaczników nazywa się
+szablonem. Zwykle jest oddzielony od skryptu - a nawet tworzony przez
+kogoś innego.
+
+Przy użyciu tego modułu wypełnia się wartościami zmienne, pętle oraz
+warunki zadeklarowane w szablonie. Pozwala to oddzielić projekt (HTML)
+od danych generowanych w skrypcie perlowym.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
@@ -58,7 +69,8 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{perl_vendorlib}/%{pdir}/%{pnam}
+# just docs
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/HTML/Template/FAQ.pm
%clean
rm -rf $RPM_BUILD_ROOT
@@ -66,6 +78,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc Changes README templates scripts
-%{perl_vendorlib}/%{pdir}/*.pm
-%dir %{perl_vendorlib}/%{pdir}/%{pnam}
-%{_mandir}/man3/*
+%{perl_vendorlib}/HTML/Template.pm
+%dir %{perl_vendorlib}/HTML/Template
+%{_mandir}/man3/HTML::Template.3pm*
+%{_mandir}/man3/HTML::Template::FAQ.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-HTML-Template.git/commitdiff/0d9a7791ca4d9669d4d7d34e0c6cb53c12a48ca7
More information about the pld-cvs-commit
mailing list