diff --git a/perl-Dist-CheckConflicts.spec b/perl-Dist-CheckConflicts.spec index 875338d..4b77f0e 100644 --- a/perl-Dist-CheckConflicts.spec +++ b/perl-Dist-CheckConflicts.spec @@ -1,5 +1,11 @@ # We need to patch the test suite if we have an old version of Test::More %global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0) +# Run extra test +%if 0%{?fedora} +%bcond_without perl_Dist_CheckConflicts_enables_extra_test +%else +%bcond_with perl_Dist_CheckConflicts_enables_extra_test +%endif Name: perl-Dist-CheckConflicts Version: 0.11 @@ -30,7 +36,7 @@ BuildRequires: perl(lib) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::More) >= 0.47 # Extra Tests -%if 0%{?fedora} +%if %{with perl_Dist_CheckConflicts_enables_extra_test} BuildRequires: perl(Pod::Coverage::TrustPod) BuildRequires: perl(Test::EOL) BuildRequires: perl(Test::NoTabs) @@ -78,7 +84,7 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \; %check make test -%if 0%{?fedora} +%if %{with perl_Dist_CheckConflicts_enables_extra_test} make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" %endif