From e750ced830e0a0edf43078211ce520bbf3bc5ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 13 Dec 2019 12:30:43 +0100 Subject: [PATCH] Subpackage Benchmark --- gendep.macros | 7 ++++++- perl.spec | 27 ++++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/gendep.macros b/gendep.macros index 8578dac..8ff00d2 100644 --- a/gendep.macros +++ b/gendep.macros @@ -74,6 +74,12 @@ Provides: perl(B::Terse) = 1.09 \ Provides: perl(B::Xref) = 1.07 \ Provides: perl(O) = 1.03 \ %{nil} +%global gendep_perl_Benchmark \ +Requires: perl(Carp) \ +Requires: perl(Exporter) \ +Requires: perl(strict) \ +Provides: perl(Benchmark) = 1.22 \ +%{nil} %global gendep_perl_base \ Requires: perl(:VERSION) >= 5.8.0 \ Requires: perl(strict) \ @@ -2042,7 +2048,6 @@ Requires: perl(threads::shared) \ Requires: perl(unicore::Name) \ Requires: perl(warnings) \ Requires: perl(warnings::register) \ -Provides: perl(Benchmark) = 1.22 \ Provides: perl(Class::Struct) = 0.65 \ Provides: perl(Class::Struct::Tie_ISA) \ Provides: perl(Config) = 5.030000 \ diff --git a/perl.spec b/perl.spec index db43c15..bd12e6e 100644 --- a/perl.spec +++ b/perl.spec @@ -370,7 +370,7 @@ Requires: perl-utils Requires: perl-AnyDBM_File, Requires: perl-Archive-Tar, perl-Attribute-Handlers, perl-autodie, Requires: perl-AutoLoader, perl-AutoSplit, -Requires: perl-B, perl-base, perl-bignum, +Requires: perl-B, perl-base, perl-Benchmark, perl-bignum, Requires: perl-Carp, perl-Compress-Raw-Bzip2, perl-Compress-Raw-Zlib, Requires: perl-Config-Perl-V, perl-constant, Requires: perl-CPAN, perl-CPAN-Meta, perl-CPAN-Meta-Requirements, @@ -836,6 +836,22 @@ inheritance from those modules at the same time. Unless you are using the "fields" pragma, consider this module discouraged in favor of the lighter-weight "parent". +%package Benchmark +Summary: Benchmark running times of Perl code +License: GPL+ or Artistic +Epoch: 0 +Version: 1.22 +Requires: %perl_compat +%if %{defined perl_bootstrap} +%gendep_perl_Benchmark +%endif +BuildArch: noarch +Conflicts: perl-interpreter < 4:5.30.1-451 + +%description Benchmark +The Benchmark module encapsulates a number of routines to help you figure out +how long it takes to execute some code. + %if %{dual_life} || %{rebuild_from_scratch} %package bignum Summary: Transparent big number support for Perl @@ -4130,6 +4146,10 @@ popd %exclude %{privlib}/base.pm %exclude %{_mandir}/man3/base.3* +# Benchmark +%exclude %{privlib}/Benchmark.pm +%exclude %{_mandir}/man3/Benchmark.* + # bignum %exclude %{privlib}/bigint.pm %exclude %{privlib}/bignum.pm @@ -5229,6 +5249,10 @@ popd %{privlib}/base.pm %{_mandir}/man3/base.3* +%files Benchmark +%{privlib}/Benchmark.pm +%{_mandir}/man3/Benchmark.* + %if %{dual_life} || %{rebuild_from_scratch} %files bignum %{privlib}/bigint.pm @@ -6448,6 +6472,7 @@ popd - Move Tie::Hash::NamedCapture to perl-libs - Subpackage Tie-Memoize - Subpackage AnyDBM_File +- Subpackage Benchmark * Wed Jan 29 2020 Fedora Release Engineering - 4:5.30.1-450 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild