[perl-HTML-Template/el6/master] fix failing test by adding missing BR, sync to rawhide

Tom Callaway spot at fedoraproject.org
Sun Apr 24 20:53:05 UTC 2011


commit d793a6994b68f0166e3a203847ac33bfee4cee70
Author: Tom "spot" Callaway <tcallawa at redhat.com>
Date:   Sun Apr 24 16:52:52 2011 -0400

    fix failing test by adding missing BR, sync to rawhide

 perl-HTML-Template-manpages.patch |   75 +++++++++++++++++++++++++++++++++++++
 perl-HTML-Template.spec           |   22 ++++++++++-
 2 files changed, 96 insertions(+), 1 deletions(-)
---
diff --git a/perl-HTML-Template-manpages.patch b/perl-HTML-Template-manpages.patch
new file mode 100644
index 0000000..e8fed10
--- /dev/null
+++ b/perl-HTML-Template-manpages.patch
@@ -0,0 +1,75 @@
+diff -up HTML-Template-2.9/Template.pm.old HTML-Template-2.9/Template.pm
+--- HTML-Template-2.9/Template.pm.old	2007-01-29 20:32:21.000000000 +0100
++++ HTML-Template-2.9/Template.pm	2010-12-17 11:44:31.368712345 +0100
+@@ -14,7 +14,7 @@ extra tags, the simplest being <TMPL_VAR
+ For example, test.tmpl:
+ 
+   <html>
+-  <head><title>Test Template</title>
++  <head><title>Test Template</title></head>
+   <body>
+   My Home Directory is <TMPL_VAR NAME=HOME>
+   <p>
+@@ -271,7 +271,7 @@ available.  As a final attempt, the file
+ directly.  See below for more information on HTML_TEMPLATE_ROOT and
+ the "path" option to new().
+ 
+-As a protection against infinitly recursive includes, an arbitary
++As a protection against infinitely recursive includes, an arbitrary
+ limit of 10 levels deep is imposed.  You can alter this limit with the
+ "max_includes" option.  See the entry for the "max_includes" option
+ below for more details.
+@@ -715,7 +715,7 @@ the order they appear:
+ The old associateCGI() call is still supported, but should be
+ considered obsolete.
+ 
+-NOTE: The parameter names are matched in a case-insensitve manner.  If
++NOTE: The parameter names are matched in a case-insensitive manner.  If
+ you have two parameters in a CGI object like 'NAME' and 'Name' one
+ will be chosen randomly by associate.  This behavior can be changed by
+ the following option.
+@@ -852,7 +852,7 @@ HTML::Template reads your template file 
+ template tags.
+ 
+ In the most simple usage, you simply assign a code reference to the
+-filter parameter.  This subroutine will recieve a single argument - a
++filter parameter.  This subroutine will receive a single argument - a
+ reference to a string containing the template file text.  Here is an
+ example that accepts templates with tags that look like "!!!ZAP_VAR
+ FOO!!!" and transforms them into HTML::Template tags:
+@@ -867,7 +867,7 @@ FOO!!!" and transforms them into HTML::T
+                                       filter => $filter);
+ 
+ More complicated usages are possible.  You can request that your
+-filter receieve the template text as an array of lines rather than as
++filter receive the template text as an array of lines rather than as
+ a single scalar.  To do that you need to specify your filter using a
+ hash-ref.  In this form you specify the filter using the C<sub> key and
+ the desired argument format using the C<format> key.  The available
+@@ -902,7 +902,7 @@ unless they declare a different escape i
+ 
+ =back
+ 
+-=back 4
++=back
+ 
+ =cut
+ 
+@@ -2428,7 +2428,7 @@ C<param()> can be called in a number of 
+       $self->param(PARAM => 'value');
+ 
+       # with a subroutine reference that gets called to get the value
+-      # of the scalar.  The sub will recieve the template object as a
++      # of the scalar.  The sub will receive the template object as a
+       # parameter.
+       $self->param(PARAM => sub { return 'value' });   
+ 
+@@ -3263,7 +3263,7 @@ Q: How can I execute a program from insi
+ 
+ A: Short answer: you can't.  Longer answer: you shouldn't since this
+ violates the fundamental concept behind HTML::Template - that design
+-and code should be seperate.
++and code should be separate.
+ 
+ But, inevitably some people still want to do it.  If that describes
+ you then you should take a look at
diff --git a/perl-HTML-Template.spec b/perl-HTML-Template.spec
index a37f273..616dd15 100644
--- a/perl-HTML-Template.spec
+++ b/perl-HTML-Template.spec
@@ -1,15 +1,17 @@
 Name:           perl-HTML-Template
 Version:        2.9
-Release:        5%{?dist}
+Release:        10%{?dist}
 Summary:        Perl module to use HTML Templates
 
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/HTML-Template/
 Source0:        http://www.cpan.org/authors/id/S/SA/SAMTREGAR/HTML-Template-%{version}.tar.gz
+Patch0:         perl-HTML-Template-manpages.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
+BuildRequires:  perl(CGI)
 BuildRequires:  perl(Test::More)
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(IPC::SharedCache)
@@ -29,6 +31,7 @@ in the Perl script.
 
 %prep
 %setup -q -n HTML-Template-%{version}
+%patch0 -p1 -b .manpages
 %{__perl} -pi -e 's/\r//g' README
 
 
@@ -61,6 +64,23 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sun Apr 24 2011 Tom Callaway <spot at fedoraproject.org> - 2.9-10
+- actually apply man page fixes patch
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.9-9
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Fri Dec 17 2010 Marcela Maslanova <mmaslano at redhat.com> - 2.9-8
+- 661697 rebuild for fixing problems with vendorach/lib
+- add missing BR CGI
+- add man page fixes from Debian
+
+* Sun May 02 2010 Marcela Maslanova <mmaslano at redhat.com> - 2.9-7
+- Mass rebuild with perl-5.12.0
+
+* Mon Dec  7 2009 Stepan Kasal <skasal at redhat.com> - 2.9-6
+- rebuild against perl 5.10.1
+
 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.9-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 



More information about the perl-devel mailing list