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}
Version: %(echo '%{cpan_version}' | tr _ .)
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Create a module Makefile
License: GPL+ or Artistic
Group: Development/Libraries
@ -72,21 +72,18 @@ BuildRequires: perl(utf8)
# XSLoader not used
# Optional tests
BuildRequires: perl(B)
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.130
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(PerlIO)
# Keep YAML optional
# Keep YAML::Tiny optional
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(B)
# CPAN::Meta 2.112150 is optional
# CPAN::Meta::Converter 2.141170 is optional
# CPAN::Meta::Requirements 2.130 is optional
Recommends: perl(CPAN::Meta) >= 2.112150
Requires: perl(Data::Dumper)
Requires: perl(DynaLoader)
# Encode is needed for producing POD with =encoding statement correctly
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::Install) >= 1.52
Requires: perl(ExtUtils::Manifest) >= 1.65
@ -94,12 +91,11 @@ Requires: perl(ExtUtils::Manifest) >= 1.65
Requires: perl(File::Find)
Requires: perl(File::Spec) >= 0.8
Requires: perl(Getopt::Long)
# JSON::PP is optional
# Optional Pod::Man is needed for generating manual pages from POD
Requires: perl(Pod::Man)
Requires: perl(POSIX)
Requires: perl(Test::Harness)
# Time::HiRes is optional
Recommends: perl(Time::HiRes)
# Text::ParseWords is not needed (Win32 only)
Requires: perl(version)
# VMS::Filespec is not needed (VMS only)
@ -178,6 +174,9 @@ make test
%{_mandir}/man3/ExtUtils::Command.*
%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
- 7.10 bump