fix test 09 for perl5.10
This commit is contained in:
parent
1205d5a8e7
commit
bd6d0bf482
12
perl-Text-Template-perl510-fixtest09.patch
Normal file
12
perl-Text-Template-perl510-fixtest09.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up Text-Template-1.44/t/09-error.t.old Text-Template-1.44/t/09-error.t
|
||||
--- Text-Template-1.44/t/09-error.t.old 2008-02-07 07:03:27.000000000 -0500
|
||||
+++ Text-Template-1.44/t/09-error.t 2008-02-07 07:04:07.000000000 -0500
|
||||
@@ -40,7 +40,7 @@ $n++;
|
||||
eval {
|
||||
Text::Template->new(TYPE => 'wlunch', SOURCE => 'fish food');
|
||||
};
|
||||
-if ($@ =~ /^\QIllegal value \`WLUNCH\' for TYPE parameter/) {
|
||||
+if ($@ =~ /^\QIllegal value `WLUNCH' for TYPE parameter/) {
|
||||
print "ok $n\n";
|
||||
} else {
|
||||
print STDERR $@;
|
||||
@ -1,6 +1,6 @@
|
||||
Name: perl-Text-Template
|
||||
Version: 1.44
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Expand template text with embedded Perl
|
||||
|
||||
Group: Development/Libraries
|
||||
@ -8,6 +8,7 @@ License: GPL+ or Artistic
|
||||
URL: http://search.cpan.org/dist/Text-Template/
|
||||
Source0: http://www.cpan.org/authors/id/M/MJ/MJD/Text-Template-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Patch0: perl-Text-Template-perl510-fixtest09.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
@ -23,6 +24,7 @@ them with their values.
|
||||
|
||||
%prep
|
||||
%setup -q -n Text-Template-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
|
||||
%build
|
||||
@ -54,6 +56,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Feb 7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.44-6
|
||||
- fix test 09 for perl5.10
|
||||
|
||||
* Tue Feb 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.44-5
|
||||
- rebuild for new perl
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user