[perl-Pod-Wordlist-hanekomu] Initial import (perl-Pod-Wordlist-hanekomu-1.110090-3)

Paul Howarth pghmcfc at fedoraproject.org
Fri Aug 12 13:16:38 UTC 2011


commit 4cde40827783fd285d53b39904856dc290b93d69
Author: Paul Howarth <paul at city-fan.org>
Date:   Fri Aug 12 14:15:19 2011 +0100

    Initial import (perl-Pod-Wordlist-hanekomu-1.110090-3)
    
    This module, when loaded, adds stopwords for POD spell checking, that is,
    words that should be ignored by the spell check.

 .gitignore                                         |    1 +
 ...hanekomu-1.110090-Test::More-done_testing.patch |   44 +++++++
 ...ordlist-hanekomu-1.110090-Test::More-note.patch |   15 ++
 ...list-hanekomu-1.110090-Test::More-version.patch |   11 ++
 Pod-Wordlist-hanekomu-1.110090-old-eu::mm.patch    |   30 +++++
 perl-Pod-Wordlist-hanekomu.spec                    |  136 ++++++++++++++++++++
 sources                                            |    1 +
 7 files changed, 238 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1f4b876 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Pod-Wordlist-hanekomu-[0-9.]*.tar.gz
diff --git a/Pod-Wordlist-hanekomu-1.110090-Test::More-done_testing.patch b/Pod-Wordlist-hanekomu-1.110090-Test::More-done_testing.patch
new file mode 100644
index 0000000..dfee23f
--- /dev/null
+++ b/Pod-Wordlist-hanekomu-1.110090-Test::More-done_testing.patch
@@ -0,0 +1,44 @@
+diff -up Pod-Wordlist-hanekomu-1.110090/t/000-report-versions.t.orig Pod-Wordlist-hanekomu-1.110090/t/000-report-versions.t
+--- Pod-Wordlist-hanekomu-1.110090/t/000-report-versions.t.orig	2011-08-09 21:55:58.154935282 +0100
++++ Pod-Wordlist-hanekomu-1.110090/t/000-report-versions.t	2011-08-09 21:55:58.156935278 +0100
+@@ -1,7 +1,7 @@
+ #!perl
+ use warnings;
+ use strict;
+-use Test::More 0.88;
++use Test::More tests => 9;
+ 
+ # Include a cut-down version of YAML::Tiny so we don't introduce unnecessary
+ # dependencies ourselves.
+@@ -442,5 +442,4 @@ BEGIN {
+         $version = 'undefined' unless defined $version;
+         diag("    $module version is $version");
+     }
+-    done_testing;
+ }
+diff -up Pod-Wordlist-hanekomu-1.110090/t/release-check-changes.t.orig Pod-Wordlist-hanekomu-1.110090/t/release-check-changes.t
+--- Pod-Wordlist-hanekomu-1.110090/t/release-check-changes.t.orig	2011-01-09 11:39:56.000000000 +0000
++++ Pod-Wordlist-hanekomu-1.110090/t/release-check-changes.t	2011-08-09 21:56:46.577831729 +0100
+@@ -1,16 +1,13 @@
+ #!perl
+ 
++use Test::More;
++
+ BEGIN {
+-  unless ($ENV{RELEASE_TESTING}) {
+-    require Test::More;
+-    Test::More::plan(skip_all => 'these tests are for release candidate testing');
+-  }
++  plan skip_all => 'these tests are for release candidate testing' unless ($ENV{RELEASE_TESTING});
++  eval 'use Test::CheckChanges';
++  plan skip_all => 'Test::CheckChanges required for this test' if $@;
+ }
+ 
++plan tests => 1;
+ 
+-use Test::More;
+-
+-eval "use Test::CheckChanges";
+-plan skip_all => "Test::CheckChanges required for testing changes"
+-  if $@;
+ ok_changes();
diff --git a/Pod-Wordlist-hanekomu-1.110090-Test::More-note.patch b/Pod-Wordlist-hanekomu-1.110090-Test::More-note.patch
new file mode 100644
index 0000000..2dce44b
--- /dev/null
+++ b/Pod-Wordlist-hanekomu-1.110090-Test::More-note.patch
@@ -0,0 +1,15 @@
+--- Pod-Wordlist-hanekomu-1.110090/t/000-report-versions.t
++++ Pod-Wordlist-hanekomu-1.110090/t/000-report-versions.t
+@@ -433,10 +433,10 @@
+     diag("Testing with Perl $], $^X");
+     for my $module (sort keys %requires) {
+         if ($skip{$module}) {
+-            note "$module doesn't want to be loaded directly, skipping";
++            diag "$module doesn't want to be loaded directly, skipping";
+             next;
+         }
+-        local $SIG{__WARN__} = sub { note "$module: $_[0]" };
++        local $SIG{__WARN__} = sub { diag "$module: $_[0]" };
+         require_ok $module or BAIL_OUT("can't load $module");
+         my $version = $module->VERSION;
+         $version = 'undefined' unless defined $version;
diff --git a/Pod-Wordlist-hanekomu-1.110090-Test::More-version.patch b/Pod-Wordlist-hanekomu-1.110090-Test::More-version.patch
new file mode 100644
index 0000000..64d935e
--- /dev/null
+++ b/Pod-Wordlist-hanekomu-1.110090-Test::More-version.patch
@@ -0,0 +1,11 @@
+--- Pod-Wordlist-hanekomu-1.110090/t/000-report-versions.t.orig	2011-01-09 11:39:56.000000000 +0000
++++ Pod-Wordlist-hanekomu-1.110090/t/000-report-versions.t	2011-08-07 13:33:10.926866563 +0100
+@@ -1,7 +1,7 @@
+ #!perl
+ use warnings;
+ use strict;
+-use Test::More 0.94;
++use Test::More 0.88;
+ 
+ # Include a cut-down version of YAML::Tiny so we don't introduce unnecessary
+ # dependencies ourselves.
diff --git a/Pod-Wordlist-hanekomu-1.110090-old-eu::mm.patch b/Pod-Wordlist-hanekomu-1.110090-old-eu::mm.patch
new file mode 100644
index 0000000..0700ce2
--- /dev/null
+++ b/Pod-Wordlist-hanekomu-1.110090-old-eu::mm.patch
@@ -0,0 +1,30 @@
+--- Pod-Wordlist-hanekomu/Makefile.PL
++++ Pod-Wordlist-hanekomu/Makefile.PL
+@@ -4,7 +4,7 @@
+ 
+ BEGIN { require 5.008; }
+ 
+-use ExtUtils::MakeMaker 6.31;
++use ExtUtils::MakeMaker;
+ 
+ 
+ 
+@@ -20,7 +20,7 @@
+     'Test::More' => '0.94'
+   },
+   'CONFIGURE_REQUIRES' => {
+-    'ExtUtils::MakeMaker' => '6.31'
++    'ExtUtils::MakeMaker' => '0'
+   },
+   'DISTNAME' => 'Pod-Wordlist-hanekomu',
+   'EXE_FILES' => [],
+@@ -53,6 +53,9 @@
+ delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+   unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+ 
++delete $WriteMakefileArgs{LICENSE}
++  unless eval { ExtUtils::MakeMaker->VERSION(6.31) };
++
+ WriteMakefile(%WriteMakefileArgs);
+ 
+ 
diff --git a/perl-Pod-Wordlist-hanekomu.spec b/perl-Pod-Wordlist-hanekomu.spec
new file mode 100644
index 0000000..964bd3a
--- /dev/null
+++ b/perl-Pod-Wordlist-hanekomu.spec
@@ -0,0 +1,136 @@
+# We don't really need ExtUtils::MakeMaker ≥ 6.31
+%global old_eumm %(perl -MExtUtils::MakeMaker -e 'printf "%d\\n", $ExtUtils::MakeMaker::VERSION < 6.31 ? 1 : 0;' 2>/dev/null || echo 0)
+
+# We need to patch the test suite if we have an old version of Test::More
+%global old_test_more %(perl -MTest::More -e 'printf "%d\\n", $Test::More::VERSION < 0.94 ? 1 : 0;' 2>/dev/null || echo 0)
+%global older_test_more %(perl -MTest::More -e 'printf "%d\\n", $Test::More::VERSION < 0.88 ? 1 : 0;' 2>/dev/null || echo 0)
+%global even_older_test_more %(perl -MTest::More -e 'printf "%d\\n", $Test::More::VERSION < 0.82 ? 1 : 0;' 2>/dev/null || echo 0)
+
+# noarch, but to avoid debug* files interfering with manifest test:
+%global debug_package %{nil}
+
+Name:		perl-Pod-Wordlist-hanekomu
+Version:	1.110090
+Release:	3%{?dist}
+Summary:	Add words for spell checking POD
+Group:		Development/Libraries
+License:	GPL+ or Artistic
+URL:		http://search.cpan.org/dist/perl-Pod-Wordlist-hanekomu/
+Source0:	http://search.cpan.org/CPAN/authors/id/M/MA/MARCEL/Pod-Wordlist-hanekomu-%{version}.tar.gz
+Patch0:		Pod-Wordlist-hanekomu-1.110090-old-eu::mm.patch
+Patch1:		Pod-Wordlist-hanekomu-1.110090-Test::More-version.patch
+Patch2:		Pod-Wordlist-hanekomu-1.110090-Test::More-done_testing.patch
+Patch3:		Pod-Wordlist-hanekomu-1.110090-Test::More-note.patch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildArch:	noarch
+# ===================================================================
+# Module requirements
+# ===================================================================
+BuildRequires:	aspell-en
+BuildRequires:	perl(Carp)
+BuildRequires:	perl(English)
+BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	perl(File::Find)
+BuildRequires:	perl(File::Temp)
+BuildRequires:	perl(Scalar::Util)
+BuildRequires:	perl(Test::More)
+BuildRequires:	perl(Test::Spelling)
+BuildRequires:	perl(utf8)
+# ===================================================================
+# Author/Release test requirements
+#
+# Don't run these tests or include their requirements if we're
+# bootstrapping, as many of these modules require each other for
+# their author/release tests.
+# ===================================================================
+%if 0%{!?perl_bootstrap:1}
+BuildRequires:	perl(Pod::Coverage::TrustPod)
+BuildRequires:	perl(Test::HasVersion)
+BuildRequires:	perl(Test::CheckChanges)
+BuildRequires:	perl(Test::CPAN::Meta)
+BuildRequires:	perl(Test::DistManifest)
+BuildRequires:	perl(Test::EOL)
+BuildRequires:	perl(Test::NoTabs)
+BuildRequires:	perl(Test::Pod::Coverage)
+BuildRequires:	perl(Test::Pod)
+BuildRequires:	perl(Test::Portability::Files)
+# Modules only available from EL-5
+%if 0%{?fedora} || 0%{?rhel} > 4
+BuildRequires:	perl(Test::Perl::Critic)
+BuildRequires:	perl(Test::Synopsis)
+%endif
+# Modules only available from EL-6
+%if 0%{?fedora} || 0%{?rhel} > 5
+BuildRequires:	perl(Test::Kwalitee)
+BuildRequires:	perl(Test::MinimumVersion)
+BuildRequires:	perl(Test::Vars)
+%endif
+%endif
+# ===================================================================
+# Runtime requirements
+# ===================================================================
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+%description
+This module, when loaded, adds stopwords for POD spell checking, that is,
+words that should be ignored by the spell check.
+
+%prep
+%setup -q -n Pod-Wordlist-hanekomu-%{version}
+
+# We don't really need ExtUtils::MakeMaker ≥ 6.31
+%if %{old_eumm}
+%patch0 -p1
+%endif
+
+# We have to patch the test suite if we have an old Test::More
+#
+# Don't really need Test::More ≥ 0.94
+%if %{old_test_more}
+%patch1 -p1
+%endif
+# done_testing requires Test::More ≥ 0.88
+%if %{older_test_more}
+%patch2 -p1
+%endif
+# note() requires Test::More ≥ 0.82
+%if %{even_older_test_more}
+%patch3 -p1
+%endif
+
+# MANIFEST.SKIP should include MYMETA.yml
+echo MYMETA.yml >> MANIFEST.SKIP
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
+%{_fixperms} %{buildroot}
+
+%check
+make test %{!?perl_bootstrap:AUTHOR_TESTING=1 RELEASE_TESTING=1}
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc Changes LICENSE README
+%{perl_vendorlib}/Pod/
+%{_mandir}/man3/Pod::Wordlist::hanekomu.3pm*
+
+%changelog
+* Tue Aug  9 2011 Paul Howarth <paul at city-fan.org> - 1.110090-3
+- Sanitize for Fedora/EPEL submission
+
+* Tue Aug  9 2011 Paul Howarth <paul at city-fan.org> - 1.110090-2
+- BR: perl(Test::HasVersion) and perl(Test::Vars) for full release test
+  coverage
+
+* Sun Aug  7 2011 Paul Howarth <paul at city-fan.org> - 1.110090-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..6b55fb0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+821e4aefdd7f08299bcb043e9749d908  Pod-Wordlist-hanekomu-1.110090.tar.gz


More information about the scm-commits mailing list