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)
This commit is contained in:
parent
9cb9d512fd
commit
801b2accba
11
Perl-Critic-1.124-any.patch
Normal file
11
Perl-Critic-1.124-any.patch
Normal file
@ -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
|
@ -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@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@city-fan.org> - 1.123-1
|
||||
- Update to 1.123
|
||||
- Now requires PPI-1.220 which has numerous bug fixes; this may eliminate
|
||||
|
Loading…
Reference in New Issue
Block a user