commit c89d3cbbc2ecf45c6733f423882215b1cb19544db90976ea097bd0744e327ec1 Author: Lars Vogdt Date: Fri Aug 15 18:01:49 2008 +0000 initial package OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Template-Pro?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/HTML-Template-Pro-0.70.tar.bz2 b/HTML-Template-Pro-0.70.tar.bz2 new file mode 100644 index 0000000..12f6621 --- /dev/null +++ b/HTML-Template-Pro-0.70.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a15e7be82a5e4da5d3336aa2a593e0e6bcaee0f345ab2aec75e8e9d7f739ef15 +size 98682 diff --git a/perl-HTML-Template-Pro.changes b/perl-HTML-Template-Pro.changes new file mode 100644 index 0000000..82f50e1 --- /dev/null +++ b/perl-HTML-Template-Pro.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Aug 15 19:46:11 CEST 2008 - lrupp@suse.de + +- initial version 0.70 + diff --git a/perl-HTML-Template-Pro.spec b/perl-HTML-Template-Pro.spec new file mode 100644 index 0000000..bca89fd --- /dev/null +++ b/perl-HTML-Template-Pro.spec @@ -0,0 +1,98 @@ +# +# spec file for package perl-HTML-Template-Pro +# +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# + + + +Name: perl-HTML-Template-Pro +%define real_name HTML-Template-Pro +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.70 +Release: 0 +Source: %{real_name}-%{version}.tar.bz2 +BuildRequires: perl-Test-Pod +Requires: perl = %{perl_version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Original HTML::Template is written by Sam Tregar, with contributions of many +people mentioned there. Their efforts caused HTML::Template to be mature html +tempate engine which separate perl code and html design. Yet powerful, +HTML::Template is slow, especially if 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 (as of 2.8) and HTML::Template::Expr (as of 0.0.5). It is not +intended to be a complete replacement, but to be a fast implementation of +HTML::Template if you don't need quering, the extended facility of +HTML::Template. Designed for heavy upload, resource limitations, abcence of +mod_perl. + +HTML::Template::Pro has complete support of filters and HTML::Template::Expr's +tag EXPR="", including user-defined functions. + +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 +phase where it produces a page from the parsed tree of template, obtained in +the 1st step. + +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 +to Perl using Perl+XS. As a result, comparing to HTML::Template in ordinary +calls, it runs 10-25 times faster. Comparing to HTML::Template with all caching +enabled under mod_perl, it still 1-3 times faster. At that HTML::Template +caching requires considerable amount of memory (per process, shareable, or on +disk) to be permanently filled with parsed trees, whereas 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 +HTML::Template::SYNTAX. Perl interface of HTML::Template and +HTML::Template::Pro is described in HTML::Template::PerlInterface. + + +Author: +------- + I. Vlasenko, + Bruni Emiliano, + Stanislav Yadykin, + Viacheslav Sheveliov + + +%prep +%setup -n %{real_name}-%{version} + +%build +perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" +make %{?jobs:-j%jobs} + +%check +make test + +%install +%perl_make_install +%perl_process_packlist + +%clean +rm -rf %{buildroot} + +%files +%defattr(-, root, root) +%doc README +%doc %{_mandir}/man?/* +%dir %{perl_vendorarch}/HTML +%dir %{perl_vendorarch}/HTML/Template +%dir %{perl_vendorarch}/auto/HTML +%dir %{perl_vendorarch}/auto/HTML/Template +%dir %{perl_vendorarch}/auto/HTML/Template/Pro +%dir %{perl_vendorarch}/HTML/Template/* +%dir %{perl_vendorarch}/auto/HTML/Template/Pro/* +%dir %{perl_vendorarch}/auto/HTML/Template/Pro/.packlist +/var/adm/perl-modules/%{name} + +%changelog