- updated to 0.9504

- bugfix release: segfault in EXPR log subroutine.
      thanks to Robert Hanniger and Mike Shogin
    - bugfix release: segfault for string operetions
      with undefined variables. Thanks to Mike Shogin.
    - log file is not truncated now in tmplpro_set_log_file.
    - freed memory access error fixed.
    - perl: CommonTest.pm hidden from installation
    - tests: added generic json-packed test data
    - bugfix in string comparision
    - spelling fix by gregor herrmann <gregoa@debian.org>

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Template-Pro?expand=0&rev=8
This commit is contained in:
Stephan Kulow
2011-04-26 18:18:09 +00:00
committed by Git OBS Bridge
parent 99cad5188a
commit 7e86c798a8
4 changed files with 79 additions and 56 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ac8eeb5a94bc91a493d03dca09448d8bdb8e91021c03f3a22586d7edd307f8fb
size 133007

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7dce9d5abca5c0bf26b134e1c05a157767d3b1582862753d2ad7ca6e89c825a5
size 170666

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Tue Apr 26 18:12:11 UTC 2011 - coolo@opensuse.org
- updated to 0.9504
- bugfix release: segfault in EXPR log subroutine.
thanks to Robert Hanniger and Mike Shogin
- bugfix release: segfault for string operetions
with undefined variables. Thanks to Mike Shogin.
- log file is not truncated now in tmplpro_set_log_file.
- freed memory access error fixed.
- perl: CommonTest.pm hidden from installation
- tests: added generic json-packed test data
- bugfix in string comparision
- spelling fix by gregor herrmann <gregoa@debian.org>
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 1 13:32:54 UTC 2010 - coolo@novell.com Wed Dec 1 13:32:54 UTC 2010 - coolo@novell.com

View File

