From d73ee3bea61945247aa1e870ef5b3e408a59e407 Mon Sep 17 00:00:00 2001 From: Paul Howarth <p...@city-fan.org> Date: Mon, 28 Nov 2016 16:16:54 +0000 Subject: Update to 2.002
- New upstream release 2.002 - No more filtering out core modules (some things are ejected from core!) - Switched from Module::Info to Module::Extract::Use - Switched from old Test::Builder to Test::Builder::Module - Fix postderef (GH#14) - Support test_requires in Module::Build (GH#15) - License changed to Artistic 2.0 --- .gitignore | 1 + Test-Prereq-1.038-perl522.patch | 33 -------------------- perl-Test-Prereq.spec | 68 +++++++++++++++++++++++------------------ sources | 2 +- 4 files changed, 40 insertions(+), 64 deletions(-) delete mode 100644 Test-Prereq-1.038-perl522.patch diff --git a/.gitignore b/.gitignore index a6600f9..cdc35e8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ Test-Prereq-1.037.tar.gz /Test-Prereq-1.038.tar.gz /Test-Prereq-1.039.tar.gz +/Test-Prereq-2.002.tar.gz diff --git a/Test-Prereq-1.038-perl522.patch b/Test-Prereq-1.038-perl522.patch deleted file mode 100644 index bda56c0..0000000 --- a/Test-Prereq-1.038-perl522.patch +++ /dev/null @@ -1,33 +0,0 @@ -diff --git a/t/get_loaded_modules.t b/t/get_loaded_modules.t -index fd09aa0..94e023f 100644 ---- a/t/get_loaded_modules.t -+++ b/t/get_loaded_modules.t -@@ -11,7 +11,7 @@ print STDERR "Didn't find right modules! Found < @$keys >\n" unless - ok( - eq_array( $keys, - [ -- qw( Module::Info Test::Prereq Test::Prereq::Build ) -+ qw( Module::Build Module::Info Test::Prereq Test::Prereq::Build ) - ] ), - 'Right modules for modules and tests' - ); -diff --git a/t/prereq_ok.t b/t/prereq_ok.t -index 663a397..2621e2d 100644 ---- a/t/prereq_ok.t -+++ b/t/prereq_ok.t -@@ -1,2 +1,2 @@ - use Test::Prereq; --prereq_ok( undef, undef, [ qw(CPANPLUS::Internals::System) ] ); -+prereq_ok( undef, undef, [ qw(CPANPLUS::Internals::System Module::Build) ] ); -diff --git a/t/prior_plan.t b/t/prior_plan.t -index 78b4dd1..849c456 100644 ---- a/t/prior_plan.t -+++ b/t/prior_plan.t -@@ -1,6 +1,6 @@ - use Test::More 0.95; - - use Test::Prereq; --prereq_ok( undef, undef, [ qw(CPANPLUS::Internals::System) ] ); -+prereq_ok( undef, undef, [ qw(CPANPLUS::Internals::System Module::Build) ] ); - - done_testing(); diff --git a/perl-Test-Prereq.spec b/perl-Test-Prereq.spec index d5bb4fc..335e08d 100644 --- a/perl-Test-Prereq.spec +++ b/perl-Test-Prereq.spec @@ -1,72 +1,80 @@ Name: perl-Test-Prereq -Version: 1.039 -Release: 3%{?dist} +Version: 2.002 +Release: 1%{?dist} Summary: Check if Makefile.PL has the right pre-requisites -License: GPL+ or Artistic -Group: Development/Libraries +License: Artistic 2.0 URL: http://search.cpan.org/dist/Test-Prereq/ Source0: http://www.cpan.org/authors/id/B/BD/BDFOY/Test-Prereq-%{version}.tar.gz BuildArch: noarch # Build BuildRequires: coreutils BuildRequires: make -BuildRequires: perl +BuildRequires: perl >= 4:5.22.0 BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 -BuildRequires: perl(File::Spec) -BuildRequires: perl(File::Spec::Functions) -BuildRequires: perl(strict) -BuildRequires: perl(warnings) # Runtime -BuildRequires: perl(base) BuildRequires: perl(Carp) -BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(feature) BuildRequires: perl(File::Find) BuildRequires: perl(Module::Build) -BuildRequires: perl(Module::CoreList) -BuildRequires: perl(Module::Info) -BuildRequires: perl(Test::Builder) -# 0.95 is not required at runtime -BuildRequires: perl(Test::More) >= 0.95 +BuildRequires: perl(Module::Extract::Use) +BuildRequires: perl(parent) +BuildRequires: perl(strict) +BuildRequires: perl(Test::Builder::Module) BuildRequires: perl(utf8) BuildRequires: perl(vars) +BuildRequires: perl(warnings) # Tests only BuildRequires: perl(Cwd) BuildRequires: perl(lib) +BuildRequires: perl(Test::Builder::Tester) +BuildRequires: perl(Test::More) >= 1.00 +# Optional Tests +BuildRequires: perl(Test::Manifest) >= 1.21 +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(Test::Pod::Coverage) +# Dependencies Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) -Requires: perl(CPAN) %description The prereq_ok() function examines the modules it finds in blib/lib/, -blib/script, and the test files it finds in t/ (and test.pl). It figures -out which modules they use, skips the modules that are in the Perl core, -and compares the remaining list of modules to those in the PREREQ_PM -section of Makefile.PL. +blib/script, and the test files it finds in t/ (and test.pl). It figures out +which modules they use and compares that list of modules to those in the +PREREQ_PM section of Makefile.PL. + +If you use Module::Build, see Test::Prereq::Build instead. %prep %setup -q -n Test-Prereq-%{version} %build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 make %{?_smp_mflags} %install -make pure_install DESTDIR=%{buildroot} -%{_fixperms} %{buildroot}/* +make install DESTDIR=%{buildroot} +%{_fixperms} -c %{buildroot} %check -# t/get_from_prereqs.t requires interactive CPAN module configuration and -# network access. -rm t/get_from_prereqs.t make test %files %license LICENSE %doc Changes README.pod -%{perl_vendorlib}/* -%{_mandir}/man3/* +%{perl_vendorlib}/Test/ +%{_mandir}/man3/Test::Prereq.3* +%{_mandir}/man3/Test::Prereq::Build.3* %changelog +* Mon Nov 28 2016 Paul Howarth <p...@city-fan.org> - 2.002-1 +- Update to 2.002 + - No more filtering out core modules (some things are ejected from core!) + - Switched from Module::Info to Module::Extract::Use + - Switched from old Test::Builder to Test::Builder::Module + - Fix postderef (GH#14) + - Support test_requires in Module::Build (GH#15) +- License changed to Artistic 2.0 + * Sun May 15 2016 Jitka Plesnikova <jples...@redhat.com> - 1.039-3 - Perl 5.24 rebuild diff --git a/sources b/sources index 358e151..8477ad9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -5c215f4915f3965366cb1c6259ee56c0 Test-Prereq-1.039.tar.gz +707abb32e1143f574d13931afc3909f2 Test-Prereq-2.002.tar.gz -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Test-Prereq.git/commit/?h=perl-Test-Prereq-2.002-1.fc26&id=d73ee3bea61945247aa1e870ef5b3e408a59e407 _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org