From 49afe7e40c3d5422c67951aba09fe745d4fca6b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
Date: Tue, 3 Jan 2017 16:01:52 +0100
Subject: Do not break tests by updating libxml2 library

---
 ...ire-the-same-build-and-run-time-version-o.patch | 31 ++++++++++++++++++++++
 perl-XML-LibXSLT.spec                              |  8 +++++-
 2 files changed, 38 insertions(+), 1 deletion(-)
 create mode 100644 
XML-LibXSLT-1.95-Do-not-require-the-same-build-and-run-time-version-o.patch

diff --git 
a/XML-LibXSLT-1.95-Do-not-require-the-same-build-and-run-time-version-o.patch 
b/XML-LibXSLT-1.95-Do-not-require-the-same-build-and-run-time-version-o.patch
new file mode 100644
index 0000000..f79795f
--- /dev/null
+++ 
b/XML-LibXSLT-1.95-Do-not-require-the-same-build-and-run-time-version-o.patch
@@ -0,0 +1,31 @@
+From 9a573cdc37e592880a4c96e98a2f8ea6a55bd63b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
+Date: Tue, 3 Jan 2017 15:59:16 +0100
+Subject: [PATCH] Do not require the same build and run time version of libxml2
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+CPAN RT#86398
+
+Signed-off-by: Petr Písař <[email protected]>
+---
+ t/01basic.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/01basic.t b/t/01basic.t
+index b525847..d48c463 100644
+--- a/t/01basic.t
++++ b/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 not newer than its run time version.');
+ 
+ warn "\n\nCompiled against:    ",
+        "libxslt ",XML::LibXSLT::LIBXSLT_VERSION(),
+-- 
+2.7.4
+
diff --git a/perl-XML-LibXSLT.spec b/perl-XML-LibXSLT.spec
index fa67ee3..7e204eb 100644
--- a/perl-XML-LibXSLT.spec
+++ b/perl-XML-LibXSLT.spec
@@ -1,7 +1,7 @@
 Name:          perl-XML-LibXSLT
 # NOTE: also update perl-XML-LibXML to a compatible version.  See below why.
 Version:       1.95
-Release:       1%{?dist}
+Release:       2%{?dist}
 Summary:       Perl module for interfacing to GNOME's libxslt
 Group:         Development/Libraries
 License:       GPL+ or Artistic
@@ -9,6 +9,8 @@ URL:            http://search.cpan.org/dist/XML-LibXSLT/
 Source0:       
http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML-LibXSLT-%{version}.tar.gz
 # Do not link against perl extension libraries, CPAN RT#83028
 Patch0:                
XML-LibXSLT-1.95-Do-not-link-against-perl-extension-libraries.patch
+# Do not break tests by updating libxml2 library, CPAN RT#86398
+Patch1:                
XML-LibXSLT-1.95-Do-not-require-the-same-build-and-run-time-version-o.patch
 BuildRequires: coreutils
 BuildRequires: findutils
 BuildRequires: make
@@ -54,6 +56,7 @@ that you can find at http://www.xmlsoft.org/XSLT/
 %prep
 %setup -q -n XML-LibXSLT-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
@@ -75,6 +78,9 @@ make test
 %{_mandir}/man3/*.3*
 
 %changelog
+* Tue Jan 03 2017 Petr Pisar <[email protected]> - 1.95-2
+- Do not break tests by updating libxml2 library (CPAN RT#86398)
+
 * Mon Aug 01 2016 Jitka Plesnikova <[email protected]> - 1.95-1
 - 1.95 bump
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-XML-LibXSLT.git/commit/?h=master&id=49afe7e40c3d5422c67951aba09fe745d4fca6b7
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to