From 34081adef9d79db49e02f60a2572eb8176c725a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 27 Aug 2012 14:58:18 +0200 Subject: [PATCH] Disable author tests on RHEL >= 7 --- perl-Package-Stash-XS.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/perl-Package-Stash-XS.spec b/perl-Package-Stash-XS.spec index 33b6bf7..ba7feb6 100644 --- a/perl-Package-Stash-XS.spec +++ b/perl-Package-Stash-XS.spec @@ -1,6 +1,6 @@ Name: perl-Package-Stash-XS Version: 0.25 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Faster and more correct implementation of the Package::Stash API Group: Development/Libraries License: GPL+ or Artistic @@ -17,7 +17,9 @@ BuildRequires: perl(Pod::Coverage::TrustPod) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::EOL) BuildRequires: perl(Test::Fatal) +%if ! (0%{?rhel} >= 7) BuildRequires: perl(Test::LeakTrace) +%endif BuildRequires: perl(Test::More) BuildRequires: perl(Test::NoTabs) BuildRequires: perl(Test::Pod) @@ -53,7 +55,11 @@ find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' %{_fixperms} %{buildroot} %check +%if ! (0%{?rhel} >= 7) make test AUTHOR_TESTING=1 RELEASE_TESTING=1 +%else +make test RELEASE_TESTING=1 +%endif %clean rm -rf %{buildroot} @@ -65,6 +71,9 @@ rm -rf %{buildroot} %{_mandir}/man3/Package::Stash::XS.3pm* %changelog +* Mon Aug 27 2012 Petr Pisar - 0.25-7 +- Disable author tests on RHEL >= 7 + * Sat Aug 25 2012 Paul Howarth - 0.25-6 - Drop EPEL-4 support - Test::LeakTrace now universally available