diff --git a/perl-Test-Simple.spec b/perl-Test-Simple.spec index b9ea431..282c241 100644 --- a/perl-Test-Simple.spec +++ b/perl-Test-Simple.spec @@ -1,4 +1,9 @@ %if ! (0%{?rhel}) +%bcond_without perl_Test_Simple_enables_Module_Pluggable +%else +%bcond_with perl_Test_Simple_enables_Module_Pluggable +%endif +%if ! (0%{?rhel}) %bcond_without perl_Test_Simple_enables_optional_test %else %bcond_with perl_Test_Simple_enables_optional_test @@ -8,7 +13,7 @@ Name: perl-Test-Simple Summary: Basic utilities for writing tests Epoch: 3 Version: 1.302182 -Release: 1%{?dist} +Release: 2%{?dist} # CC0: lib/ok.pm # Public Domain: lib/Test/Tutorial.pod # GPL+ or Artistic: the rest of the distribution @@ -33,7 +38,7 @@ BuildRequires: perl(File::Temp) BuildRequires: perl(IO::Handle) BuildRequires: perl(JSON::PP) BuildRequires: perl(List::Util) -%if !%{defined perl_bootstrap} +%if %{with perl_Test_Simple_enables_Module_Pluggable} && !%{defined perl_bootstrap} BuildRequires: perl(Module::Pluggable) %endif # mro used since Perl 5.010 @@ -75,8 +80,8 @@ BuildRequires: perl(Test::Script) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Data::Dumper) Requires: perl(JSON::PP) -%if !%{defined perl_bootstrap} -Requires: perl(Module::Pluggable) +%if %{with perl_Test_Simple_enables_Module_Pluggable} && !%{defined perl_bootstrap} +Suggests: perl(Module::Pluggable) %endif # mro used since Perl 5.010 Requires: perl(mro) @@ -195,6 +200,9 @@ make test %{!?perl_bootstrap:AUTHOR_TESTING=1} %{_mandir}/man3/Test2::Util::Trace.3* %changelog +* Thu Oct 15 2020 Petr Pisar - 3:1.302182-2 +- Demote Module::Pluggable hard dependency to Suggests level + * Tue Oct 6 2020 Paul Howarth - 3:1.302182-1 - Update to 1.302182 - Fix 5.6 support