Simpler fix for FTBFS with Test::Spelling 0.23 (#1713565)

epel9
Paul Howarth 6 years ago
parent 188705de1c
commit 95f41ca95c

@ -1,42 +0,0 @@
From cf4a5f17e1fdece8a28d256ef9b5c0689cb40f10 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Fri, 24 May 2019 10:28:31 +0200
Subject: [PATCH] =?UTF-8?q?Whitelist=20Mengu=C3=A9=20for=20spell=20checker?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
After upgrading Test-Spelling from 0.22 to 0.23 a new error emrged:
not ok 1 - POD spelling for lib/Test/Synopsis.pm
# Failed test 'POD spelling for lib/Test/Synopsis.pm'
# at xt/author/pod-spell.t line 11.
# Errors:
# Mengu
#
# All incorrect words, by number of occurrences:
# 1: Mengu
# Looks like you failed 1 test of 1.
This patch adds Mengué to the stopwords.
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
lib/Test/Synopsis.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/Test/Synopsis.pm b/lib/Test/Synopsis.pm
index 2e69d14..5abbae6 100644
--- a/lib/Test/Synopsis.pm
+++ b/lib/Test/Synopsis.pm
@@ -168,6 +168,7 @@ __END__
=for stopwords Goro blogged Znet Zoffix DOHERTY Doherty
KRYDE Ryde ZOFFIX Gr nauer Grünauer pm HEREDOC HEREDOCs DROLSKY
+ Mengué
=for test_synopsis $main::for_checked=1
--
2.20.1

@ -0,0 +1,9 @@
--- xt/author/pod-spell.t
+++ xt/author/pod-spell.t
@@ -1,5 +1,6 @@
use strict;
use warnings;
+use utf8;
use Test::More;
# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007000

@ -3,21 +3,19 @@
Name: perl-Test-Synopsis Name: perl-Test-Synopsis
Version: 0.15 Version: 0.15
Release: 13%{?dist} Release: 14%{?dist}
Summary: Test your SYNOPSIS code Summary: Test your SYNOPSIS code
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Test-Synopsis URL: https://metacpan.org/release/Test-Synopsis
Source0: https://cpan.metacpan.org/authors/id/Z/ZO/ZOFFIX/Test-Synopsis-%{version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-Synopsis-%{version}.tar.gz
# Correct a spelling test, bug #1713565, Patch0: Test-Synopsis-0.15-spelling.patch
# <https://github.com/miyagawa/test-synopsis/pull/21>
Patch0: Test-Synopsis-0.15-Whitelist-Mengu-for-spell-checker.patch
BuildArch: noarch BuildArch: noarch
# Module Build # Module Build
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: findutils BuildRequires: findutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime # Module Runtime
BuildRequires: perl(ExtUtils::Manifest) BuildRequires: perl(ExtUtils::Manifest)
@ -51,8 +49,9 @@ BuildRequires: perl(Test::NoTabs)
BuildRequires: perl(Test::Pod) >= 1.41 BuildRequires: perl(Test::Pod) >= 1.41
BuildRequires: perl(Test::Pod::Coverage) >= 1.08 BuildRequires: perl(Test::Pod::Coverage) >= 1.08
BuildRequires: perl(Test::Portability::Files) BuildRequires: perl(Test::Portability::Files)
BuildRequires: perl(Test::Spelling), hunspell-en BuildRequires: perl(Test::Spelling) >= 0.23, hunspell-en
BuildRequires: perl(Test::Version) BuildRequires: perl(Test::Version)
BuildRequires: perl(utf8)
%endif %endif
# Runtime # Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -68,17 +67,19 @@ sub) and doesn't actually run the code.
%prep %prep
%setup -q -n Test-Synopsis-%{version} %setup -q -n Test-Synopsis-%{version}
%patch0 -p1
# Fix FTBFS with Test-Spelling 0.23
# https://github.com/genio/test-spelling/pull/10
%patch0
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot} make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot} %{_fixperms} -c %{buildroot}
%check %check
make test make test
@ -97,6 +98,9 @@ make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
%{_mandir}/man3/Test::Synopsis.3* %{_mandir}/man3/Test::Synopsis.3*
%changelog %changelog
* Fri May 24 2019 aul Howarth <paul@city-fan.org> - 0.15-14
- Simpler fix for FTBFS with Test::Spelling 0.23 (#1713565)
* Fri May 24 2019 Petr Pisar <ppisar@redhat.com> - 0.15-13 * Fri May 24 2019 Petr Pisar <ppisar@redhat.com> - 0.15-13
- Correct a spelling test (bug #1713565) - Correct a spelling test (bug #1713565)

Loading…
Cancel
Save