diff --git a/perl-XML-LibXML-1.62-undef-test-fix.patch b/perl-XML-LibXML-1.62-undef-test-fix.patch new file mode 100644 index 0000000..a1302db --- /dev/null +++ b/perl-XML-LibXML-1.62-undef-test-fix.patch @@ -0,0 +1,14 @@ +diff -up XML-LibXML-1.62/t/03doc.t.BAD XML-LibXML-1.62/t/03doc.t +--- XML-LibXML-1.62/t/03doc.t.BAD 2007-09-03 11:54:24.000000000 -0400 ++++ XML-LibXML-1.62/t/03doc.t 2007-09-03 11:54:41.000000000 -0400 +@@ -206,8 +206,8 @@ use XML::LibXML::Common qw(:libxml); + ok($pi); + ok($pi->nodeType, XML_PI_NODE); + ok($pi->nodeName, "foo"); +- ok( $pi->textContent, undef); +- ok( $pi->getData, undef); ++ ok( $pi->textContent, ""); ++ ok( $pi->getData, ""); + $pi->setData(q(bar&)); + ok( $pi->getData, q(bar&)); + ok($pi->textContent, q(bar&)); diff --git a/perl-XML-LibXML.spec b/perl-XML-LibXML.spec index fae28a6..2e2911c 100644 --- a/perl-XML-LibXML.spec +++ b/perl-XML-LibXML.spec @@ -3,7 +3,7 @@ Summary: XML-LibXML Perl module Name: perl-XML-LibXML Version: 1.62001 -Release: 2%{?dist}.2 +Release: 2%{?dist}.3 License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/XML-LibXML/ @@ -14,6 +14,7 @@ Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:W Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }') Requires: perl(:MODULE_COMPAT_%(perl -MConfig -e 'print $Config{version}')) Source0: http://www.cpan.org/authors/id/P/PA/PAJAS/XML-LibXML-1.62001.tar.gz +Patch0: perl-XML-LibXML-1.62-undef-test-fix.patch BuildRequires: perl-XML-LibXML-Common perl-XML-SAX perl-XML-NamespaceSupport BuildRequires: libxml2-devel BuildRequires: perl(ExtUtils::MakeMaker) @@ -29,6 +30,7 @@ Requires: perl-XML-LibXML-Common perl-XML-SAX perl-XML-NamespaceSupport #contains a dir called XML-LibXML-1.62 %setup -q -n XML-LibXML-1.62 +%patch0 -p1 %build CFLAGS="$RPM_OPT_FLAGS" SKIP_SAX_INSTALL=1 perl Makefile.PL INSTALLDIRS=vendor @@ -71,6 +73,9 @@ fi %{_mandir}/man3/*.3* %changelog +* Wed Oct 17 2007 Tom "spot" Callaway - 1.62001-2.3 +- fix stupid test + * Wed Oct 17 2007 Tom "spot" Callaway - 1.62001-2.2 - add BR: perl(Test::More)