From 370e7086cfbd37626a0a40f9b2113be247ba096c Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Mon, 22 Apr 2019 13:01:17 +0100 Subject: [PATCH] Update to 1.51 - New upstream release 1.51 - Fix CLDR formatting of 'S' pattern with more than 9 digits of precision; while we only store nanoseconds in the DateTime object we should still be able to handle an arbitrary number of digits properly (GH#89) - Modernize spec using %{make_build} and %{make_install} --- .rpmlint | 3 --- perl-DateTime.rpmlintrc | 7 +++++++ perl-DateTime.spec | 22 +++++++++++++++------- sources | 2 +- 4 files changed, 23 insertions(+), 11 deletions(-) delete mode 100644 .rpmlint create mode 100644 perl-DateTime.rpmlintrc diff --git a/.rpmlint b/.rpmlint deleted file mode 100644 index a4810f8..0000000 --- a/.rpmlint +++ /dev/null @@ -1,3 +0,0 @@ -from Config import * - -addFilter("spelling-error %description -l en_US proleptic -> ") diff --git a/perl-DateTime.rpmlintrc b/perl-DateTime.rpmlintrc new file mode 100644 index 0000000..b65b5ab --- /dev/null +++ b/perl-DateTime.rpmlintrc @@ -0,0 +1,7 @@ +from Config import * + +# proleptic: of a calendar, extrapolated to dates prior to its first adoption +addFilter("spelling-error %description -l en_US proleptic -> ") + +# DateTime.so is not a library +addFilter("library-not-linked-against-libc /usr/lib.*/DateTime/DateTime\.so") diff --git a/perl-DateTime.spec b/perl-DateTime.spec index f6aa45a..9a30eae 100644 --- a/perl-DateTime.spec +++ b/perl-DateTime.spec @@ -7,20 +7,20 @@ Name: perl-DateTime Epoch: 2 -Version: 1.50 -Release: 2%{?dist} +Version: 1.51 +Release: 1%{?dist} Summary: Date and time object for Perl License: Artistic 2.0 URL: https://metacpan.org/release/DateTime -Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-%{version}.tar.gz +Source0: https://cpan.metacpan.org/modules/by-module/DateTime/DateTime-%{version}.tar.gz # Build: BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-devel BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Run-time: BuildRequires: perl(base) @@ -59,6 +59,7 @@ BuildRequires: perl(utf8) %if %{with perl_DateTime_enables_optional_test} # Optional Tests: BuildRequires: perl(CPAN::Meta) >= 2.120900 +BuildRequires: perl(DateTime::Format::Strptime) BuildRequires: perl(Storable) BuildRequires: perl(Test::Warn) %endif @@ -89,12 +90,12 @@ perl Makefile.PL \ OPTIMIZE="%{optflags}" \ NO_PACKLIST=1 \ NO_PERLLOCAL=1 -make %{?_smp_mflags} +%{make_build} %install -make install DESTDIR=%{buildroot} +%{make_install} find %{buildroot} -type f -name '*.bs' -empty -delete -%{_fixperms} %{buildroot} +%{_fixperms} -c %{buildroot} %check make test @@ -112,6 +113,13 @@ make test %{_mandir}/man3/DateTime::Types.3* %changelog +* Mon Apr 22 2019 Paul Howarth - 2:1.51-1 +- Update to 1.51 + - Fix CLDR formatting of 'S' pattern with more than 9 digits of precision; + while we only store nanoseconds in the DateTime object we should still be + able to handle an arbitrary number of digits properly (GH#89) +- Modernize spec using %%{make_build} and %%{make_install} + * Fri Feb 01 2019 Fedora Release Engineering - 2:1.50-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index 5fcfd0b..2e43d63 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (DateTime-1.50.tar.gz) = fa8f57aac2b736a5b8b70005b74a81ea4bc80143714a79f16896c4214776c591f3db6689841a6b5217070e02ccea6ccf30b565c3bb0acdce9d1ea44eb61fe85a +SHA512 (DateTime-1.51.tar.gz) = d94d673ecefb7ed8bd485f7be9f3c2c0e9a07c402793f14f5af3bc026cc875d7d2a151f72f1c1d3518e08af133eab247796400215f4304f785d17d84e53caded