diff --git a/no-more-encoding.diff b/no-more-encoding.diff new file mode 100644 index 0000000..cea9816 --- /dev/null +++ b/no-more-encoding.diff @@ -0,0 +1,13 @@ +Index: XML-DOM-XPath-0.14/t/test_non_ascii.t +=================================================================== +--- XML-DOM-XPath-0.14.orig/t/test_non_ascii.t ++++ XML-DOM-XPath-0.14/t/test_non_ascii.t +@@ -7,7 +7,7 @@ use strict; + use Test::More tests => 10; + use XML::DOM::XPath; + +-use encoding 'utf8'; ++use utf8; + + my $display_warning=0; + diff --git a/perl-XML-DOM-XPath.changes b/perl-XML-DOM-XPath.changes index 402e179..97d466a 100644 --- a/perl-XML-DOM-XPath.changes +++ b/perl-XML-DOM-XPath.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Sep 24 06:39:10 UTC 2017 - coolo@suse.com + +- add no-more-encoding.diff to fix test with perl 5.26 + (https://rt.cpan.org/Public/Bug/Display.html?id=115098) + ------------------------------------------------------------------- Tue Aug 6 22:46:18 UTC 2013 - rcurtis@suse.com diff --git a/perl-XML-DOM-XPath.spec b/perl-XML-DOM-XPath.spec index 583f3ca..2f4eae1 100644 --- a/perl-XML-DOM-XPath.spec +++ b/perl-XML-DOM-XPath.spec @@ -1,7 +1,7 @@ # # spec file for package perl-XML-DOM-XPath # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,6 +27,7 @@ Version: 0.14 Release: 0 Url: http://search.cpan.org/dist/XML-DOM-XPath/ Source: http://www.cpan.org/modules/by-module/XML/XML-DOM-XPath-%{version}.tar.gz +Patch0: no-more-encoding.diff BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: perl >= 5.16 @@ -45,12 +46,9 @@ Requires: perl(XML::XPathEngine) >= 0.1 XML::DOM::XPath allows you to use XML::XPath methods to query a DOM. This is often much easier than relying only on getElementsByTagName. -Authors: --------- - Michel Rodriguez - %prep %setup -q -n %{cpan_name}-%{version} +%patch0 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -68,9 +66,6 @@ Authors: %{__rm} -rf $RPM_BUILD_ROOT%perl_archlib %perl_gen_filelist -%clean -%{__rm} -rf $RPM_BUILD_ROOT - %files -f %{name}.files %defattr(-,root,root,-) %doc Changes README