From 15672de8ef091988871e303ddcfb91ae5c20ba6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 12 Mar 2020 14:29:45 +0100 Subject: [PATCH] Specify all dependencies --- perl-JSON.spec | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/perl-JSON.spec b/perl-JSON.spec index 170ead1..353588e 100644 --- a/perl-JSON.spec +++ b/perl-JSON.spec @@ -1,12 +1,18 @@ Name: perl-JSON Summary: Parse and convert to JSON (JavaScript Object Notation) Version: 4.02 -Release: 4%{?dist} +Release: 5%{?dist} License: GPL+ or Artistic URL: https://metacpan.org/release/JSON Source0: https://cpan.metacpan.org/modules/by-module/JSON/JSON-%{version}.tar.gz Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(B) +Requires: perl(Encode) +Requires: perl(Math::BigFloat) +Requires: perl(Math::BigInt) +Suggests: perl(Scalar::Util) +Requires: perl(warnings) BuildArch: noarch BuildRequires: coreutils @@ -14,22 +20,31 @@ BuildRequires: findutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.5.30 +# B not used at tests BuildRequires: perl(base) +BuildRequires: perl(bytes) BuildRequires: perl(Carp) BuildRequires: perl(constant) BuildRequires: perl(Data::Dumper) BuildRequires: perl(Encode) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(File::Spec) +BuildRequires: perl(lib) BuildRequires: perl(Math::BigFloat) BuildRequires: perl(Math::BigInt) -BuildRequires: perl(lib) +BuildRequires: perl(overload) BuildRequires: perl(Scalar::Util) +BuildRequires: perl(strict) +# subs not used BuildRequires: perl(Test) BuildRequires: perl(Test::More) -BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(Tie::Array) +BuildRequires: perl(Tie::Hash) BuildRequires: perl(Tie::IxHash) +BuildRequires: perl(utf8) +BuildRequires: perl(warnings) %{?perl_default_filter} %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(JSON::(Backend::PP|backportPP::Boolean|Boolean|PP|PP::IncrParser)\\) @@ -59,6 +74,7 @@ find %{buildroot} -type f -name .packlist -delete %{_fixperms} -c %{buildroot} %check +unset PERL_JSON_BACKEND PERL_JSON_DEBUG PERL_JSON_PP_USE_B make test %files @@ -67,6 +83,9 @@ make test %{_mandir}/man3/* %changelog +* Thu Mar 12 2020 Petr Pisar - 4.02-5 +- Specify all dependencies + * Thu Jan 30 2020 Fedora Release Engineering - 4.02-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild