Demote Module::Pluggable hard dependency to Suggests level

It's optional in the code, thus it should be a weak dependency.
Upstream classifies it as suggests, thus use that level in Fedora.

Moreover, conditionalize this dependency to avoid pulling
Module::Plugable into perl Modularity module.
This commit is contained in:
Petr Písař 2020-10-15 15:46:06 +02:00
parent dcf2bc8aa1
commit 6cf19171f3

View File

@ -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 <ppisar@redhat.com> - 3:1.302182-2
- Demote Module::Pluggable hard dependency to Suggests level
* Tue Oct 6 2020 Paul Howarth <paul@city-fan.org> - 3:1.302182-1
- Update to 1.302182
- Fix 5.6 support