From f7411d697810f95be33a29c60f739af47aeb65e8 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 28 Jul 2020 04:45:34 -0400 Subject: [PATCH] import perl-TimeDate-2.30-15.module+el8.3.0+6498+31ea7642 --- .gitignore | 1 + .perl-TimeDate.metadata | 1 + ...imeDate-2.30-Update-Test-t-getdate.t.patch | 31 +++ SPECS/perl-TimeDate.spec | 205 ++++++++++++++++++ 4 files changed, 238 insertions(+) create mode 100644 .gitignore create mode 100644 .perl-TimeDate.metadata create mode 100644 SOURCES/TimeDate-2.30-Update-Test-t-getdate.t.patch create mode 100644 SPECS/perl-TimeDate.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b63a008 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/TimeDate-2.30.tar.gz diff --git a/.perl-TimeDate.metadata b/.perl-TimeDate.metadata new file mode 100644 index 0000000..ed13847 --- /dev/null +++ b/.perl-TimeDate.metadata @@ -0,0 +1 @@ +db2f810bf665062998ffc1ba873c29287120f3f5 SOURCES/TimeDate-2.30.tar.gz diff --git a/SOURCES/TimeDate-2.30-Update-Test-t-getdate.t.patch b/SOURCES/TimeDate-2.30-Update-Test-t-getdate.t.patch new file mode 100644 index 0000000..105f432 --- /dev/null +++ b/SOURCES/TimeDate-2.30-Update-Test-t-getdate.t.patch @@ -0,0 +1,31 @@ +From 36d47308a51350905ebbf01020fa88dcc3bbe3e1 Mon Sep 17 00:00:00 2001 +From: Prajith +Date: Thu, 2 Jan 2020 11:51:23 +0530 +Subject: [PATCH] Update Test t/getdate.t +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +(cherry picked from commit 9c46fc2657dfae756d17a8a25ab8cd6c124f1f7b) +Signed-off-by: Nicolas Rochelemagne +Signed-off-by: Petr Písař +--- + t/getdate.t | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/t/getdate.t b/t/getdate.t +index 31b577b..82c5850 100644 +--- a/t/getdate.t ++++ b/t/getdate.t +@@ -156,7 +156,7 @@ Jul 22 10:00:00 UTC 2002 ;1027332000 + !; + + 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); + +-- +2.21.1 + diff --git a/SPECS/perl-TimeDate.spec b/SPECS/perl-TimeDate.spec new file mode 100644 index 0000000..a71a367 --- /dev/null +++ b/SPECS/perl-TimeDate.spec @@ -0,0 +1,205 @@ +Name: perl-TimeDate +Version: 2.30 +Epoch: 1 +Release: 15%{?dist} +Summary: A Perl module for time and date manipulation +Group: Development/Libraries +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/TimeDate/ +Source0: http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz +# Adjusts tests to year 2020, bug #1821729, in 2.31. +Patch0: TimeDate-2.30-Update-Test-t-getdate.t.patch +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) +BuildRequires: perl(Time::Local) +BuildRequires: perl(utf8) +BuildRequires: perl(vars) +BuildRequires: perl(warnings) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +This module includes a number of smaller modules suited for +manipulation of time and date strings with Perl. In particular, the +Date::Format and Date::Parse modules can display and read times and +dates in various formats, providing a more reliable interface to +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 +# Bogus exec permissions on some language modules +chmod -x lib/Date/Language/{Russian_cp1251,Russian_koi8r,Turkish}.pm + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc README ChangeLog +%{perl_vendorlib}/Date/ +%{perl_vendorlib}/Time/ +%{_mandir}/man3/*.3* + +%changelog +* Tue Apr 07 2020 Petr Pisar - 1:2.30-15 +- Adjusts tests to year 2020 (bug #1821729) + +* Fri Mar 29 2019 Jitka Plesnikova - 1:2.30-14 +- Rebuild with enable hardening (bug #1636329) + +* Fri Feb 09 2018 Fedora Release Engineering - 1:2.30-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1:2.30-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 1:2.30-11 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1:2.30-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun May 15 2016 Jitka Plesnikova - 1:2.30-9 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1:2.30-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 1:2.30-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Jun 03 2015 Jitka Plesnikova - 1:2.30-6 +- Perl 5.22 rebuild + +* Wed Aug 27 2014 Jitka Plesnikova - 1:2.30-5 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1:2.30-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 1:2.30-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 17 2013 Petr Pisar - 1:2.30-2 +- Perl 5.18 rebuild + +* Tue Feb 19 2013 Petr Šabata - 1:2.30-1 +- 2.30 bump +- Fix the buildtime dependencies + +* Thu Feb 14 2013 Fedora Release Engineering - 1:1.20-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Nov 23 2012 Jitka Plesnikova - 1:1.20-10 +- Remove perl(base) from BR +- Package README and ChangeLog +- Replace PERL_INSTALL_ROOT with DESTDIR +- Remove deleting empty directories + +* Thu Aug 16 2012 Jitka Plesnikova - 1:1.20-9 +- Specify all dependencies. + +* Fri Jul 20 2012 Fedora Release Engineering - 1:1.20-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 11 2012 Petr Pisar - 1:1.20-7 +- Perl 5.16 rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1:1.20-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Jun 20 2011 Petr Sabata - 1:1.20-5 +- Perl mass rebuild +- Buildroot and defattr cleanup + +* Wed Feb 09 2011 Fedora Release Engineering - 1:1.20-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Dec 23 2010 Marcela Maslanova - 1:1.20-3 +- 661697 rebuild for fixing problems with vendorach/lib + +* Fri May 07 2010 Marcela Maslanova - 1:1.20-2 +- Mass rebuild with perl-5.12.0 + +* Wed Dec 23 2009 Paul Howarth - 1:1.20-1 +- update to 1.20 +- recode documentation as UTF-8 +- fix bogus exec permissions to placate rpmlint + +* Fri Dec 4 2009 Stepan Kasal - 1:1.16-12 +- rebuild against perl 5.10.1 + +* Sun Jul 26 2009 Fedora Release Engineering - 1:1.16-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 1:1.16-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Jul 11 2008 Tom "spot" Callaway - 1:1.16-9 +- fix license tag + +* Wed Feb 27 2008 Tom "spot" Callaway - 1:1.16-8 +- Rebuild for perl 5.10 (again) + +* Sun Jan 20 2008 Tom "spot" Callaway 1:1.16-7 +- rebuild for new perl + +* Thu Jun 28 2007 Robin Norwood 1:1.16-6 +- Bump release to outpace RHEL5 +- Add dist tag to release field + +* Tue Mar 20 2007 Steven Pritchard 1:1.16-4 +- Fix find option order. +- Use fixperms macro instead of our own chmod incantation. +- BR ExtUtils::MakeMaker. +- Remove check macro cruft. + +* Wed Jul 12 2006 Jesse Keating - 1:1.16-3.2.1 +- rebuild + +* Fri Feb 03 2006 Jason Vas Dias - 1:1.16-3.2 +- rebuild for new perl-5.8.8 + +* Fri Dec 16 2005 Jesse Keating +- rebuilt for new gcc + +* Fri Dec 16 2005 Jesse Keating +- rebuilt for new gcj + +* Mon Apr 25 2005 Jose Pedro Oliveira - 1:1.16-3 +- Bring up to date with current Fedora.Extras perl spec template. (#155914) + +* Wed Sep 22 2004 Chip Turner 1:1.16-2 +- rebuild + +* Fri Feb 13 2004 Chip Turner 1:1.16-1 +- update to 1.16, bump epoch since previous version was 1.1301 + +* Tue Aug 6 2002 Chip Turner +- automated release bump and build + +* Tue Aug 6 2002 Chip Turner +- update to 1.301 + +* Wed Jan 09 2002 Tim Powers +- automated rebuild + +* Wed Oct 24 2001 root +- Spec file was autogenerated.