From 5c0a2e76e6fa8be6420a8d324ed15aa0573ef2a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Fri, 28 Apr 2017 12:58:23 +0200
Subject: Introduce build-condition for optional tests

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

diff --git a/perl-strictures.spec b/perl-strictures.spec
index 75bec08..b21f6af 100644
--- a/perl-strictures.spec
+++ b/perl-strictures.spec
@@ -1,3 +1,6 @@
+# Run optional tests
+%{bcond_without perl_strictures_enables_optional_test}
+
 Name:           perl-strictures
 Version:        2.000003
 Release:        3%{?dist}
@@ -29,10 +32,12 @@ BuildRequires:  perl(warnings)
 # Test Suite
 BuildRequires:  perl(Cwd)
 BuildRequires:  perl(Test::More)
+%if %{with perl_strictures_enables_optional_test}
 # Optional Tests
 BuildRequires:  perl(indirect)
 BuildRequires:  perl(multidimensional)
 BuildRequires:  perl(bareword::filehandles)
+%endif
 # Runtime
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:       perl(Carp)
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-strictures.git/commit/?h=master&id=5c0a2e76e6fa8be6420a8d324ed15aa0573ef2a2
_______________________________________________
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