Do not use Test::Kwalitee on RHEL >= 7

This commit is contained in:
Petr Písař 2012-04-24 15:38:58 +02:00
parent e246452eaa
commit 69efbb0993

View File

@ -1,6 +1,6 @@
Name: perl-Perl-Critic
Version: 1.117
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Critique Perl source code for best-practices
Group: Development/Libraries
License: GPL+ or Artistic
@ -68,7 +68,9 @@ BuildRequires: perl(Test::More)
BuildRequires: perl(Devel::EnforceEncapsulation)
BuildRequires: perl(Perl::Critic::Policy::Editor::RequireEmacsFileVariables)
BuildRequires: perl(Perl::Critic::Policy::ErrorHandling::RequireUseOfExceptions)
%if ! (0%{?rhel} >= 7)
BuildRequires: perl(Test::Kwalitee)
%endif
BuildRequires: perl(Test::Perl::Critic)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
@ -110,6 +112,11 @@ of Perl code were mixed directly in the test script. That sucked.
%prep
%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
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*
%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
- spec clean-up
- separate build requirements and runtime requirements