@@ -1,82 +1,90 @@
# #
# spec file for package perl-HTML-Template-Pro # spec file for package perl-HTML-Template-Pro (Version 0.9504)
# #
# This file and all modifications and additions to the pristine # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# package are under the same license as the package itself.
# #
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-HTML-Template-Pro Name: perl-HTML-Template-Pro
%define real_name HTML-Template-Pro Version: 0.9504
Release: 1
License: GPL+ or Artistic
%define cpan_name HTML-Template-Pro
Summary: Perl/XS module to use HTML Templates from CGI scripts Summary: Perl/XS module to use HTML Templates from CGI scripts
Url: http://search.cpan.org/perldoc?HTML::Template::Pro Url: http://search.cpan.org/dist/HTML-Template-Pro/
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
License: Artistic License Source: http://www.cpan.org/authors/id/V/VI/VIY/%{cpan_name}-%{version}.tar.gz
Version: 0.95
Release: 0
Source: %{real_name}-%{version}.tar.bz2
BuildRequires: perl-Test-Pod
BuildRequires: perl-macros
BuildRequires: pcre-devel
BuildRequires: perl(JSON)
Requires: perl(JSON)
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Path) >= 2
BuildRequires: perl(File::Spec)
BuildRequires: perl(JSON) >= 2
BuildRequires: perl(Test::More)
Requires: perl(File::Path) >= 2
Requires: perl(File::Spec)
Requires: perl(JSON) >= 2
Requires: perl(Test::More)
%{perl_requires} %{perl_requires}
%description %description
Original HTML::Template is written by Sam Tregar, with contributions of many Original HTML::Template is written by Sam Tregar, sam@tregar.com with
people mentioned there. Their efforts caused HTML::Template to be mature html contributions of many people mentioned there. Their efforts caused
tempate engine which separate perl code and html design. Yet powerful, HTML::Template to be mature html tempate engine which separate perl code
HTML::Template is slow, especially if mod_perl isn't available or in case of and html design. Yet powerful, HTML::Template is slow, especially if
disk usage and memory limitations. mod_perl isn't available or in case of disk usage and memory limitations.
HTML::Template::Pro is a fast lightweight C/Perl+XS reimplementation of HTML::Template::Pro is a fast lightweight C/Perl+XS reimplementation of
HTML::Template (as of 2.8) and HTML::Template::Expr (as of 0.0.5). It is not HTML::Template (as of 2.9) and HTML::Template::Expr (as of 0.0.7). It is
intended to be a complete replacement, but to be a fast implementation of not intended to be a complete replacement, but to be a fast implementation
HTML::Template if you don't need quering, the extended facility of of HTML::Template if you don't need querying, the extended facility of
HTML::Template. Designed for heavy upload, resource limitations, abcence of HTML::Template. Designed for heavy upload, resource limitations, abcence of
mod_perl. mod_perl.
HTML::Template::Pro has complete support of filters and HTML::Template::Expr's HTML::Template::Pro has complete support of filters and
tag EXPR="<expression>", including user-defined functions. HTML::Template::Expr's tag EXPR="<expression>", including user-defined
functions and construction <TMPL_INCLUDE EXPR="...">.
HTML::Template work cycle uses 2 steps. First, it loads and parse template. HTML::Template work cycle uses 2 steps. First, it loads and parse template.
Then it accepts param() calls until you call output(). output() is its second Then it accepts param() calls until you call output(). output() is its
phase where it produces a page from the parsed tree of template, obtained in second phase where it produces a page from the parsed tree of template,
the 1st step. obtained in the 1st step.
HTML::Template::Pro loads, parse and outputs template on fly, when you call HTML::Template::Pro loads, parse and outputs template on fly, when you call
$tmpl->output(), in one pass. The corresponding code is written in C and glued $tmpl->output(), in one pass. The corresponding code is written in C and
to Perl using Perl+XS. As a result, comparing to HTML::Template in ordinary glued to Perl using Perl+XS. As a result, comparing to HTML::Template in
calls, it runs 10-25 times faster. Comparing to HTML::Template with all caching ordinary calls, it runs 10-25 times faster. Comparing to HTML::Template
enabled under mod_perl, it still 1-3 times faster. At that HTML::Template with all caching enabled under mod_perl, it still 1-3 times faster. At that
caching requires considerable amount of memory (per process, shareable, or on HTML::Template caching requires considerable amount of memory (per process,
disk) to be permanently filled with parsed trees, whereas HTML::Template::Pro shareable, or on disk) to be permanently filled with parsed trees, whereas
don't consumes memory for caches and use mmap() for reading templates on disk. HTML::Template::Pro don't consumes memory for caches and use mmap() for
reading templates on disk.
Introduction to HTML::Template and syntax of template files is described in Introduction to HTML::Template and syntax of template files is described in
HTML::Template::SYNTAX. Perl interface of HTML::Template and the HTML::Template::SYNTAX manpage. Perl interface of HTML::Template and
HTML::Template::Pro is described in HTML::Template::PerlInterface. HTML::Template::Pro is described in the HTML::Template::PerlInterface
manpage.
Author:
-------
I. Vlasenko, <viy@altlinux.org>
Bruni Emiliano, <info@ebruni.it>
Stanislav Yadykin, <tosick at altlinux.ru>
Viacheslav Sheveliov <slavash at aha.ru>
%prep %prep
%setup -n %{real_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%build %build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PCRE=1 %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?jobs:-j%jobs} %{__make} %{?_smp_mflags}
%check %check
make test %{__make} test
%install %install
%perl_make_install %perl_make_install
@@ -84,10 +92,10 @@ make test
%perl_gen_filelist %perl_gen_filelist
%clean %clean
rm -rf %{buildroot} %{__rm} -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-, root, root) %defattr(-,root,root,755)
%doc README README.ru FAQ TODO LGPL ARTISTIC Changes %doc ARTISTIC benchmark.pl.t builtin_findfile.inc calc.inc callback_stubs.inc Changes cmp_expr.t exprpstr.inc exprtool.inc expr.y FAQ LGPL loadfile.inc loopvar.inc perl-HTML-Template-Pro.spec pparam2proparam proscope.inc prostate.inc pstrutils.inc README README.ru README.win32 tags.inc tagstack.inc test_crlf.out TODO
%changelog %changelog