Compare commits

...

10 Commits

Author SHA256 Message Date
d7491b7ac8 - Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Template-Pro?expand=0&rev=17
2024-03-12 17:15:59 +00:00
0255d6556c Accepting request 947252 from devel:languages:perl:autoupdate
- updated to 0.9524
   see /usr/share/doc/packages/perl-HTML-Template-Pro/Changes
  0.9524 
  	- fixed misprint in error message
  	- closed rt.cpan.org #140731 - 'Misprint'

OBS-URL: https://build.opensuse.org/request/show/947252
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Template-Pro?expand=0&rev=16
2022-01-20 10:23:39 +00:00
2431fa634a Accepting request 943077 from devel:languages:perl:autoupdate
- updated to 0.9523
   see /usr/share/doc/packages/perl-HTML-Template-Pro/Changes
  0.9523 
  	- fixed memory leak in perl wrapper code. libhtmltmplpro
  	  was not affected by it.
  	- closed rt.cpan.org #140477 - 'Possible memory leak'

OBS-URL: https://build.opensuse.org/request/show/943077
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Template-Pro?expand=0&rev=15
2022-01-04 11:10:07 +00:00
Stephan Kulow
7b48239dcf Accepting request 939151 from devel:languages:perl:autoupdate
- updated to 0.9522
   see /usr/share/doc/packages/perl-HTML-Template-Pro/Changes
  0.9522 
  	- fixed memory leak in perl wrapper code. libhtmltmplpro
  	  was not affected by it.
  	- closed rt.cpan.org #78121 - 'I found a memory leak'

OBS-URL: https://build.opensuse.org/request/show/939151
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Template-Pro?expand=0&rev=14
2021-12-13 10:42:12 +00:00
Stephan Kulow
c8903f2143 Accepting request 935409 from devel:languages:perl:autoupdate
- updated to 0.9521
   see /usr/share/doc/packages/perl-HTML-Template-Pro/Changes
  	- misc bugfixes
  0.9520 
  	- added pcre2 support (old pcre support stil exists)
  	- closed rt.cpan.org #140119 - pcre2 support
  0.9521 
  	- closed rt.cpan.org #109255 - urlencode shouldn't encode '\'.

OBS-URL: https://build.opensuse.org/request/show/935409
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Template-Pro?expand=0&rev=13
2021-12-06 09:08:49 +00:00
Stephan Kulow
fa592a9bab Accepting request 296255 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/296255
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Template-Pro?expand=0&rev=12
2015-04-15 09:28:52 +00:00
Lars Vogdt
d43d13c234 - added rpmlintrc
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Template-Pro?expand=0&rev=11
2012-01-11 16:40:05 +00:00
Lars Vogdt
4f4c48ed0e - update to 0.9508:
+ patch for XSS vulnerability in HTML::Template::Pro
  + add file name in logs
  + bugfix in perl wrapper: fix in WrapAssociate.pm

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Template-Pro?expand=0&rev=10
2012-01-11 16:39:48 +00:00
Stephan Kulow
8eb7fe2a35 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Template-Pro?expand=0&rev=9 2011-11-11 11:18:44 +00:00
Stephan Kulow
7e86c798a8 - 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
2011-04-26 18:18:09 +00:00
6 changed files with 187 additions and 55 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:1364bf2d2c0449f2c7d7f310f8147dcad3dbd5682d66bbb2fb7caf6adfb7d9ca
size 173369

35
cpanspec.yml Normal file
View File

@@ -0,0 +1,35 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
# baz.patch: PATCH-FIX-OPENSUSE
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module
#skip_doc: regexp_to_skip_for_doc.*
#add_doc: files to add to docs
#misc: |-
#anything else to be added to spec file
#follows directly after %files section, so it can contain new blocks or also
#changes to %files section

View File

@@ -0,0 +1,6 @@
# this is a test file especially to test the right encoding
addFilter("wrong-file-end-of-line-encoding.*/usr/share/doc/packages/perl-HTML-Template-Pro/test_crlf.out");
# removing this little file needs patches in Makefile -- way too much work for such a small file ;-)
addFilter("non-linux-readme.*/usr/share/doc/packages/perl-HTML-Template-Pro/README.win32");
# as perl is already required for the package, this "additional" dependency in a doc file is ok:
addFilter("doc-file-dependency /usr/share/doc/packages/perl-HTML-Template-Pro/pparam2proparam /usr/bin/perl");

View File

