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

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


commit 3106b6376e7b3adeda8731dd3b19595baee3b790
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 73c9554..1e40d22 100644
--- a/perl-Perl-Critic.spec
+++ b/perl-Perl-Critic.spec
@@ -1,6 +1,6 @@
 Name:           perl-Perl-Critic
 Version:        1.117
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Critique Perl source code for best-practices
 Group:          Development/Libraries
 License:        GPL+ or Artistic
@@ -76,7 +76,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
@@ -111,6 +113,11 @@ of Perl code were mixed directly in the test script. That sucked.
 %prep
 %setup -q -n Perl-Critic-%{version}
 find . -type f -exec chmod -c -x {} ';'
+%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
 
 %build
 perl Build.PL installdirs=vendor
@@ -135,6 +142,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-3
+- Do not use Test::Kwalitee on RHEL >= 7
+
 * Thu Jan 12 2012 Paul Howarth <paul at city-fan.org> - 1.117-2
 - drop %%defattr, no longer needed
 



More information about the perl-devel mailing list