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}
This commit is contained in:
Paul Howarth 2019-04-22 13:01:17 +01:00
parent 33f7483812
commit 370e7086cf
4 changed files with 23 additions and 11 deletions

View File

@ -1,3 +0,0 @@
from Config import *
addFilter("spelling-error %description -l en_US proleptic -> ")

7
perl-DateTime.rpmlintrc Normal file
View File

@ -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")

View File

@ -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 <paul@city-fan.org> - 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 <releng@fedoraproject.org> - 2:1.50-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (DateTime-1.50.tar.gz) = fa8f57aac2b736a5b8b70005b74a81ea4bc80143714a79f16896c4214776c591f3db6689841a6b5217070e02ccea6ccf30b565c3bb0acdce9d1ea44eb61fe85a
SHA512 (DateTime-1.51.tar.gz) = d94d673ecefb7ed8bd485f7be9f3c2c0e9a07c402793f14f5af3bc026cc875d7d2a151f72f1c1d3518e08af133eab247796400215f4304f785d17d84e53caded