[perl-HTTP-Tiny] Build-require CPAN::Meta* modules temporarily

Petr Pisar ppisar at fedoraproject.org
Tue Jul 29 14:02:50 UTC 2014


commit ba99959fd839029663eb73340028450dbc1ad98e
Author: Petr Písař <ppisar at redhat.com>
Date:   Tue Jul 29 16:00:26 2014 +0200

    Build-require CPAN::Meta* modules temporarily
    
    The modules are declared as optional, but the tests cannot cope with
    their absence.
    
    All of them are core modules, so it should not be problem to depend on
    them.
    
    <https://github.com/chansen/p5-http-tiny/issues/50>

 perl-HTTP-Tiny.spec |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/perl-HTTP-Tiny.spec b/perl-HTTP-Tiny.spec
index 2ae1f5c..7ff89b6 100644
--- a/perl-HTTP-Tiny.spec
+++ b/perl-HTTP-Tiny.spec
@@ -45,6 +45,12 @@ BuildRequires:  perl(open)
 BuildRequires:  perl(Scalar::Util)
 BuildRequires:  perl(Test::More) >= 0.96
 BuildRequires:  perl(version) >= 0.77
+# Optionals tests:
+# The CPAN::Meta* is needed due to a bug in tests generated by distzilla
+# <https://github.com/chansen/p5-http-tiny/issues/50>
+BuildRequires:  perl(CPAN::Meta)
+BuildRequires:  perl(CPAN::Meta::Prereqs)
+BuildRequires:  perl(CPAN::Meta::Requirements) >= 2.120900
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:       perl(bytes)
 Requires:       perl(Fcntl)


More information about the scm-commits mailing list