|
|
@ -1,6 +1,6 @@
|
|
|
|
Name: perl-Perl-Critic
|
|
|
|
Name: perl-Perl-Critic
|
|
|
|
Version: 1.117
|
|
|
|
Version: 1.117
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Summary: Critique Perl source code for best-practices
|
|
|
|
Summary: Critique Perl source code for best-practices
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
License: GPL+ or Artistic
|
|
|
@ -68,7 +68,9 @@ BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Devel::EnforceEncapsulation)
|
|
|
|
BuildRequires: perl(Devel::EnforceEncapsulation)
|
|
|
|
BuildRequires: perl(Perl::Critic::Policy::Editor::RequireEmacsFileVariables)
|
|
|
|
BuildRequires: perl(Perl::Critic::Policy::Editor::RequireEmacsFileVariables)
|
|
|
|
BuildRequires: perl(Perl::Critic::Policy::ErrorHandling::RequireUseOfExceptions)
|
|
|
|
BuildRequires: perl(Perl::Critic::Policy::ErrorHandling::RequireUseOfExceptions)
|
|
|
|
|
|
|
|
%if ! (0%{?rhel} >= 7)
|
|
|
|
BuildRequires: perl(Test::Kwalitee)
|
|
|
|
BuildRequires: perl(Test::Kwalitee)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
BuildRequires: perl(Test::Perl::Critic)
|
|
|
|
BuildRequires: perl(Test::Perl::Critic)
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
|
|
@ -110,6 +112,11 @@ of Perl code were mixed directly in the test script. That sucked.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n Perl-Critic-%{version}
|
|
|
|
%setup -q -n Perl-Critic-%{version}
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
|
|
|
|
# Drop Test::Kwalitee tests in RHEL >= 7
|
|
|
|
|
|
|
|
rm xt/author/95_kwalitee.t
|
|
|
|
|
|
|
|
sed -i -e '/^xt\/author\/95_kwalitee.t$/ d' MANIFEST
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# Drop exec bits from samples/docs to avoid dependency bloat
|
|
|
|
# Drop exec bits from samples/docs to avoid dependency bloat
|
|
|
|
find tools examples -type f -exec chmod -c -x {} ';'
|
|
|
|
find tools examples -type f -exec chmod -c -x {} ';'
|
|
|
@ -137,6 +144,9 @@ LC_ALL=en_US ./Build %{!?perl_bootstrap:author}test
|
|
|
|
%{_mandir}/man3/Test::Perl::Critic::Policy.3pm*
|
|
|
|
%{_mandir}/man3/Test::Perl::Critic::Policy.3pm*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Apr 24 2012 Petr Pisar <ppisar@redhat.com> - 1.117-4
|
|
|
|
|
|
|
|
- Do not use Test::Kwalitee on RHEL >= 7
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 28 2012 Paul Howarth <paul@city-fan.org> - 1.117-3
|
|
|
|
* Tue Feb 28 2012 Paul Howarth <paul@city-fan.org> - 1.117-3
|
|
|
|
- spec clean-up
|
|
|
|
- spec clean-up
|
|
|
|
- separate build requirements and runtime requirements
|
|
|
|
- separate build requirements and runtime requirements
|
|
|
|