diff --git a/DateTime-1.47-no-Sub::Util.patch b/DateTime-1.47-no-Sub::Util.patch new file mode 100644 index 0000000..936f4a3 --- /dev/null +++ b/DateTime-1.47-no-Sub::Util.patch @@ -0,0 +1,16 @@ +--- 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 6b7da9d..6f9d682 100644 --- a/perl-DateTime.spec +++ b/perl-DateTime.spec @@ -3,12 +3,13 @@ Name: perl-DateTime Epoch: 2 -Version: 1.46 +Version: 1.47 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 @@ -79,6 +80,9 @@ 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 \ @@ -108,6 +112,15 @@ make test %{_mandir}/man3/DateTime::Types.3* %changelog +* Mon Mar 26 2018 Paul Howarth - 2:1.47-1 +- Update to 1.47 + - DateTime::Duration->multiply now only allows integer multipliers (GH#73) + - Added is_last_day_of_quarter() and is_last_day_of_year() methods (GH#72) + - When an exception was thrown while adding a duration, the object could be + left in a broken state with the duration partially applied; subsequent + addition or subtraction would produce the wrong results (GH#74) +- Add patch to support use without Sub::Util (GH#77, GH#78) + * Mon Feb 12 2018 Paul Howarth - 2:1.46-1 - Update to 1.46 - Fixed the formatting for the CLDR "S" symbol, which in some cases would diff --git a/sources b/sources index 6f58916..c4b7163 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (DateTime-1.46.tar.gz) = 20914a5267112b28a63e7cab6199bd4312ff354db9408f33f5d72f797a084c3fdfa7c50d43362323105091d827f2bdc4771250a5d6960cd951623b5739be233d +SHA512 (DateTime-1.47.tar.gz) = f08fe5b74af00c92df8b125e590672fa6d54cf78e991c800f567920b1b175e0f1e6668baf4030fbdcc201fde01923f889b0b47343353a76786e223293b71145b