From c573ee14a1c7d9937ac9c2bbf2e6c32f400e4790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 13 Dec 2019 17:04:26 +0100 Subject: [PATCH] Subpackage Time --- gendep.macros | 15 ++++++++++----- perl.spec | 37 ++++++++++++++++++++++++++++++++++++- 2 files changed, 46 insertions(+), 6 deletions(-) diff --git a/gendep.macros b/gendep.macros index 083855f..371bead 100644 --- a/gendep.macros +++ b/gendep.macros @@ -1896,6 +1896,16 @@ Requires: perl(threads::shared) \ Requires: perl(warnings) \ Provides: perl(Thread::Semaphore) = 2.13 \ %{nil} +%global gendep_perl_Time \ +Requires: perl(:VERSION) >= 5.6.0 \ +Requires: perl(Class::Struct) \ +Requires: perl(Exporter) \ +Requires: perl(Time::tm) \ +Requires: perl(strict) \ +Provides: perl(Time::gmtime) = 1.04 \ +Provides: perl(Time::localtime) = 1.03 \ +Provides: perl(Time::tm) = 1.00 \ +%{nil} %global gendep_perl_Time_HiRes \ Requires: perl(Exporter) \ Requires: perl(XSLoader) \ @@ -2066,7 +2076,6 @@ Requires: perl(:VERSION) >= 5.10.1 \ Requires: perl(:VERSION) >= 5.6.0 \ Requires: perl(:VERSION) >= 5.9.1 \ Requires: perl(Carp) \ -Requires: perl(Class::Struct) \ Requires: perl(Config) \ Requires: perl(Cwd) \ Requires: perl(Exporter) \ @@ -2078,7 +2087,6 @@ Requires: perl(Symbol) \ Requires: perl(Text::Tabs) \ Requires: perl(Tie::Handle) \ Requires: perl(Tie::StdHandle) \ -Requires: perl(Time::tm) \ Requires: perl(Unicode::Normalize) \ Requires: perl(charnames) \ Requires: perl(feature) \ @@ -2123,9 +2131,6 @@ Provides: perl(Tie::StdHandle) = 4.6 \ Provides: perl(Tie::StdHash) \ Provides: perl(Tie::StdScalar) \ Provides: perl(Tie::SubstrHash) = 1.00 \ -Provides: perl(Time::gmtime) = 1.04 \ -Provides: perl(Time::localtime) = 1.03 \ -Provides: perl(Time::tm) = 1.00 \ Provides: perl(UNIVERSAL) = 1.13 \ Provides: perl(Unicode::UCD) = 0.72 \ Provides: perl(deprecate) = 0.04 \ diff --git a/perl.spec b/perl.spec index b91f4f3..c5c2ede 100644 --- a/perl.spec +++ b/perl.spec @@ -432,7 +432,7 @@ Requires: perl-Text-Tabs+Wrap, Requires: perl-Thread-Queue, perl-Thread-Semaphore, Requires: perl-threads, perl-threads-shared, Requires: perl-Tie-File, perl-Tie-Memoize, perl-Tie-RefHash, -Requires: perl-Time-HiRes, perl-Time-Local, perl-Time-Piece, +Requires: perl-Time, perl-Time-HiRes, perl-Time-Local, perl-Time-Piece, Requires: perl-Unicode-Collate, perl-Unicode-Normalize, perl-User-pwent, Requires: perl-version, @@ -3466,6 +3466,22 @@ hash itself are preserved as references; to use references as keys in hashes-of-hashes, use Tie::RefHash::Nestable, included as part of Tie::RefHash. +%package Time +Summary: By-name interface to Perl built-in time functions +License: GPL+ or Artistic +Epoch: 0 +Version: 1.03 +BuildArch: noarch +Requires: %perl_compat +%if %{defined perl_bootstrap} +%gendep_perl_Time +%endif +Conflicts: perl-interpreter < 4:5.30.1-451 + +%description Time +This package provides an object-oriented interface to Perl built-in gmtime() +and localtime () functions. + %if %{dual_life} || %{rebuild_from_scratch} %package Time-HiRes Summary: High resolution alarm, sleep, gettimeofday, interval timers @@ -5165,6 +5181,14 @@ popd %exclude %{privlib}/Tie/RefHash.pm %exclude %{_mandir}/man3/Tie::RefHash.* +# Time +%exclude %{privlib}/Time/gmtime.pm +%exclude %{privlib}/Time/localtime.pm +%exclude %{privlib}/Time/tm.pm +%exclude %{_mandir}/man3/Time::gmtime.* +%exclude %{_mandir}/man3/Time::localtime.* +%exclude %{_mandir}/man3/Time::tm.* + # Time-HiRes %exclude %dir %{archlib}/Time %exclude %{archlib}/Time/HiRes.pm @@ -5173,6 +5197,7 @@ popd %exclude %{_mandir}/man3/Time::HiRes.* # Time-Local +%exclude %dir %{privlib}/Time %exclude %{privlib}/Time/Local.pm %exclude %{_mandir}/man3/Time::Local.* @@ -6513,6 +6538,15 @@ popd %{privlib}/Tie/RefHash.pm %{_mandir}/man3/Tie::RefHash.* +%files Time +%dir %{privlib}/Time +%{privlib}/Time/gmtime.pm +%{privlib}/Time/localtime.pm +%{privlib}/Time/tm.pm +%{_mandir}/man3/Time::gmtime.* +%{_mandir}/man3/Time::localtime.* +%{_mandir}/man3/Time::tm.* + %if %{dual_life} || %{rebuild_from_scratch} %files Time-HiRes %dir %{archlib}/Time @@ -6642,6 +6676,7 @@ popd - Subpackage Class-Struct - Subpackage Net::*ent modules into perl-Net - Subpackage User::* modules into perl-User-pwent +- Subpackage Time * Wed Jan 29 2020 Fedora Release Engineering - 4:5.30.1-450 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild