[perl-Perl-Critic] Update to 1.122
Paul Howarth
pghmcfc at fedoraproject.org
Mon Aug 25 23:18:58 UTC 2014
commit 8ec205d92caab0c2e3587d0a341522e8f0e96ba5
Author: Paul Howarth <paul at city-fan.org>
Date: Tue Aug 26 00:09:44 2014 +0100
Update to 1.122
- New upstream release 1.122
- Now requires PPI-1.218, which has numerous enahncements and bug fixes
- Also now requires Readonly-2.00, which obviates the need for Readonly::XS
to get fast constants
- File::HomeDir, File::Which, and Term::ANSIColor are all required now
instead of being optional or recommended; this simplifies our test code
and ensures consistent optimal behavior for all users
- Added two new policies: BuiltinFunctions::ProhibitUselessTopic and
RegularExpressions::ProhibitUselessTopic
- Updated the perlcritic.el script to use modern Emacs hooks (GH #556)
- Removed all the internal RCS keyword boilerplate blocks that were never
getting expanded
- Use %license where possible
- Drop upstreamed patches
...tic-1.121-do-not-use-Readonly-XS-directly.patch | 22 --------
Perl-Critic-1.121-metadata.patch | 22 --------
perl-Perl-Critic.spec | 51 ++++++++++++--------
sources | 2 +-
4 files changed, 31 insertions(+), 66 deletions(-)
---
diff --git a/perl-Perl-Critic.spec b/perl-Perl-Critic.spec
index 9595399..030558c 100644
--- a/perl-Perl-Critic.spec
+++ b/perl-Perl-Critic.spec
@@ -1,13 +1,11 @@
Name: perl-Perl-Critic
-Version: 1.121
-Release: 4%{?dist}
+Version: 1.122
+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
-Patch2: Perl-Critic-1.121-do-not-use-Readonly-XS-directly.patch
-Patch3: Perl-Critic-1.121-metadata.patch
BuildArch: noarch
# Build process
@@ -28,10 +26,12 @@ BuildRequires: perl(Email::Address) >= 1.889
BuildRequires: perl(English)
BuildRequires: perl(Exception::Class) >= 1.23
BuildRequires: perl(Exporter) >= 5.58
+BuildRequires: perl(File::HomeDir)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Unix)
BuildRequires: perl(File::Temp)
+BuildRequires: perl(File::Which)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(IO::String)
BuildRequires: perl(List::MoreUtils) >= 0.19
@@ -43,23 +43,18 @@ BuildRequires: perl(Pod::PlainText)
BuildRequires: perl(Pod::Select)
BuildRequires: perl(Pod::Spell) >= 1
BuildRequires: perl(Pod::Usage)
-BuildRequires: perl(PPI) >= 1.215
+BuildRequires: perl(PPI) >= 1.218
BuildRequires: perl(PPIx::Regexp) >= 0.010
BuildRequires: perl(PPIx::Utilities::Node)
BuildRequires: perl(PPIx::Utilities::Statement) >= 1.001
-BuildRequires: perl(Readonly) >= 1.03
+BuildRequires: perl(Readonly) >= 2
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(String::Format) >= 1.13
+BuildRequires: perl(Term::ANSIColor) >= 2.02
BuildRequires: perl(Test::Builder) >= 0.92
BuildRequires: perl(Text::ParseWords) >= 3
BuildRequires: perl(version) >= 0.77
-# Optional module requirements
-BuildRequires: perl(File::HomeDir)
-BuildRequires: perl(File::Which)
-BuildRequires: perl(Readonly::XS)
-BuildRequires: perl(Term::ANSIColor) >= 2.02
-
# Main test suite
BuildRequires: perl(Fatal)
BuildRequires: perl(File::Spec::Functions)
@@ -92,8 +87,7 @@ Requires: perl(File::HomeDir)
Requires: perl(File::Which)
Requires: perl(Module::Pluggable) >= 3.1
Requires: perl(Pod::Parser)
-Requires: perl(PPI) >= 1.215
-Requires: perl(Readonly::XS)
+Requires: perl(PPI) >= 1.218
Requires: perl(Term::ANSIColor) >= 2.02
%description
@@ -121,12 +115,6 @@ of Perl code were mixed directly in the test script. That sucked.
%prep
%setup -q -n Perl-Critic-%{version}
-# xt/author/82_optional_modules.t shouldn't be trying to use Readonly::XS (#1092921)
-%patch2
-
-# Upstream fix for Build.PL to work with current toolchain
-%patch3
-
# Drop Test::Kwalitee tests in RHEL ≥ 7
%if 0%{?rhel} >= 7
rm xt/author/95_kwalitee.t
@@ -148,7 +136,12 @@ perl Build.PL installdirs=vendor
LC_ALL=en_US ./Build %{!?perl_bootstrap:author}test
%files
-%doc Changes LICENSE README TODO.pod examples/ extras/ tools/
+%if 0%{?_licensedir:1}
+%license LICENSE
+%else
+%doc LICENSE
+%endif
+%doc Changes README TODO.pod examples/ extras/ tools/
%{_bindir}/perlcritic
%{perl_vendorlib}/Perl/
%{_mandir}/man1/perlcritic.1*
@@ -159,6 +152,22 @@ LC_ALL=en_US ./Build %{!?perl_bootstrap:author}test
%{_mandir}/man3/Test::Perl::Critic::Policy.3pm*
%changelog
+* Mon Aug 25 2014 Paul Howarth <paul at city-fan.org> - 1.122-1
+- Update to 1.122
+ - Now requires PPI-1.218, which has numerous enahncements and bug fixes
+ - Also now requires Readonly-2.00, which obviates the need for Readonly::XS
+ to get fast constants
+ - File::HomeDir, File::Which, and Term::ANSIColor are all required now
+ instead of being optional or recommended; this simplifies our test code
+ and ensures consistent optimal behavior for all users
+ - Added two new policies: BuiltinFunctions::ProhibitUselessTopic and
+ RegularExpressions::ProhibitUselessTopic
+ - Updated the perlcritic.el script to use modern Emacs hooks (GH #556)
+ - Removed all the internal RCS keyword boilerplate blocks that were never
+ getting expanded
+- Use %%license where possible
+- Drop upstreamed patches
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.121-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index 38915f9..762d3a8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d14676d579c4fbc2736106f9863d4d1f Perl-Critic-1.121.tar.gz
+b4f56e2839bfd868a9d15f0e52874896 Perl-Critic-1.122.tar.gz
More information about the perl-devel
mailing list