From 50c5bff12597ebc4f2b19544eea73cdc77c220d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> Date: Wed, 15 Jul 2015 10:24:18 +0200 Subject: Adapt tests to Term-Cap-1.16
diff --git a/perl-podlators.spec b/perl-podlators.spec index 5bc91b5..5d0d7ed 100644 --- a/perl-podlators.spec +++ b/perl-podlators.spec @@ -1,11 +1,13 @@ Name: perl-podlators Version: 2.5.3 -Release: 346%{?dist} +Release: 347%{?dist} Summary: Format POD source into various output formats License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/podlators/ Source0: http://www.cpan.org/authors/id/R/RR/RRA/podlators-%{version}.tar.gz +# Adapt tests to Term-Cap-1.16, CPAN RT#98272 +Patch0: podlators-2.5.3-fix-for-RT-98272.patch BuildArch: noarch BuildRequires: perl BuildRequires: perl(Config) @@ -44,6 +46,7 @@ with various capabilities. %prep %setup -q -n podlators-%{version} +%patch0 -p1 %build perl Makefile.PL INSTALLDIRS=vendor @@ -65,6 +68,9 @@ make test %{_mandir}/man3/* %changelog +* Wed Jul 15 2015 Petr Pisar <ppi...@redhat.com> - 2.5.3-347 +- Adapt tests to Term-Cap-1.16 + * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> - 2.5.3-346 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/podlators-2.5.3-fix-for-RT-98272.patch b/podlators-2.5.3-fix-for-RT-98272.patch new file mode 100644 index 0000000..781a3f4 --- /dev/null +++ b/podlators-2.5.3-fix-for-RT-98272.patch @@ -0,0 +1,41 @@ +From 6cd1694c72ea7ae4fa4d5c247a7b968fe12d09cb Mon Sep 17 00:00:00 2001 +From: Slaven Rezic <slaven.re...@idealo.de> +Date: Wed, 12 Nov 2014 12:12:03 +0100 +Subject: [PATCH] fix for RT #98272 + +--- + t/basic.t | 3 ++- + t/termcap.t | 3 ++- + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/t/basic.t b/t/basic.t +index 4103ed6..5756107 100755 +--- a/t/basic.t ++++ b/t/basic.t +@@ -44,7 +44,8 @@ sub source_path { + + # Hard-code a few values to try to get reproducible results. + $ENV{COLUMNS} = 80; +-$ENV{TERM} = 'xterm'; ++#$ENV{TERM} = 'xterm'; ++delete $ENV{TERM}; + $ENV{TERMCAP} = 'xterm:co=80:do=^J:md=\E[1m:us=\E[4m:me=\E[m'; + + # Map of translators to file extensions to find the formatted output to +diff --git a/t/termcap.t b/t/termcap.t +index d751bad..ac919aa 100755 +--- a/t/termcap.t ++++ b/t/termcap.t +@@ -24,7 +24,8 @@ BEGIN { use_ok ('Pod::Text::Termcap') } + + # Hard-code a few values to try to get reproducible results. + $ENV{COLUMNS} = 80; +-$ENV{TERM} = 'xterm'; ++#$ENV{TERM} = 'xterm'; ++delete $ENV{TERM}; + $ENV{TERMCAP} = 'xterm:co=80:do=^J:md=\E[1m:us=\E[4m:me=\E[m'; + + my $parser = Pod::Text::Termcap->new; +-- +1.7.9.5 + -- cgit v0.10.2 http://pkgs.fedoraproject.org/cgit/perl-podlators.git/commit/?h=f23&id=50c5bff12597ebc4f2b19544eea73cdc77c220d1 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/perl-devel