Specify all dependencies

A test was failing without Math::BinInt installed.

I reclassified the dependencies according to the code and META.json.
Old spec had some optional dependencies as alwayes required. But these
was many years old without any explanation, so I removed them. If This
breaks user's expectations we can put them back.
epel9
Petr Písař 10 years ago
parent b1701878f6
commit 7ea99ee5b5

@ -1,50 +1,83 @@
Name: perl-Devel-Cover Name: perl-Devel-Cover
Version: 1.20 Version: 1.20
Release: 1%{?dist} Release: 2%{?dist}
Summary: Code coverage metrics for Perl Summary: Code coverage metrics for Perl
Group: Development/Libraries Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Devel-Cover/ URL: http://search.cpan.org/dist/Devel-Cover/
Source0: http://www.cpan.org/authors/id/P/PJ/PJCJ/Devel-Cover-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/P/PJ/PJCJ/Devel-Cover-%{version}.tar.gz
BuildRequires: perl(autodie) BuildRequires: coreutils
BuildRequires: perl(base) BuildRequires: findutils
BuildRequires: make
BuildRequires: perl
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Copy)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
BuildRequires: perl(B)
BuildRequires: perl(B::Concise)
BuildRequires: perl(B::Debug) BuildRequires: perl(B::Debug)
BuildRequires: perl(Browser::Open) BuildRequires: perl(B::Deparse)
BuildRequires: perl(base)
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
BuildRequires: perl(HTML::Entities) BuildRequires: perl(Class::XSAccessor)
BuildRequires: perl(Cwd) BuildRequires: perl(Config)
BuildRequires: perl(constant)
# CPAN::Releases::Latest not used at tests
BuildRequires: perl(Data::Dumper) BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Digest::MD5) BuildRequires: perl(Digest::MD5)
BuildRequires: perl(DynaLoader) BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path) BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec) BuildRequires: perl(File::Spec)
BuildRequires: perl(JSON::PP) BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Template) >= 2.00 BuildRequires: perl(HTML::Entities)
BuildRequires: perl(PPI::HTML) >= 1.07 # JSON or JSON::PP by Devel::Cover::DB::IO::JSON
BuildRequires: perl(JSON)
BuildRequires: perl(Moo)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(Parallel::Iterator) BuildRequires: perl(Parallel::Iterator)
BuildRequires: perl(Perl::Tidy) >= 20060719
BuildRequires: perl(Pod::Coverage) >= 0.06
BuildRequires: perl(Pod::Coverage::CountParents)
BuildRequires: perl(Pod::Usage) BuildRequires: perl(Pod::Usage)
BuildRequires: perl(PPI::HTML) >= 1.07 BuildRequires: perl(POSIX)
BuildRequires: perl(Sereal::Decoder)
BuildRequires: perl(Sereal::Encoder)
BuildRequires: perl(Storable)
BuildRequires: perl(Template) >= 2.00
BuildRequires: perl(Template::Provider) BuildRequires: perl(Template::Provider)
BuildRequires: perl(Test) BuildRequires: perl(Test)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(vars)
# Optional run-time:
# Browser::Open not used at tests
# (PPI && PPI::HTML 1.07) || Perl::Tidy 20060719
# Perl::Tidy 20060719 not used at tests
BuildRequires: perl(Pod::Coverage) >= 0.06
BuildRequires: perl(Pod::Coverage::CountParents)
# PPI::HTML 1.07 not used at tests
BuildRequires: perl(Test::Differences) BuildRequires: perl(Test::Differences)
# Tests:
BuildRequires: perl(DBM::Deep)
BuildRequires: perl(lib)
BuildRequires: perl(Math::BigInt)
BuildRequires: perl(Moose)
BuildRequires: perl(overload)
BuildRequires: perl(Readonly)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Pod::Coverage) # CPAN::Releases::Latest not yet packaged
Requires: perl(Test::Differences) # JSON or JSON::PP by Devel::Cover::DB::IO::JSON
# Optional modules Requires: perl(JSON)
# Requires: perl(PPI::HTML) >= 1.07
# Requires: perl(Perl::Tidy) >= 20060719
%{?perl_default_filter} %{?perl_default_filter}
# Filter private modules # Filter private modules
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Devel::Cover::Dumper\\) %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Devel::Cover::Dumper\\)
# Fiter under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Template\\)$
%description %description
This module provides code coverage metrics for Perl. Code coverage metrics This module provides code coverage metrics for Perl. Code coverage metrics
@ -82,6 +115,9 @@ make test
%{_mandir}/man3/*.3pm* %{_mandir}/man3/*.3pm*
%changelog %changelog
* Wed Jul 22 2015 Petr Pisar <ppisar@redhat.com> - 1.20-2
- Specify all dependencies
* Mon Jul 6 2015 Tom Callaway <spot@fedoraproject.org> - 1.20-1 * Mon Jul 6 2015 Tom Callaway <spot@fedoraproject.org> - 1.20-1
- update to 1.20 - update to 1.20

Loading…
Cancel
Save