From e3e46441e8655ce73f235f2370a68291244662f8 Mon Sep 17 00:00:00 2001
From: Petr Písař <ppi...@redhat.com>
Date: Dec 07 2017 12:46:18 +0000
Subject: Control optional test with a build-condition


---

diff --git a/perl-Specio.spec b/perl-Specio.spec
index 30cea0c..ded6579 100644
--- a/perl-Specio.spec
+++ b/perl-Specio.spec
@@ -1,3 +1,6 @@
+# Run optional test
+%bcond_without perl_Specio_enables_optional_test
+
 Name:          perl-Specio
 Version:       0.42
 Release:       1%{?dist}
@@ -44,6 +47,7 @@ BuildRequires:        perl(lib)
 BuildRequires: perl(open)
 BuildRequires: perl(Test::Needs)
 BuildRequires: perl(utf8)
+%if %{with perl_Specio_enables_optional_test}
 # Optional Tests
 BuildRequires: perl(CPAN::Meta) >= 2.120900
 BuildRequires: perl(CPAN::Meta::Prereqs)
@@ -55,6 +59,7 @@ BuildRequires:        perl(Moose) >= 2.1207
 BuildRequires: perl(Mouse)
 %endif
 BuildRequires: perl(namespace::autoclean)
+%endif
 # Dependencies
 Requires:      perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:      perl(Ref::Util) >= 0.112


        
https://src.fedoraproject.org/rpms/perl-Specio/c/e3e46441e8655ce73f235f2370a68291244662f8?branch=master
_______________________________________________
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