263effc
Name:           perl-Test-Spelling
da069bf
Version:        0.20
c4841f7
Release:        10%{?dist}
263effc
Summary:        Check for spelling errors in POD files
e39ba36
License:        GPL+ or Artistic
263effc
URL:            http://search.cpan.org/dist/Test-Spelling/
0cf0952
Source0:        http://search.cpan.org/CPAN/authors/id/S/SA/SARTAK/Test-Spelling-%{version}.tar.gz
da069bf
Patch0:         Test-Spelling-0.20-hunspell.patch
263effc
BuildArch:      noarch
da069bf
# Module Build
5b25c01
BuildRequires:  coreutils
5b25c01
BuildRequires:  make
8a46f41
BuildRequires:  perl-interpreter
76eaedc
BuildRequires:  perl-generators
5b25c01
BuildRequires:  perl(inc::Module::Install)
5b25c01
BuildRequires:  perl(Module::Install::AutoManifest)
5b25c01
BuildRequires:  perl(Module::Install::GithubMeta)
5b25c01
BuildRequires:  perl(Module::Install::ManifestSkip)
5b25c01
BuildRequires:  perl(Module::Install::Metadata)
5b25c01
BuildRequires:  perl(Module::Install::WriteAll)
5b25c01
BuildRequires:  sed
da069bf
# Module Runtime
da069bf
BuildRequires:  hunspell
ec71773
BuildRequires:  perl(base)
ec71773
BuildRequires:  perl(Carp)
ec71773
BuildRequires:  perl(Exporter)
ec71773
BuildRequires:  perl(File::Spec)
195a41b
BuildRequires:  perl(IPC::Run3) >= 0.044
263effc
BuildRequires:  perl(Pod::Spell) >= 1.01
da069bf
BuildRequires:  perl(strict)
da069bf
BuildRequires:  perl(Symbol)
ec71773
BuildRequires:  perl(Test::Builder)
da069bf
BuildRequires:  perl(Text::Wrap)
da069bf
BuildRequires:  perl(warnings)
da069bf
# Test Suite
da069bf
BuildRequires:  hunspell-en
da069bf
BuildRequires:  perl(Test::More) >= 0.88
ec71773
BuildRequires:  perl(Test::Pod) >= 1.00
e2c1e43
BuildRequires:  perl(Test::Tester)
da069bf
# Runtime
7f5db68
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
33ae9d1
Requires:       hunspell
ec71773
Requires:       perl(Carp)
263effc
263effc
%description
263effc
"Test::Spelling" lets you check the spelling of a POD file, and report
263effc
its results in standard "Test::Simple" fashion. This module requires the
0cf0952
hunspell program.
263effc
263effc
%prep
263effc
%setup -q -n Test-Spelling-%{version}
e2c1e43
e2c1e43
# Promote hunspell over spell/aspell to avoid surprises if aspell is installed
82c4f32
%patch0
263effc
5b25c01
# Remove bundled modules
5b25c01
rm -r ./inc/*
5b25c01
sed -i -e '/^inc\//d' MANIFEST
5b25c01
e2c1e43
# Force the author test to run too
e2c1e43
mkdir inc/.author
e2c1e43
263effc
%build
7f5db68
perl Makefile.PL INSTALLDIRS=vendor
263effc
make %{?_smp_mflags}
263effc
263effc
%install
7f5db68
make pure_install DESTDIR=%{buildroot}
7f5db68
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
7f5db68
%{_fixperms} %{buildroot}
263effc
263effc
%check
263effc
make test
263effc
263effc
%files
263effc
%doc Changes README
263effc
%{perl_vendorlib}/Test/
da069bf
%{_mandir}/man3/Test::Spelling.3*
263effc
263effc
%changelog
c4841f7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-10
c4841f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c4841f7
aba3d84
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-9
aba3d84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
aba3d84
e1b218e
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.20-8
e1b218e
- Perl 5.26 rebuild
e1b218e
5b25c01
* Thu May 18 2017 Petr Pisar <ppisar@redhat.com> - 0.20-7
5b25c01
- Fix building on Perl without "." in @INC (CPAN RT#120425)
5b25c01
71945d0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-6
71945d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
71945d0
adb50b3
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.20-5
adb50b3
- Perl 5.24 rebuild
adb50b3
a364ff8
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-4
a364ff8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a364ff8
f81e7a2
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-3
f81e7a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f81e7a2
a6e88a6
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.20-2
a6e88a6
- Perl 5.22 rebuild
a6e88a6
da069bf
* Tue Oct  7 2014 Paul Howarth <paul@city-fan.org> - 0.20-1
da069bf
- Update to 0.20
da069bf
  - Add a sorted list of your most commonly misspelled words to the end of
da069bf
    all_pod_files_spelling_ok to aid stopword list creation and bulk
da069bf
    correction
da069bf
- Classify buildreqs by usage
da069bf
- Update hunspell preference patch
da069bf
469b026
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.19-5
469b026
- Perl 5.20 rebuild
469b026
bba6a9e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-4
bba6a9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bba6a9e
52616b9
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-3
52616b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
52616b9
f89ec86
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 0.19-2
f89ec86
- Perl 5.18 rebuild
f89ec86
8503cfc
* Sun May  5 2013 Paul Howarth <paul@city-fan.org> - 0.19-1
8503cfc
- Update to 0.19:
8503cfc
  - For more consistent results, avoid using the user's local aspell dictionary
da069bf
    (CPAN RT#84869)
8503cfc
- Update hunspell preference patch
8503cfc
9197c5e
* Fri Apr 26 2013 Paul Howarth <paul@city-fan.org> - 0.18-1
9197c5e
- Update to 0.18:
9197c5e
  - Work around Pod::Spell limitations
9197c5e
  - Improve case handling
9197c5e
  - Improve test failure reporting
9197c5e
  - Include more useful info in Test-Spelling's own test suite
9197c5e
195a41b
* Mon Jan 28 2013 Paul Howarth <paul@city-fan.org> - 0.17-1
195a41b
- Update to 0.17:
195a41b
  - Use IPC::Run3 instead of IPC::Open3
195a41b
82c4f32
* Fri Dec 21 2012 Paul Howarth <paul@city-fan.org> - 0.16-1
82c4f32
- Update to 0.16:
82c4f32
  - Allow use of a custom POD parser rather than Pod::Spell using
82c4f32
    set_pod_parser
82c4f32
- Re-diff patch to avoid shipping .orig file
82c4f32
ec71773
* Wed Nov 21 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-5
ec71773
- Update dependencies
ec71773
- Don't need to remove empty directories from the buildroot
ec71773
- Drop %%defattr, redundant since rpm 4.4
ec71773
b57edf9
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-4
b57edf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b57edf9
7b15035
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.15-3
7b15035
- Perl 5.16 rebuild
7b15035
d364e17
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-2
d364e17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d364e17
e2c1e43
* Tue Aug 23 2011 Paul Howarth <paul@city-fan.org> - 0.15-1
e2c1e43
- Update to 0.15:
e2c1e43
  - Begin adding actual tests (hilariously, adding the suggested t/pod-spell.t
e2c1e43
    to this dist to test itself found a typo: "stopwards")
e2c1e43
- BR: perl(Test::Tester) and hunspell-en
e2c1e43
781a897
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.14-2
781a897
- Perl mass rebuild
781a897
6558e02
* Fri May 27 2011 Paul Howarth <paul@city-fan.org> - 0.14-1
6558e02
- Update to 0.14:
6558e02
  - Fix an error when using add_stopwords("constant","strings") (CPAN RT#68471)
6558e02
c8a2ad4
* Wed Apr 27 2011 Paul Howarth <paul@city-fan.org> - 0.13-1
c8a2ad4
- Update to 0.13:
c8a2ad4
  - Make alternatives checking more robust by reading the spellchecker's STDERR
c8a2ad4
0cf0952
* Tue Apr 26 2011 Paul Howarth <paul@city-fan.org> - 0.12-1
0cf0952
- Update to 0.12:
0cf0952
  - Best Practical has taken over maintainership of this module
0cf0952
  - Try various spellcheck programs instead of hardcoding the ancient `spell`
0cf0952
    (CPAN RT#56483)
0cf0952
  - Remove temporary files more aggressively (CPAN RT#41586)
0cf0952
  - Fixed by not creating them at all - instead we now use IPC::Open3
0cf0952
  - Remove suggestion to use broken `aspell -l` (CPAN RT#28967)
0cf0952
  - Add set_pod_file_filter for skipping translations, etc. (CPAN RT#63755)
0cf0952
  - Skip tests in all_pod_files_spelling_ok if there is no working spellchecker
0cf0952
  - Provide a has_working_spellchecker so you can skip your own tests if
0cf0952
    there's no working spellchecker
0cf0952
  - Switch to Module::Install
0cf0952
  - Rewrite and modernize a lot of the documentation
0cf0952
  - Decruftify code, such as by using Exporter and lexical filehandles
0cf0952
  - Support .plx files
0cf0952
- This release by SARTAK -> update source URL
0cf0952
- Rewrite hunspell patch to just favour hunspell over aspell
0cf0952
- BR: perl(IPC::Open3)
0cf0952
205643f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-11
205643f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
205643f
aba9a9f
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.11-10
7f5db68
- Rebuild to fix problems with vendorarch/lib (#661697)
aba9a9f
8559f44
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.11-9
8559f44
- Mass rebuild with perl-5.12.0
8559f44
9c95b33
* Fri Jan 29 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 0.11-8
9c95b33
- actually apply patch. :P
9c95b33
33ae9d1
* Wed Jan 20 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 0.11-7
33ae9d1
- use hunspell instead of aspell (bz 508643)
33ae9d1
b63a0f1
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 0.11-6
b63a0f1
- rebuild against perl 5.10.1
b63a0f1
2f0163d
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
2f0163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2f0163d
57e1262
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
57e1262
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
57e1262
8a92e8b
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.11-3
8a92e8b
- Rebuild for perl 5.10 (again)
8a92e8b
731f285
* Sun Jan 13 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.11-2
731f285
- rebuild for new perl
731f285
263effc
* Tue Dec 19 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.11-1
263effc
- First build.