diff --git a/perl-XML-LibXSLT-wrongtest.diff b/perl-XML-LibXSLT-wrongtest.diff new file mode 100644 index 0000000..1e76a58 --- /dev/null +++ b/perl-XML-LibXSLT-wrongtest.diff @@ -0,0 +1,66 @@ +--- t/10functions.t ++++ t/10functions.t +@@ -1,5 +1,5 @@ + use Test; +-BEGIN { plan tests => 33 } ++BEGIN { plan tests => 31 } + use XML::LibXSLT; + + { +@@ -86,56 +86,6 @@ + } + } + +-{ +- # testcase by Elizabeth Mattijsen +- my $parser = XML::LibXML->new; +- my $xsltproc = XML::LibXSLT->new; +- +- my $xml = $parser->parse_string( <<'XML' ); +- +-XML +- my $xslt = $parser->parse_string( <<'XSLT' ); +- +- +- +- +- +- +- +- +- +- +- +- +- +-XSLT +- +- my $aux = <<'XML'; +- +- 1st +- 2nd +- +-XML +- { +- XML::LibXSLT->register_function( +- ('http://foo', 'custom') => sub { $parser->parse_string( $aux )->findnodes('//y') } +- ); +- my $stylesheet = $xsltproc->parse_stylesheet($xslt); +- my $result = $stylesheet->transform($xml); +- ok ($result->serialize,qq(\n1st2nd\n)); +- } +- { +- XML::LibXSLT->register_function( +- ('http://foo', 'custom') => sub { $parser->parse_string( $aux )->findnodes('//y')->[0]; }); +- my $stylesheet = $xsltproc->parse_stylesheet($xslt); +- my $result = $stylesheet->transform($xml); +- ok ($result->serialize,qq(\n1st\n)); +- } +-} +- + { + my $parser = XML::LibXML->new; + my $xsltproc = XML::LibXSLT->new; diff --git a/perl-XML-LibXSLT.changes b/perl-XML-LibXSLT.changes index f6e1ef2..fe2c7bb 100644 --- a/perl-XML-LibXSLT.changes +++ b/perl-XML-LibXSLT.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 30 15:18:53 CEST 2008 - anicka@suse.cz + +- fix build (disable two tests that are wrong (with regard to XML + specification) + ------------------------------------------------------------------- Tue Feb 5 16:32:54 CET 2008 - anicka@suse.cz diff --git a/perl-XML-LibXSLT.spec b/perl-XML-LibXSLT.spec index d6aa679..65774d4 100644 --- a/perl-XML-LibXSLT.spec +++ b/perl-XML-LibXSLT.spec @@ -2,18 +2,26 @@ # spec file for package perl-XML-LibXSLT (Version 1.66) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. # +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild + Name: perl-XML-LibXSLT BuildRequires: libxslt-devel perl-XML-LibXML Version: 1.66 -Release: 1 +Release: 53 Requires: perl = %{perl_version} AutoReqProv: on Group: Development/Libraries/Perl @@ -21,6 +29,7 @@ License: Artistic License Url: http://www.cpan.org/modules/by-module/XML/ Summary: XML::LibXSLT Perl Module Source: XML-LibXSLT-%{version}.tar.bz2 +Patch: %{name}-wrongtest.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: perl-XML-LibXML @@ -37,6 +46,7 @@ supported in version 0.9 of libxslt. %prep %setup -q -n XML-LibXSLT-%{version} +%patch %build perl Makefile.PL @@ -61,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT /var/adm/perl-modules/%{name} %changelog +* Tue Sep 30 2008 anicka@suse.cz +- fix build (disable two tests that are wrong (with regard to XML + specification) * Tue Feb 05 2008 anicka@suse.cz - update to 1.66 * sync the binary internals to those of XML::LibXML 1.66