[perl-Perl-Critic] Update to 1.124
Paul Howarth
pghmcfc at fedoraproject.org
Sat Feb 28 20:30:05 UTC 2015
commit 801b2accba04cd23b932815f84f4ccd8d4b3d87d
Author: Paul Howarth <paul at city-fan.org>
Date: Sat Feb 28 20:23:42 2015 +0000
Update to 1.124
- New upstream release 1.124
- The ProhibitUnusedPrivateSubroutines policy can now ignore files that use
particular modules with the 'skip_when_using' option, which allows, for
example, skipping the policy for roles
- The RequireUseStrict and RequireUseWarnings policies now regard Moose, Moo,
Mouse, Dancer, Mojolicious, and several other modules as equivalent to the
strict and warnings pragma
- The RequireChecked* family of policies has been fixed to accommodate
version numbers when use-ing the autodie pragma (GH #612)
- Add patch to avoid the need for List::Util ≥ 1.33 (GH #626)
Perl-Critic-1.124-any.patch | 11 +++++++++++
perl-Perl-Critic.spec | 23 ++++++++++++++++++++---
sources | 2 +-
3 files changed, 32 insertions(+), 4 deletions(-)
---
diff --git a/Perl-Critic-1.124-any.patch b/Perl-Critic-1.124-any.patch
new file mode 100644
index 0000000..51fcbfb
--- /dev/null
+++ b/Perl-Critic-1.124-any.patch
@@ -0,0 +1,11 @@
+--- lib/Perl/Critic/Policy/Subroutines/ProhibitUnusedPrivateSubroutines.pm
++++ lib/Perl/Critic/Policy/Subroutines/ProhibitUnusedPrivateSubroutines.pm
+@@ -7,7 +7,7 @@ use warnings;
+
+ use English qw< $EVAL_ERROR -no_match_vars >;
+ use Readonly;
+-use List::Util qw(any);
++use List::MoreUtils qw(any);
+
+ use Perl::Critic::Utils qw{
+ :characters hashify is_function_call is_method_call :severities
diff --git a/perl-Perl-Critic.spec b/perl-Perl-Critic.spec
index bb87a95..7711e27 100644
--- a/perl-Perl-Critic.spec
+++ b/perl-Perl-Critic.spec
@@ -1,11 +1,12 @@
Name: perl-Perl-Critic
-Version: 1.123
+Version: 1.124
Release: 1%{?dist}
Summary: Critique Perl source code for best-practices
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Perl-Critic/
Source0: http://search.cpan.org/CPAN/authors/id/T/TH/THALJEF/Perl-Critic-%{version}.tar.gz
+Patch0: Perl-Critic-1.124-any.patch
BuildArch: noarch
# Build process
@@ -116,6 +117,10 @@ of Perl code were mixed directly in the test script. That sucked.
%prep
%setup -q -n Perl-Critic-%{version}
+# Avoid the need for List::Util ≥ 1.33
+# https://github.com/Perl-Critic/Perl-Critic/issues/626
+%patch0
+
# Drop Test::Kwalitee tests in RHEL ≥ 7
%if 0%{?rhel} >= 7
rm xt/author/95_kwalitee.t
@@ -146,13 +151,25 @@ LC_ALL=en_US ./Build %{!?perl_bootstrap:author}test
%{_bindir}/perlcritic
%{perl_vendorlib}/Perl/
%{_mandir}/man1/perlcritic.1*
-%{_mandir}/man3/Perl::Critic*.3pm*
+%{_mandir}/man3/Perl::Critic*.3*
%files -n perl-Test-Perl-Critic-Policy
%{perl_vendorlib}/Test/
-%{_mandir}/man3/Test::Perl::Critic::Policy.3pm*
+%{_mandir}/man3/Test::Perl::Critic::Policy.3*
%changelog
+* Sat Feb 28 2015 Paul Howarth <paul at city-fan.org> - 1.124-1
+- Update to 1.124
+ - The ProhibitUnusedPrivateSubroutines policy can now ignore files that use
+ particular modules with the 'skip_when_using' option, which allows, for
+ example, skipping the policy for roles
+ - The RequireUseStrict and RequireUseWarnings policies now regard Moose, Moo,
+ Mouse, Dancer, Mojolicious, and several other modules as equivalent to the
+ strict and warnings pragma
+ - The RequireChecked* family of policies has been fixed to accommodate
+ version numbers when use-ing the autodie pragma (GH #612)
+- Add patch to avoid the need for List::Util ≥ 1.33 (GH #626)
+
* Wed Nov 12 2014 Paul Howarth <paul at city-fan.org> - 1.123-1
- Update to 1.123
- Now requires PPI-1.220 which has numerous bug fixes; this may eliminate
diff --git a/sources b/sources
index 734ef3f..7e39c92 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e5f36bc65e0e5e379c11d8189c58dad3 Perl-Critic-1.123.tar.gz
+9bfe2d8666a89fa38b0a0c79a1497370 Perl-Critic-1.124.tar.gz
More information about the perl-devel
mailing list