diff --git a/cpanspec.yml b/cpanspec.yml index d6ab133..9b6869e 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -4,11 +4,11 @@ #sources: # - source1 # - source2 -#patches: -# foo.patch: -p1 -# bar.patch: +patches: + perl-XML-LibXSLT-lib-versions.patch: -p1 preamble: |- BuildRequires: libxslt-devel + Patch0: perl-XML-LibXSLT-lib-versions.patch #post_prep: |- # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL diff --git a/perl-XML-LibXSLT-lib-versions.patch b/perl-XML-LibXSLT-lib-versions.patch new file mode 100644 index 0000000..30e1597 --- /dev/null +++ b/perl-XML-LibXSLT-lib-versions.patch @@ -0,0 +1,13 @@ +Index: XML-LibXSLT-1.96/t/01basic.t +=================================================================== +--- XML-LibXSLT-1.96.orig/t/01basic.t ++++ XML-LibXSLT-1.96/t/01basic.t +@@ -19,7 +19,7 @@ ok($p, ' TODO : Add test name'); + is(XML::LibXSLT::LIBXSLT_VERSION(), XML::LibXSLT::LIBXSLT_RUNTIME_VERSION(), 'LIBXSLT_VERSION is the same as the runtime version.'); + + # TEST +-is(XML::LibXML::LIBXML_VERSION(), XML::LibXML::LIBXML_RUNTIME_VERSION(), 'LibXML version is the same as its run time version.'); ++ok(XML::LibXML::LIBXML_VERSION() <= XML::LibXML::LIBXML_RUNTIME_VERSION(), 'LibXML build time version is <= run time version.'); + + warn "\n\nCompiled against: ", + "libxslt ",XML::LibXSLT::LIBXSLT_VERSION(), diff --git a/perl-XML-LibXSLT.changes b/perl-XML-LibXSLT.changes index db30615..e0467fc 100644 --- a/perl-XML-LibXSLT.changes +++ b/perl-XML-LibXSLT.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 28 15:22:06 UTC 2019 - Pedro Monreal Gonzalez + +- Fix basic test that fails when build and run time versions are the same + * Add patch perl-XML-LibXSLT-lib-versions.patch + ------------------------------------------------------------------- Tue Nov 19 09:35:38 UTC 2019 - Pedro Monreal Gonzalez diff --git a/perl-XML-LibXSLT.spec b/perl-XML-LibXSLT.spec index 4eb04cc..0f2c6ef 100644 --- a/perl-XML-LibXSLT.spec +++ b/perl-XML-LibXSLT.spec @@ -1,7 +1,7 @@ # # spec file for package perl-XML-LibXSLT # -# Copyright (c) 2019 SUSE LLC. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -33,6 +33,7 @@ Requires: perl(XML::LibXML) >= 1.70 %{perl_requires} # MANUAL BEGIN BuildRequires: libxslt-devel +Patch0: perl-XML-LibXSLT-lib-versions.patch # MANUAL END %description @@ -42,6 +43,9 @@ tests showing this to be more than twice as fast as Sablotron. %prep %setup -q -n %{cpan_name}-%{version} +# MANUAL BEGIN +%patch0 -p1 +# MANUAL END %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"