diff --git a/.gitignore b/.gitignore index 4974faa..77a6603 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ TimeDate-1.20.tar.gz /TimeDate-2.30.tar.gz +/TimeDate-2.31.tar.gz diff --git a/TimeDate-2.30-Pass_4_digit_year_in_tests.patch b/TimeDate-2.30-Pass_4_digit_year_in_tests.patch deleted file mode 100644 index c3bae9c..0000000 --- a/TimeDate-2.30-Pass_4_digit_year_in_tests.patch +++ /dev/null @@ -1,32 +0,0 @@ -Subject: tests fails in 2020 -MIME-Version: 1.0 -X-Mailer: MIME-tools 5.504 (Entity 5.504) -Content-Disposition: inline -X-RT-Interface: Web -Message-ID: -Content-Type: text/plain; charset="utf-8" -Content-Transfer-Encoding: binary -X-RT-Original-Encoding: utf-8 -X-RT-Encrypt: 0 -X-RT-Sign: 0 -Content-Length: 557 - -similar to https://rt.cpan.org/Public/Bug/Display.html?id=124508 - -after 2020-01-01 $offset was shifting dates from 2002 to 2102 - -This trivial patch fixed it for me: - -Index: TimeDate-2.30/t/getdate.t -=================================================================== ---- TimeDate-2.30.orig/t/getdate.t -+++ TimeDate-2.30/t/getdate.t -@@ -156,7 +156,7 @@ Jul 22 10:00:00 UTC 2002 ;102733200 - !; - - require Time::Local; --my $offset = Time::Local::timegm(0,0,0,1,0,70); -+my $offset = Time::Local::timegm(0,0,0,1,0,1970); - - @data = split(/\n/, $data); - diff --git a/perl-TimeDate.spec b/perl-TimeDate.spec index 58e8aa3..bb4f569 100644 --- a/perl-TimeDate.spec +++ b/perl-TimeDate.spec @@ -1,13 +1,11 @@ Name: perl-TimeDate -Version: 2.30 +Version: 2.31 Epoch: 1 -Release: 19%{?dist} +Release: 1%{?dist} Summary: A Perl module for time and date manipulation License: GPL+ or Artistic URL: https://metacpan.org/release/TimeDate -Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz -# Adjust tests to pass 4-digit years to Time::Local, CPAN RT#124509 -Patch0: TimeDate-2.30-Pass_4_digit_year_in_tests.patch +Source0: https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/TimeDate-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils # glibc-common for iconv tool @@ -39,7 +37,6 @@ textual representations of points in time. %prep %setup -q -n TimeDate-%{version} -%patch0 -p1 # ChangeLog is ISO-8859-1 encoded iconv -f iso-8859-1 -t utf8 < ChangeLog > ChangeLog.utf8 mv ChangeLog.utf8 ChangeLog @@ -61,9 +58,13 @@ make test %doc README ChangeLog %{perl_vendorlib}/Date/ %{perl_vendorlib}/Time/ +%{perl_vendorlib}/TimeDate.pm %{_mandir}/man3/*.3* %changelog +* Fri Jan 17 2020 Jitka Plesnikova - 1:2.31-1 +- 2.31 bump + * Mon Jan 06 2020 Petr Pisar - 1:2.30-19 - Adjust tests to pass 4-digit years to Time::Local (CPAN RT#124509) - Modernize a spec file diff --git a/sources b/sources index a785088..0d0c9e1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b1d91153ac971347aee84292ed886c1c TimeDate-2.30.tar.gz +SHA512 (TimeDate-2.31.tar.gz) = abee40d77ce4a57e251575b450406b1d26ac369d05899c1630f996b6f3c0c5ac222b84ff04d6fdf4c0763eb0a5bc45a59edadcfb15c73982787c8c17e0ee2a2a