ppisar pushed to perl-XML-Tidy (master). "Fix XML::Tidy version"

notifications at fedoraproject.org notifications at fedoraproject.org
Fri Sep 4 12:31:50 UTC 2015


From 40b2e525e8211a0a43d998804838c608ea724b57 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Fri, 4 Sep 2015 14:29:57 +0200
Subject: Fix XML::Tidy version


diff --git a/XML-Tidy-1.12.B55J2qn-Make-XML-Tidy-version-valid.patch b/XML-Tidy-1.12.B55J2qn-Make-XML-Tidy-version-valid.patch
new file mode 100644
index 0000000..0e5fbf7
--- /dev/null
+++ b/XML-Tidy-1.12.B55J2qn-Make-XML-Tidy-version-valid.patch
@@ -0,0 +1,35 @@
+From ec3610aee2308bab534fcc2a605851a7279fe295 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Fri, 4 Sep 2015 14:25:28 +0200
+Subject: [PATCH] Make XML::Tidy version valid
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+1.12.B55J2qn version is invalid and is refused by ExtUtils::MakeMaker
+7.06 when building reverse dependencies. Therefore the version value
+must be normalized.
+
+CPAN RT#56073
+
+Signed-off-by: Petr Písař <ppisar at redhat.com>
+---
+ Tidy.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Tidy.pm b/Tidy.pm
+index 0c87aef..8dba992 100644
+--- a/Tidy.pm
++++ b/Tidy.pm
+@@ -8,7 +8,7 @@ use Carp;
+ use Exporter;
+ use Math::BaseCnv qw(:b64);
+ use XML::XPath::XMLParser;
+-our $VERSION     = '1.12.B55J2qn'; our $PTVR = $VERSION; $PTVR =~ s/^\d+\.\d+\.//; # Please see `perldoc Time::PT` for an explanation of $PTVR.
++our $VERSION     = '1.12'; our $PTVR = $VERSION; $PTVR =~ s/^\d+\.\d+\.//; # Please see `perldoc Time::PT` for an explanation of $PTVR.
+ @EXPORT = qw(
+     UNKNOWN_NODE
+     ELEMENT_NODE
+-- 
+2.4.3
+
diff --git a/perl-XML-Tidy.spec b/perl-XML-Tidy.spec
index fec077d..091d548 100644
--- a/perl-XML-Tidy.spec
+++ b/perl-XML-Tidy.spec
@@ -1,6 +1,6 @@
 Name:           perl-XML-Tidy
 Version:        1.12.B55J2qn
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        Tidy indenting of XML documents
 
 Group:          Development/Libraries
@@ -9,6 +9,8 @@ URL:            http://search.cpan.org/dist/XML-Tidy
 Source0:        http://search.cpan.org/CPAN/authors/id/P/PI/PIP/XML-Tidy-%{version}.tgz
 # Define POD encoding, CPAN RT#85592
 Patch0:         XML-Tidy-1.12.B55J2qn-Define-POD-encoding.patch
+# Fix XML::Tidy version, bug #1259386, CPAN RT#56073
+Patch1:         XML-Tidy-1.12.B55J2qn-Make-XML-Tidy-version-valid.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
@@ -30,6 +32,7 @@ other handy member functions to compress && expand your XML document object
 %prep
 %setup -q -n XML-Tidy-%{version}
 %patch0 -p1
+%patch1 -p1
 for i in README; do {
   iconv -f iso-8859-1 -t utf-8 $i > $i.conv \
   && mv $i.conv $i;
@@ -67,6 +70,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Fri Sep 04 2015 Petr Pisar <ppisar at redhat.com> - 1.12.B55J2qn-14
+- Fix XML::Tidy version (bug #1259386)
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.12.B55J2qn-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-XML-Tidy.git/commit/?h=master&id=40b2e525e8211a0a43d998804838c608ea724b57


More information about the perl-devel mailing list