[perl/f16] Make tests optional

Petr Pisar ppisar at fedoraproject.org
Wed Nov 2 11:28:12 UTC 2011


commit e09278a49a0f23320ae86a1db2e08cd5f59b1fdd
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Sep 15 09:27:14 2011 +0200

    Make tests optional

 perl.spec |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/perl.spec b/perl.spec
index b0e4d97..fac2ff4 100644
--- a/perl.spec
+++ b/perl.spec
@@ -14,6 +14,9 @@
 # same as we provide in /etc/rpm/macros.perl
 %global perl5_testdir   %{_libexecdir}/perl5-tests
 
+# We can skip %%check phase
+%bcond_without test
+
 Name:           perl
 Version:        %{perl_version}
 # release number must be even higher, because dual-lived modules will be broken otherwise
@@ -1327,12 +1330,14 @@ sed \
 #%%{_fixperms} %%{buildroot}%%{perl5_testdir}
 
 %check
+%if %{with test}
 %if %{parallel_tests}
     JOBS=$(printf '%%s' "%{?_smp_mflags}" | sed 's/.*-j\([0-9][0-9]*\).*/\1/')
     LC_ALL=C TEST_JOBS=$JOBS make test_harness
 %else
     LC_ALL=C make test
 %endif
+%endif
 
 %post libs -p /sbin/ldconfig
 
@@ -2162,6 +2167,7 @@ sed \
 %changelog
 * Wed Nov 02 2011 Petr Pisar <ppisar at redhat.com> - 4:5.14.1-189
 - Correct perl-CGI list of Provides
+- Make tests optional
 
 * Wed Oct 05 2011 Petr Pisar <ppisar at redhat.com> - 4:5.14.1-188
 - Fix CVE-2011-3597 (code injection in Digest) (bug #743010)


More information about the scm-commits mailing list