@@ -1,3 +1,89 @@
-------------------------------------------------------------------
Tue Mar 12 17:02:30 UTC 2024 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Mon Jan 17 03:06:31 UTC 2022 - Tina Müller <timueller+perl@suse.de>
- updated to 0.9524
see /usr/share/doc/packages/perl-HTML-Template-Pro/Changes
0.9524 Sun Jan 16 22:36:21 EET 2022
- fixed misprint in error message
- closed rt.cpan.org #140731 - 'Misprint'
-------------------------------------------------------------------
Thu Dec 16 03:06:54 UTC 2021 - Tina Müller <timueller+perl@suse.de>
- updated to 0.9523
see /usr/share/doc/packages/perl-HTML-Template-Pro/Changes
0.9523 Wed Dec 15 02:05:11 EET 2021
- fixed memory leak in perl wrapper code. libhtmltmplpro
was not affected by it.
- closed rt.cpan.org #140477 - 'Possible memory leak'
-------------------------------------------------------------------
Tue Dec 7 03:06:16 UTC 2021 - Tina Müller <timueller+perl@suse.de>
- updated to 0.9522
see /usr/share/doc/packages/perl-HTML-Template-Pro/Changes
0.9522 Mon Dec 6 19:25:43 EET 2021
- fixed memory leak in perl wrapper code. libhtmltmplpro
was not affected by it.
- closed rt.cpan.org #78121 - 'I found a memory leak'
-------------------------------------------------------------------
Fri Dec 3 03:06:31 UTC 2021 - Tina Müller <timueller+perl@suse.de>
- updated to 0.9521
see /usr/share/doc/packages/perl-HTML-Template-Pro/Changes
- misc bugfixes
0.9520 Mon Nov 29 22:01:58 EET 2021
- added pcre2 support (old pcre support stil exists)
- closed rt.cpan.org #140119 - pcre2 support
0.9521 Thu Dec 2 09:09:51 EET 2021
- closed rt.cpan.org #109255 - urlencode shouldn't encode '\'.
-------------------------------------------------------------------
Tue Apr 14 17:32:53 UTC 2015 - coolo@suse.com
- updated to 0.9510
see /usr/share/doc/packages/perl-HTML-Template-Pro/Changes
-------------------------------------------------------------------
Wed Jan 11 16:06:38 UTC 2012 - lars@linux-schulserver.de
- update to 0.9508:
+ patch for XSS vulnerability in HTML::Template::Pro
+ add file name in logs
+ bugfix in perl wrapper: fix in WrapAssociate.pm
- added rpmlintrc
-------------------------------------------------------------------
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,79 +1,87 @@
# #
# spec file for package perl-HTML-Template-Pro # spec file for package perl-HTML-Template-Pro
# #
# This file and all modifications and additions to the pristine # Copyright (c) 2024 SUSE LLC
# 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 https://bugs.opensuse.org/
# #
%define cpan_name HTML-Template-Pro
Name: perl-HTML-Template-Pro Name: perl-HTML-Template-Pro
%define real_name HTML-Template-Pro Version: 0.952.400
Summary: Perl/XS module to use HTML Templates from CGI scripts
Url: http://search.cpan.org/perldoc?HTML::Template::Pro
Group: Development/Libraries/Perl
License: Artistic License
Version: 0.95
Release: 0 Release: 0
Source: %{real_name}-%{version}.tar.bz2 %define cpan_version 0.9524
BuildRequires: perl-Test-Pod License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl/XS module to use HTML Templates from CGI scripts
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/V/VI/VIY/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: pcre-devel BuildRequires: perl(File::Path) >= 2
BuildRequires: perl(JSON) BuildRequires: perl(JSON) >= 2
Requires: perl(JSON) Requires: perl(File::Path) >= 2
BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: perl(JSON) >= 2
Provides: perl(HTML::Template::Pro) = %{version}
Provides: perl(HTML::Template::Pro::WrapAssociate)
%undefine __perllib_provides
%{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 HTML::Template::SYNTAX. Perl interface of HTML::Template and
HTML::Template::Pro is described in HTML::Template::PerlInterface. HTML::Template::Pro is described in HTML::Template::PerlInterface.
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} %autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build %build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PCRE=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?jobs:-j%jobs} %make_build
%check %check
make test make test
@@ -83,11 +91,8 @@ make test
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist %perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-, root, root) %doc 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 pparam2proparam proscope.inc prostate.inc pstrutils.inc README README.ru README.win32 tags.inc tagstack.inc test_crlf.out TODO
%doc README README.ru FAQ TODO LGPL ARTISTIC Changes %license ARTISTIC
%changelog %changelog