Declare optional dependencies on Recommends level

This commit is contained in:
Petr Písař 2015-12-03 11:29:34 +01:00
parent 580e364339
commit 130c7d682e

View File

@ -3,7 +3,7 @@
Name: perl-%{cpan_name} Name: perl-%{cpan_name}
Version: %(echo '%{cpan_version}' | tr _ .) Version: %(echo '%{cpan_version}' | tr _ .)
Release: 1%{?dist} Release: 2%{?dist}
Summary: Create a module Makefile Summary: Create a module Makefile
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
@ -72,21 +72,18 @@ BuildRequires: perl(utf8)
# XSLoader not used # XSLoader not used
# Optional tests # Optional tests
BuildRequires: perl(B) BuildRequires: perl(B)
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.130
BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(PerlIO) BuildRequires: perl(PerlIO)
# Keep YAML optional # Keep YAML optional
# Keep YAML::Tiny optional # Keep YAML::Tiny optional
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)
# CPAN::Meta 2.112150 is optional Recommends: perl(CPAN::Meta) >= 2.112150
# CPAN::Meta::Converter 2.141170 is optional
# CPAN::Meta::Requirements 2.130 is optional
Requires: perl(Data::Dumper) Requires: perl(Data::Dumper)
Requires: perl(DynaLoader) Requires: perl(DynaLoader)
# Encode is needed for producing POD with =encoding statement correctly # Encode is needed for producing POD with =encoding statement correctly
Requires: perl(Encode) Requires: perl(Encode)
# Keep unbundled Encode::Locale optional, it's not in the core Recommends: perl(Encode::Locale)
Requires: perl(ExtUtils::Command) >= 1.19 Requires: perl(ExtUtils::Command) >= 1.19
Requires: perl(ExtUtils::Install) >= 1.52 Requires: perl(ExtUtils::Install) >= 1.52
Requires: perl(ExtUtils::Manifest) >= 1.65 Requires: perl(ExtUtils::Manifest) >= 1.65
@ -94,12 +91,11 @@ Requires: perl(ExtUtils::Manifest) >= 1.65
Requires: perl(File::Find) Requires: perl(File::Find)
Requires: perl(File::Spec) >= 0.8 Requires: perl(File::Spec) >= 0.8
Requires: perl(Getopt::Long) Requires: perl(Getopt::Long)
# JSON::PP is optional
# Optional Pod::Man is needed for generating manual pages from POD # Optional Pod::Man is needed for generating manual pages from POD
Requires: perl(Pod::Man) Requires: perl(Pod::Man)
Requires: perl(POSIX) Requires: perl(POSIX)
Requires: perl(Test::Harness) Requires: perl(Test::Harness)
# Time::HiRes is optional Recommends: perl(Time::HiRes)
# Text::ParseWords is not needed (Win32 only) # Text::ParseWords is not needed (Win32 only)
Requires: perl(version) Requires: perl(version)
# VMS::Filespec is not needed (VMS only) # VMS::Filespec is not needed (VMS only)
@ -178,6 +174,9 @@ make test
%{_mandir}/man3/ExtUtils::Command.* %{_mandir}/man3/ExtUtils::Command.*
%changelog %changelog
* Thu Dec 03 2015 Petr Pisar <ppisar@redhat.com> - 7.10-2
- Declare optional dependencies on Recommends level
* Fri Sep 11 2015 Petr Pisar <ppisar@redhat.com> - 7.10-1 * Fri Sep 11 2015 Petr Pisar <ppisar@redhat.com> - 7.10-1
- 7.10 bump - 7.10 bump