[perl-Package-Stash-XS] Disable author tests on RHEL >= 7

Petr Pisar ppisar at fedoraproject.org
Mon Aug 27 12:59:01 UTC 2012


commit 34081adef9d79db49e02f60a2572eb8176c725a6
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Aug 27 14:58:18 2012 +0200

    Disable author tests on RHEL >= 7

 perl-Package-Stash-XS.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
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 <ppisar at redhat.com> - 0.25-7
+- Disable author tests on RHEL >= 7
+
 * Sat Aug 25 2012 Paul Howarth <paul at city-fan.org> - 0.25-6
 - Drop EPEL-4 support
   - Test::LeakTrace now universally available


More information about the scm-commits mailing list