commit 541b0187d569bb527451b34e8b3e406240eda65b Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Mon Sep 8 13:55:23 2014 +0100 Update to 0.09 - New upstream release 0.09 - Implemented and then reverted a change to use Sub::Name (CPAN RT#98097) - Modernize spec - Hack out references to currently-unavailable Test::CleanNamespaces Module-Implementation-0.07-old-Test::More.patch | 174 ----------------------- perl-Module-Implementation.spec | 67 ++++----- sources | 2 +- 3 files changed, 33 insertions(+), 210 deletions(-) --- diff --git a/perl-Module-Implementation.spec b/perl-Module-Implementation.spec index 3b90e70..ecc0e11 100644 --- a/perl-Module-Implementation.spec +++ b/perl-Module-Implementation.spec @@ -1,27 +1,20 @@ -# We need to patch the test suite if we have an old version of Test::More -%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.96) ? 1 : 0);' 2>/dev/null || echo 0) - -# Test::CPAN::Changes isn't available in EPEL < 7, due to requirement of perl(version) ≥ 0.79 -%global cpan_changes_available %(expr 0%{?fedora} + 0%{?rhel} '>' 6) - -#TODO: BR: Test::Pod::No404s when available -#TODO: BR: Test::Pod::LinkCheck when available +#TODO: BR: Test::CleanNamespaces when available Name: perl-Module-Implementation -Version: 0.07 -Release: 6%{?dist} +Version: 0.09 +Release: 1%{?dist} Summary: Loads one of several alternate underlying implementations for a module Group: Development/Libraries License: Artistic 2.0 URL: http://search.cpan.org/dist/perl-Module-Implementation/ Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Module-Implementation-%{version}.tar.gz -Patch1: Module-Implementation-0.07-old-Test::More.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch # =================================================================== # Build requirements # =================================================================== -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) # =================================================================== # Module requirements # =================================================================== @@ -33,34 +26,36 @@ BuildRequires: perl(warnings) # =================================================================== # Test suite requirements # =================================================================== -BuildRequires: perl(File::Find) -BuildRequires: perl(File::Temp) +BuildRequires: perl(File::Spec) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(IPC::Open3) BuildRequires: perl(lib) BuildRequires: perl(Test::Fatal) >= 0.006 -BuildRequires: perl(Test::More) +BuildRequires: perl(Test::More) >= 0.96 BuildRequires: perl(Test::Requires) +# =================================================================== +# Optional test requirements +# =================================================================== +BuildRequires: perl(CPAN::Meta) >= 2.120900 BuildRequires: perl(Test::Taint) # =================================================================== # Author/Release test requirements # =================================================================== # Release tests include circular dependencies, so don't do them when bootstrapping: -# Test::CPAN::Changes -> Moo -> stricture -> indirect -> Test::Kwalitee -> -# namespace::clean -> [B::Hooks::EndOfScope|Package::Stash] -> Module::Implementation %if ! %{defined perl_bootstrap} -%if %{cpan_changes_available} -BuildRequires: perl(Test::CPAN::Changes) >= 0.19 -%endif BuildRequires: perl(Pod::Coverage::TrustPod) +BuildRequires: perl(Test::CPAN::Changes) >= 0.19 BuildRequires: perl(Test::EOL) BuildRequires: perl(Test::NoTabs) -BuildRequires: perl(Test::Pod) -BuildRequires: perl(Test::Pod::Coverage) -# Can't use aspell-en from EPEL as BR: for RHEL-7+ package, and older EL -# releases don't have recent enough Test::Spelling so skip author tests -# there +BuildRequires: perl(Test::Pod) >= 1.41 +BuildRequires: perl(Test::Pod::Coverage) >= 1.08 +BuildRequires: perl(Test::Portability::Files) +# Can't use EPEL packages as BR: for RHEL package %if ! 0%{?rhel} BuildRequires: aspell-en -BuildRequires: perl(Pod::Wordlist::hanekomu) +BuildRequires: perl(Pod::Wordlist) +BuildRequires: perl(Test::Pod::LinkCheck) +BuildRequires: perl(Test::Pod::No404s) BuildRequires: perl(Test::Spelling) >= 0.12 %endif %endif @@ -84,17 +79,15 @@ something like a plugin system, not this module. %prep %setup -q -n Module-Implementation-%{version} -# We have to patch the test suite if we have an old Test::More -%if %{old_test_more} -%patch1 -p1 -%endif +# Can't try namespace-cleanliness.t until we have Test::CleanNamespaces +sed -i -e '/namespace-cleanliness.t/d' MANIFEST t/00-report-prereqs.t t/author-no-tabs.t +rm t/namespace-cleanliness.t %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install -rm -rf %{buildroot} make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} \; %{_fixperms} %{buildroot} @@ -111,15 +104,19 @@ make test RELEASE_TESTING=1 %endif %endif -%clean -rm -rf %{buildroot} - %files -%doc Changes LICENSE README +%license LICENSE +%doc Changes README.md %{perl_vendorlib}/Module/ %{_mandir}/man3/Module::Implementation.3pm* %changelog +* Mon Sep 8 2014 Paul Howarth <paul@xxxxxxxxxxxx> - 0.09-1 +- Update to 0.09 + - Implemented and then reverted a change to use Sub::Name (CPAN RT#98097) +- Modernize spec +- Hack out references to currently-unavailable Test::CleanNamespaces + * Fri Aug 29 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 0.07-6 - Perl 5.20 rebuild diff --git a/sources b/sources index 67974cd..72a6e0d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -55483fce4266747e823a1004499bd70c Module-Implementation-0.07.tar.gz +52e3fe0ca6b1eff0488d59b7aacc0667 Module-Implementation-0.09.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel