[perl-Perl-Critic] Do not use Test::Kwalitee on RHEL >= 7

Petr Pisar ppisar at fedoraproject.org
Tue Apr 24 15:10:11 UTC 2012


commit 69efbb099367a7ff6a35107cc3079a02a8e599f5
Author: Petr Písař <ppisar at redhat.com>
Date:   Tue Apr 24 15:38:58 2012 +0200

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

 perl-Perl-Critic.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/perl-Perl-Critic.spec b/perl-Perl-Critic.spec
index 216f424..23fdec1 100644
--- a/perl-Perl-Critic.spec
+++ b/perl-Perl-Critic.spec
@@ -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 at redhat.com> - 1.117-4
+- Do not use Test::Kwalitee on RHEL >= 7
+
 * Tue Feb 28 2012 Paul Howarth <paul at city-fan.org> - 1.117-3
 - spec clean-up
   - separate build requirements and runtime requirements


More information about the scm-commits mailing list