[perl-SOOT] Disable tests on x86
Petr Pisar
ppisar at fedoraproject.org
Wed May 29 11:16:07 UTC 2013
commit 5c75891c707fd84c47bdfd32f3e46bf3357ed6bc
Author: Petr Písař <ppisar at redhat.com>
Date: Wed May 29 13:15:54 2013 +0200
Disable tests on x86
perl-SOOT.spec | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/perl-SOOT.spec b/perl-SOOT.spec
index d0a8e43..5bcedf9 100644
--- a/perl-SOOT.spec
+++ b/perl-SOOT.spec
@@ -1,3 +1,10 @@
+# Tests blocks on i686
+%ifarch %{ix86}
+%bcond_with test
+%else
+%bcond_without test
+%endif
+
Name: perl-SOOT
Version: 0.17
Release: 1%{?dist}
@@ -27,6 +34,7 @@ BuildRequires: perl(warnings)
BuildRequires: root-reflex
BuildRequires: root-graf3d
BuildRequires: root-physics
+%if %{with test}
# Run-time:
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Basename)
@@ -35,6 +43,7 @@ BuildRequires: perl(XSLoader)
# Tests:
BuildRequires: perl(constant)
BuildRequires: perl(Test::More)
+%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Carp) >= 1.01
Provides: perl(TArray) = %{version}
@@ -75,7 +84,9 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
+%if %{with test}
./Build test
+%endif
%files
%doc Changes examples LICENSE README TODO
@@ -87,3 +98,4 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
%changelog
* Tue May 14 2013 Petr Pisar <ppisar at redhat.com> 0.17-1
- Specfile autogenerated by cpanspec 1.78.
+- Disable tests on x86
More information about the scm-commits
mailing list