From fc1a857cfff95ca8835a715a1afdaa74a79e6c6d Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 09:45:28 +0100 Subject: [PATCH] package created by autospec [release 0.11-1mamba;Fri Feb 18 2011] --- README.md | 4 ++ perl-Test-Spelling-0.11-hunspell.patch | 48 ++++++++++++++++++++++ perl-Test-Spelling.spec | 55 ++++++++++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 perl-Test-Spelling-0.11-hunspell.patch create mode 100644 perl-Test-Spelling.spec diff --git a/README.md b/README.md index e301dd6..b94bd85 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # perl-Test-Spelling +"Test::Spelling" lets you check the spelling of a POD file, and report +its results in standard "Test::Simple" fashion. This module requires the +spell program. + diff --git a/perl-Test-Spelling-0.11-hunspell.patch b/perl-Test-Spelling-0.11-hunspell.patch new file mode 100644 index 0000000..bdfde05 --- /dev/null +++ b/perl-Test-Spelling-0.11-hunspell.patch @@ -0,0 +1,48 @@ +diff -up Test-Spelling-0.11/lib/Test/Spelling.pm.BAD Test-Spelling-0.11/lib/Test/Spelling.pm +--- Test-Spelling-0.11/lib/Test/Spelling.pm.BAD 2010-01-20 19:35:34.771928737 -0500 ++++ Test-Spelling-0.11/lib/Test/Spelling.pm 2010-01-20 19:37:45.806790957 -0500 +@@ -12,7 +12,7 @@ use Carp; + our $VERSION = '0.11'; + + my $Test = Test::Builder->new; +-my $Spell_cmd = 'spell'; ++my $Spell_cmd = 'hunspell -l'; + my $Spell_temp = File::Temp->new->filename; + + sub import { +@@ -155,7 +155,7 @@ Test::Spelling - check for spelling erro + + C lets you check the spelling of a POD file, and report + its results in standard C fashion. This module requires the +-F program. ++F program. + + use Test::More; + use Test::Spelling; +@@ -172,7 +172,7 @@ module distribution: + + Note, however that it is not really recommended to include this test with a + CPAN distribution, or a package that will run in an uncontrolled environment, +-because there's no way of predicting if F will be available or the ++because there's no way of predicting if F will be available or the + word list used will give the same results (what if it's in a different language, + for example?). You can have the test, but don't add it to F (or add + it to F to make sure you don't add it by accident). Anyway, +@@ -189,7 +189,7 @@ ways to add per-file stopwords to each . + + =head1 DESCRIPTION + +-Check POD files for spelling mistakes, using L and F to do ++Check POD files for spelling mistakes, using L and F to do + the heavy lifting. + + =head1 FUNCTIONS +@@ -278,7 +278,7 @@ in verbatim blocks and code labeled with + + =head2 set_spell_cmd($command) + +-If the F program has a different name or is not in your path, you can ++If the F program has a different name or is not in your path, you can + specify an alternative with C. Any command that takes text + from standard input and prints a list of misspelled words, one per line, to + standard output will do. For example, you can use C. diff --git a/perl-Test-Spelling.spec b/perl-Test-Spelling.spec new file mode 100644 index 0000000..5ba7d32 --- /dev/null +++ b/perl-Test-Spelling.spec @@ -0,0 +1,55 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Test-Spelling +Version: 0.11 +Release: 1mamba +Summary: Test::Spelling - check for spelling errors in POD files +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/I/IT/ITUB/Test-Spelling-%{version}.tar.gz +Patch0: perl-Test-Spelling-0.11-hunspell.patch +License: GPL, Artistic +BuildRequires: perl(Pod::Spell) +BuildRequires: perl(Test::Pod) +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +Requires: hunspell +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +"Test::Spelling" lets you check the spelling of a POD file, and report +its results in standard "Test::Simple" fashion. This module requires the +spell program. + +%prep +%setup -q -n Test-Spelling-%{version} +%patch0 -p1 + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorlib}/Test/ +%{_mandir}/man3/*.3pm.gz +%doc Changes README + +%changelog +* Fri Feb 18 2011 gil 0.11-1mamba +- package created by autospec