Recommend gcc and perl-devel instead of hard dependency

This commit is contained in:
Petr Písař 2018-02-28 17:42:45 +01:00
parent 602bf17670
commit eb9f2e14aa

View File

@ -1,9 +1,12 @@
# Run optional test
%bcond_without perl_ExtUtils_MakeMaker_enables_optional_test
%global cpan_name ExtUtils-MakeMaker %global cpan_name ExtUtils-MakeMaker
Name: perl-%{cpan_name} Name: perl-%{cpan_name}
Epoch: 1 Epoch: 1
Version: 7.32 Version: 7.32
Release: 1%{?dist} Release: 2%{?dist}
Summary: Create a module Makefile Summary: Create a module Makefile
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/%{cpan_name}/ URL: http://search.cpan.org/dist/%{cpan_name}/
@ -71,6 +74,7 @@ BuildRequires: perl(Test::More)
# threads::shared not used # threads::shared not used
BuildRequires: perl(utf8) BuildRequires: perl(utf8)
# XSLoader not used # XSLoader not used
%if %{with perl_ExtUtils_MakeMaker_enables_optional_test}
# Optional tests # Optional tests
BuildRequires: perl-devel BuildRequires: perl-devel
BuildRequires: perl(B) BuildRequires: perl(B)
@ -78,6 +82,7 @@ BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(PerlIO) BuildRequires: perl(PerlIO)
# Keep YAML optional # Keep YAML optional
# Keep YAML::Tiny optional # Keep YAML::Tiny optional
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(B) Requires: perl(B)
Recommends: perl(CPAN::Meta) >= 2.143240 Recommends: perl(CPAN::Meta) >= 2.143240
@ -109,11 +114,13 @@ Recommends: perl(Time::HiRes)
# Win32 is not needed (Win32 only) # Win32 is not needed (Win32 only)
# If an XS module is compiled, xsubpp(1) is needed # If an XS module is compiled, xsubpp(1) is needed
Requires: perl-ExtUtils-ParseXS Requires: perl-ExtUtils-ParseXS
# These dependencies are weak in order to relieve building noarch
# packages from perl-devel and gcc. See bug #1547165.
# If an XS module is built, code generated from XS will be compiled and it # If an XS module is built, code generated from XS will be compiled and it
# includes Perl header files. # includes Perl header files.
# TODO: This dependency will be weaken in order to relieve building noarch Recommends: perl-devel
# packages from perl-devel and gcc. # If an XS module is built, the generated Makefile executes gcc.
Requires: perl-devel Recommends: gcc
# Do not export underspecified dependencies # Do not export underspecified dependencies
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Spec\\)\s*$ %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Spec\\)\s*$
@ -206,6 +213,9 @@ make test
%{_mandir}/man3/ExtUtils::MM::Utils.* %{_mandir}/man3/ExtUtils::MM::Utils.*
%changelog %changelog
* Wed Feb 28 2018 Petr Pisar <ppisar@redhat.com> - 1:7.32-2
- Recommend gcc and perl-devel instead of a hard dependency (bug #1547165)
* Mon Feb 19 2018 Petr Pisar <ppisar@redhat.com> - 1:7.32-1 * Mon Feb 19 2018 Petr Pisar <ppisar@redhat.com> - 1:7.32-1
- 7.32 bump - 7.32 bump