From 21f174a5090c2695e792b284036d323bfc93365b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 10 Sep 2020 11:33:38 +0200 Subject: [PATCH] Conditionalize extra tests --- perl-Spiffy.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/perl-Spiffy.spec b/perl-Spiffy.spec index 53d98f2..a9480c9 100644 --- a/perl-Spiffy.spec +++ b/perl-Spiffy.spec @@ -1,3 +1,6 @@ +# Perform release tests +%bcond_without perl_Spiffy_enables_extra_test + Name: perl-Spiffy Version: 0.46 Release: 18%{?dist} @@ -24,8 +27,10 @@ BuildRequires: perl(base) BuildRequires: perl(Cwd) BuildRequires: perl(lib) BuildRequires: perl(Test::More) +%if %{with perl_Spiffy_enables_extra_test} # Release Tests: BuildRequires: perl(Test::Pod) >= 1.41 +%endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Data::Dumper) Requires: perl(Filter::Util::Call) @@ -57,7 +62,8 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; %{_fixperms} $RPM_BUILD_ROOT/* %check -make test RELEASE_TESTING=1 +unset RELEASE_TESTING +make test %{?with_perl_Spiffy_enables_extra_test:RELEASE_TESTING=1} # Support use of %%license on old distributions %{!?_licensedir:%global license %%doc}