From 430b9793f9b94eb8c9018259c903d609cab20f85 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Mon, 26 Mar 2018 18:59:54 +0100 Subject: [PATCH] Update to 1.48 - New upstream release 1.48 - The last release would die if Sub::Util was not available, but this should just be an optional requirement (GH#77, GH#78) --- DateTime-1.47-no-Sub::Util.patch | 16 ---------------- perl-DateTime.spec | 11 ++++++----- sources | 2 +- 3 files changed, 7 insertions(+), 22 deletions(-) delete mode 100644 DateTime-1.47-no-Sub::Util.patch diff --git a/DateTime-1.47-no-Sub::Util.patch b/DateTime-1.47-no-Sub::Util.patch deleted file mode 100644 index 936f4a3..0000000 --- a/DateTime-1.47-no-Sub::Util.patch +++ /dev/null @@ -1,16 +0,0 @@ ---- lib/DateTime/Duration.pm -+++ lib/DateTime/Duration.pm -@@ -274,9 +274,10 @@ sub subtract_duration { return $_[0]->ad - - { - my $check = validation_for( -- name => '_check_multiply_params', -- slurpy => 1, -- params => [ -+ name => '_check_multiply_params', -+ name_is_optional => 1, -+ slurpy => 1, -+ params => [ - { type => t('Int') }, - ], - ); diff --git a/perl-DateTime.spec b/perl-DateTime.spec index 6f9d682..378765f 100644 --- a/perl-DateTime.spec +++ b/perl-DateTime.spec @@ -3,13 +3,12 @@ Name: perl-DateTime Epoch: 2 -Version: 1.47 +Version: 1.48 Release: 1%{?dist} Summary: Date and time object for Perl License: Artistic 2.0 URL: http://search.cpan.org/dist/DateTime/ Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-%{version}.tar.gz -Patch0: DateTime-1.47-no-Sub::Util.patch # Build: BuildRequires: coreutils BuildRequires: findutils @@ -80,9 +79,6 @@ believed to be the birth of Jesus Christ. %prep %setup -q -n DateTime-%{version} -# Support use without Sub::Util (GH#77, GH#78) -%patch0 - %build perl Makefile.PL \ INSTALLDIRS=vendor \ @@ -112,6 +108,11 @@ make test %{_mandir}/man3/DateTime::Types.3* %changelog +* Mon Mar 26 2018 Paul Howarth - 2:1.48-1 +- Update to 1.48 + - The last release would die if Sub::Util was not available, but this should + just be an optional requirement (GH#77, GH#78) + * Mon Mar 26 2018 Paul Howarth - 2:1.47-1 - Update to 1.47 - DateTime::Duration->multiply now only allows integer multipliers (GH#73) diff --git a/sources b/sources index c4b7163..e85d4cd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (DateTime-1.47.tar.gz) = f08fe5b74af00c92df8b125e590672fa6d54cf78e991c800f567920b1b175e0f1e6668baf4030fbdcc201fde01923f889b0b47343353a76786e223293b71145b +SHA512 (DateTime-1.48.tar.gz) = 9c4de99eaace63cc0901ce1d0534ee7111ecd611601f09f32db9bcdae5847254819891b6fdded21a7551e4c1b08ad430ebbc8a5b4aa0e58172b0cf43582b6463