fix missing close tag issue (bz 525587)
This commit is contained in:
parent
f12da6d93a
commit
be6ea50b4e
|
@ -0,0 +1,12 @@
|
||||||
|
diff -ur HTML-Tree-3.23/lib/HTML/Element.pm HTML-Tree-3.23-fix/lib/HTML/Element.pm
|
||||||
|
--- HTML-Tree-3.23/lib/HTML/Element.pm 2006-11-13 03:13:33.000000000 +1000
|
||||||
|
+++ HTML-Tree-3.23-fix/lib/HTML/Element.pm 2009-09-23 14:22:12.000000000 +1000
|
||||||
|
@@ -2041,7 +2041,7 @@
|
||||||
|
and ref($this) # sanity
|
||||||
|
and not(
|
||||||
|
$this->{'_empty_element'}
|
||||||
|
- || $empty_element_map->{$this->{'_tag'} || ''}
|
||||||
|
+ || ($empty_element_map->{$this->{'_tag'} || ''} && !@{$this->{'_content'}})
|
||||||
|
) # things that don't get post-order callbacks
|
||||||
|
) {
|
||||||
|
shift @I;
|
|
@ -1,11 +1,14 @@
|
||||||
Name: perl-HTML-Tree
|
Name: perl-HTML-Tree
|
||||||
Version: 3.23
|
Version: 3.23
|
||||||
Release: 2%{?dist}
|
Release: 9%{?dist}
|
||||||
Summary: HTML tree handling modules for Perl
|
Summary: HTML tree handling modules for Perl
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/HTML-Tree/
|
URL: http://search.cpan.org/dist/HTML-Tree/
|
||||||
Source0: http://www.cpan.org/authors/id/P/PE/PETDANCE/HTML-Tree-%{version}.tar.gz
|
Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PETEK/HTML-Tree-%{version}.tar.gz
|
||||||
|
# Upstream bug filed:
|
||||||
|
# https://rt.cpan.org/Ticket/Display.html?id=49932
|
||||||
|
Patch0: missing_close_tag.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(HTML::Parser) >= 2.19
|
BuildRequires: perl(HTML::Parser) >= 2.19
|
||||||
|
@ -25,6 +28,7 @@ a separate development track.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n HTML-Tree-%{version}
|
%setup -q -n HTML-Tree-%{version}
|
||||||
|
%patch0 -p1 -b .missing-close-tag
|
||||||
%{__perl} -pi -e 's|/usr/local/bin/perl|%{__perl}|' htmltree
|
%{__perl} -pi -e 's|/usr/local/bin/perl|%{__perl}|' htmltree
|
||||||
|
|
||||||
cat << \EOF > %{name}-prov
|
cat << \EOF > %{name}-prov
|
||||||
|
@ -59,6 +63,27 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%{_mandir}/man3/HTML::*3*
|
%{_mandir}/man3/HTML::*3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 28 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1:3.23-9
|
||||||
|
- apply Jeff Fearn's fix for the missing close tag bug (bz 535587)
|
||||||
|
|
||||||
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.23-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.23-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.23-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Nov 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:3.23-5
|
||||||
|
- fix source url
|
||||||
|
|
||||||
|
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:3.23-4
|
||||||
|
- Rebuild for perl 5.10 (again)
|
||||||
|
|
||||||
|
* Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 3.23-3
|
||||||
|
- rebuild for new perl
|
||||||
|
|
||||||
* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> 3.23-2
|
* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> 3.23-2
|
||||||
- license tag fix
|
- license tag fix
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue