From 88ec246165126868c9a419840e3d39e7c19fab47 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Wed, 5 Apr 2017 11:55:47 +0200
Subject: Introduce build-condition for running optional tests

---
 perl-Module-Build.spec | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/perl-Module-Build.spec b/perl-Module-Build.spec
index 96d91c7..5122975 100644
--- a/perl-Module-Build.spec
+++ b/perl-Module-Build.spec
@@ -2,6 +2,9 @@
 %global cpan_version_minor 22
 %global cpan_version %{cpan_version_major}%{?cpan_version_minor}
 
+# Run optional tests
+%bcond_without perl_Module_Build_enables_optional_test
+
 Name:           perl-Module-Build
 Epoch:          2
 Version:        
%{cpan_version_major}%{?cpan_version_minor:.%cpan_version_minor}
@@ -53,6 +56,7 @@ BuildRequires:  perl(Perl::OSType) >= 1
 BuildRequires:  perl(strict)
 # Optional tests:
 %if !%{defined perl_bootstrap}
+%if %{with perl_Module_Build_enables_optional_test}
 BuildRequires:  perl(Archive::Zip)
 BuildRequires:  perl(File::ShareDir) >= 1.00
 BuildRequires:  perl(PAR::Dist)
@@ -60,6 +64,7 @@ BuildRequires:  perl(PAR::Dist)
 BuildRequires:  perl(Pod::Readme)
 %endif
 %endif
+%endif
 BuildRequires:  perl(TAP::Harness)
 BuildRequires:  perl(TAP::Harness::Env)
 BuildRequires:  perl(Test::Harness) >= 3.29
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Module-Build.git/commit/?h=master&id=88ec246165126868c9a419840e3d39e7c19fab47
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to