Notification time stamped 2019-12-18 11:22:51 UTC
From f97cd090c0c5e0e1fb2b785ea65661b721bbb880 Mon Sep 17 00:00:00 2001
From: Paul Howarth <paul(a)city-fan.org>
Date: Dec 18 2019 11:21:46 +0000
Subject: Update to 1.044
- New upstream release 1.044
- Handle a couple of new cases:
- Include the modules specified by parent or base
- Find the requires in expressions, like 'my $r = require Foo'
- Small documentation and examples updates
- Add patch to fix t/rt/79273.t (GH#5)
---
diff --git a/0001-Fix-t-rt-79273.t-now-that-modules-loaded-via-parent-.patch
b/0001-Fix-t-rt-79273.t-now-that-modules-loaded-via-parent-.patch
new file mode 100644
index 0000000..1f09b09
--- /dev/null
+++ b/0001-Fix-t-rt-79273.t-now-that-modules-loaded-via-parent-.patch
@@ -0,0 +1,60 @@
+From 7208641a66165f840bae8feb9f0483f462a7f486 Mon Sep 17 00:00:00 2001
+From: Paul Howarth <paul(a)city-fan.org>
+Date: Wed, 18 Dec 2019 10:46:31 +0000
+Subject: [PATCH] Fix t/rt/79273.t now that modules loaded via parent are
+ detected
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This test is not run by default and hence was missed in the 1.044 release. It
+is run only if Test::Manifest ≥ 1.21 is present.
+---
+ t/rt/79273.t | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/t/rt/79273.t b/t/rt/79273.t
+index b23428a..7ea8dd8 100755
+--- a/t/rt/79273.t
++++ b/t/rt/79273.t
+@@ -21,7 +21,7 @@ my $file = catfile( qw(corpus RT79273.pm) );
+ ok( -e $file, "Test file [$file] is there" );
+
+ my $details = $extor->get_modules_with_details( $file );
+-is( scalar @$details, 2, 'There are the right number of hits' );
++is( scalar @$details, 3, 'There are the right number of hits' );
+
+ is_deeply( $details, expected(), 'The data structures match' );
+ }
+@@ -29,6 +29,7 @@ is_deeply( $details, expected(), 'The data structures match'
);
+ sub expected {
+ return [
+ {
++ 'direct' => 1,
+ 'content' => 'use parent \'CGI::Snapp\';',
+ 'pragma' => 'parent',
+ 'version' => undef,
+@@ -36,11 +37,20 @@ sub expected {
+ 'module' => 'parent'
+ },
+ {
++ 'direct' => 1,
+ 'content' => 'use Capture::Tiny \'capture\';',
+ 'pragma' => '',
+ 'version' => undef,
+ 'imports' => [qw(capture)],
+ 'module' => 'Capture::Tiny'
+ },
++ {
++ 'direct' => 0,
++ 'content' => 'use parent \'CGI::Snapp\';',
++ 'pragma' => undef,
++ 'version' => undef,
++ 'imports' => [],
++ 'module' => 'CGI::Snapp'
++ },
+ ];
+ }
+--
+2.23.0
+
diff --git a/perl-Module-Extract-Use.spec b/perl-Module-Extract-Use.spec
index 2daeac2..a0df5dd 100644
--- a/perl-Module-Extract-Use.spec
+++ b/perl-Module-Extract-Use.spec
@@ -1,10 +1,11 @@
Summary: Pull out the modules a module explicitly uses
Name: perl-Module-Extract-Use
-Version: 1.043
-Release: 10%{?dist}
+Version: 1.044
+Release: 1%{?dist}
License: Artistic 2.0
URL:
https://metacpan.org/release/Module-Extract-Use
Source0:
https://cpan.metacpan.org/modules/by-module/Module/Module-Extract-Use-%{v...
+Patch1: 0001-Fix-t-rt-79273.t-now-that-modules-loaded-via-parent-.patch
BuildArch: noarch
# Module Build
BuildRequires: coreutils
@@ -25,7 +26,7 @@ BuildRequires: perl(warnings)
# Test Suite
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(File::Basename)
-BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::More) >= 1.0
# Optional Tests
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
@@ -44,6 +45,10 @@ returns.
%prep
%setup -q -n Module-Extract-Use-%{version}
+# Fix t/rt/79273.t
+#
https://github.com/briandfoy/module-extract-use/pull/5
+%patch1 -p1
+
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
@@ -67,6 +72,14 @@ make test
%{_mandir}/man3/Module::Extract::Use.3*
%changelog
+* Wed Dec 18 2019 Paul Howarth <paul(a)city-fan.org> - 1.044-1
+- Update to 1.044
+ - Handle a couple of new cases:
+ - Include the modules specified by parent or base
+ - Find the requires in expressions, like 'my $r = require Foo'
+ - Small documentation and examples updates
+- Add patch to fix t/rt/79273.t (GH#5)
+
* Fri Jul 26 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.043-10
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
diff --git a/sources b/sources
index 996d7f6..c4b50e2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (Module-Extract-Use-1.043.tar.gz) =
f45cc1e20fc01cca2126c60402aa2962bd982df7df5ef8548729e07b029df5379b1a9cbb598244f34c869c0d14741ddc490984623aeb8b8893ef680414b3acbc
+SHA512 (Module-Extract-Use-1.044.tar.gz) =
48722792fc548eadaca2197f4be3262c5b453c523cc0f7f60be2ef8996dea41945834159ec5ee025e8fe5064541ba1f00427c6e4d033261fadd1d62ffc9e1ca5
https://src.fedoraproject.org/rpms/perl-Module-Extract-Use/c/f97cd090c0c5...