Introduce build-condition for running optional tests
This commit is contained in:
parent
8473379daf
commit
da9a11a3ad
@ -1,5 +1,7 @@
|
||||
# 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 optional tests
|
||||
%bcond_without perl_Software_License_enables_optional_test
|
||||
|
||||
Name: perl-Software-License
|
||||
Version: 0.103012
|
||||
@ -35,7 +37,7 @@ BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::Pod)
|
||||
BuildRequires: perl(Try::Tiny)
|
||||
# Optional Tests
|
||||
%if 0%{!?perl_bootstrap:1} && 0%{?fedora}
|
||||
%if 0%{!?perl_bootstrap:1} && 0%{?fedora} && %{with perl_Software_License_enables_optional_test}
|
||||
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
||||
BuildRequires: perl(Software::License::CCpack)
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user