2006-07-07 17:40:19 +00:00
|
|
|
Name: perl-DateTime-Format-Strptime
|
2015-10-08 07:47:37 +00:00
|
|
|
Epoch: 1
|
2017-02-01 10:30:42 +00:00
|
|
|
Version: 1.73
|
2017-02-11 02:40:18 +00:00
|
|
|
Release: 2%{?dist}
|
2014-08-12 12:01:19 +00:00
|
|
|
Summary: Parse and format strptime and strftime patterns
|
2016-03-20 13:16:36 +00:00
|
|
|
License: Artistic 2.0
|
2006-07-07 17:40:19 +00:00
|
|
|
URL: http://search.cpan.org/dist/DateTime-Format-Strptime/
|
2015-10-08 07:47:37 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-Strptime-%{version}.tar.gz
|
2006-07-07 17:40:19 +00:00
|
|
|
BuildArch: noarch
|
2016-03-20 13:16:36 +00:00
|
|
|
# Module Build
|
2016-04-01 09:23:07 +00:00
|
|
|
BuildRequires: coreutils
|
2015-10-08 07:47:37 +00:00
|
|
|
BuildRequires: make
|
2014-05-04 19:21:21 +00:00
|
|
|
BuildRequires: perl
|
2016-06-24 08:24:07 +00:00
|
|
|
BuildRequires: perl-generators
|
2016-01-14 11:14:30 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
2016-03-20 13:16:36 +00:00
|
|
|
# Module Runtime
|
2013-04-03 15:26:49 +00:00
|
|
|
BuildRequires: perl(Carp)
|
2015-11-08 16:42:49 +00:00
|
|
|
BuildRequires: perl(constant)
|
2013-04-03 15:26:49 +00:00
|
|
|
BuildRequires: perl(DateTime) >= 1.00
|
2017-01-25 11:47:31 +00:00
|
|
|
BuildRequires: perl(DateTime::Locale) >= 1.05
|
|
|
|
BuildRequires: perl(DateTime::Locale::Base)
|
|
|
|
BuildRequires: perl(DateTime::TimeZone) >= 2.09
|
2013-04-03 15:26:49 +00:00
|
|
|
BuildRequires: perl(Exporter)
|
2015-11-14 20:23:17 +00:00
|
|
|
BuildRequires: perl(Package::DeprecationManager) >= 0.15
|
2017-01-25 11:47:31 +00:00
|
|
|
BuildRequires: perl(Params::ValidationCompiler)
|
|
|
|
BuildRequires: perl(parent)
|
|
|
|
BuildRequires: perl(Specio) >= 0.33
|
|
|
|
BuildRequires: perl(Specio::Declare)
|
|
|
|
BuildRequires: perl(Specio::Exporter)
|
|
|
|
BuildRequires: perl(Specio::Library::Builtins)
|
|
|
|
BuildRequires: perl(Specio::Library::String)
|
2016-03-20 13:16:36 +00:00
|
|
|
BuildRequires: perl(strict)
|
2015-11-08 16:42:49 +00:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
2016-03-20 13:16:36 +00:00
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
# Test Suite
|
2014-08-12 12:01:19 +00:00
|
|
|
BuildRequires: perl(File::Spec)
|
2015-11-08 16:42:49 +00:00
|
|
|
BuildRequires: perl(lib)
|
|
|
|
BuildRequires: perl(Test::Builder)
|
|
|
|
BuildRequires: perl(Test::Fatal)
|
2015-10-08 07:47:37 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2015-11-14 20:23:17 +00:00
|
|
|
BuildRequires: perl(Test::Warnings)
|
2014-08-12 12:01:19 +00:00
|
|
|
BuildRequires: perl(utf8)
|
2016-03-20 13:16:36 +00:00
|
|
|
# Optional Tests
|
|
|
|
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
|
|
|
BuildRequires: perl(CPAN::Meta::Prereqs)
|
|
|
|
# Runtime
|
2016-01-14 11:14:30 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
2006-07-07 17:40:19 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module implements most of strptime(3), the POSIX function that is the
|
|
|
|
reverse of strftime(3), for DateTime. While strftime takes a DateTime and a
|
|
|
|
pattern and returns a string, strptime takes a string and a pattern and
|
|
|
|
returns the DateTime object associated.
|
|
|
|
|
|
|
|
%prep
|
2015-10-08 07:47:37 +00:00
|
|
|
%setup -q -n DateTime-Format-Strptime-%{version}
|
2006-07-07 17:40:19 +00:00
|
|
|
|
|
|
|
%build
|
2016-12-11 16:03:05 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
2006-07-07 17:40:19 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2016-12-11 16:03:05 +00:00
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
%{_fixperms} -c %{buildroot}
|
2006-07-07 17:40:19 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
2015-10-08 07:47:37 +00:00
|
|
|
%license LICENSE
|
2016-03-29 10:27:02 +00:00
|
|
|
%doc Changes CONTRIBUTING.md README.md
|
2013-04-03 15:26:49 +00:00
|
|
|
%{perl_vendorlib}/DateTime/
|
2015-11-08 16:42:49 +00:00
|
|
|
%{_mandir}/man3/DateTime::Format::Strptime.3*
|
2017-01-25 11:47:31 +00:00
|
|
|
%{_mandir}/man3/DateTime::Format::Strptime::Types.3*
|
2006-07-07 17:40:19 +00:00
|
|
|
|
|
|
|
%changelog
|
2017-02-11 02:40:18 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.73-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-02-01 10:30:42 +00:00
|
|
|
* Wed Feb 1 2017 Paul Howarth <paul@city-fan.org> - 1:1.73-1
|
|
|
|
- Update to 1.73
|
|
|
|
- The format_datetime method now checks that the object it is given isa
|
|
|
|
DateTime object (GH#17)
|
|
|
|
|
2017-01-25 11:47:31 +00:00
|
|
|
* Wed Jan 25 2017 Paul Howarth <paul@city-fan.org> - 1:1.72-1
|
|
|
|
- Update to 1.72
|
|
|
|
- By default, the word boundary checks added in 1.69 are now off; you can
|
|
|
|
enable them by passing "strict => 1" to the constructor (GH#15)
|
|
|
|
- Switched from Params::Validate to Params::ValidationCompiler
|
|
|
|
- Require DateTime::Locale 1.05; this fixes some test failures seen on CPAN
|
|
|
|
Testers
|
|
|
|
- Require DateTime::TimeZone 2.09 because you should really update this on a
|
|
|
|
regular basis
|
|
|
|
- Require Specio 0.33 to fix other test failures seen on CPAN (I hope)
|
|
|
|
|
2016-12-11 16:03:05 +00:00
|
|
|
* Sun Dec 11 2016 Paul Howarth <paul@city-fan.org> - 1:1.70-1
|
|
|
|
- Update to 1.70
|
|
|
|
- The word boundary check supposedly added in 1.67 didn't really work
|
|
|
|
properly, and still matched too much (GH#11)
|
|
|
|
- Added docs for several formats that have long been supported but not
|
|
|
|
documented; these are %%P, %%c, %%x, and %%X (GH#10)
|
|
|
|
- Altered the conversion specifier %%z to accept ±HH, ±HHMM, ±HH:MM and Z;
|
|
|
|
previously only ±HHMM were accepted (GH#13)
|
|
|
|
|
2016-05-16 01:02:29 +00:00
|
|
|
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.68-2
|
|
|
|
- Perl 5.24 rebuild
|
|
|
|
|
2016-05-09 13:17:18 +00:00
|
|
|
* Mon May 9 2016 Paul Howarth <paul@city-fan.org> - 1:1.68-1
|
|
|
|
- Update to 1.68
|
|
|
|
- Author tests are no longer in t/, which makes running tests for non-authors
|
|
|
|
much faster (CPAN RT#114237)
|
|
|
|
|
2016-04-01 09:23:07 +00:00
|
|
|
* Fri Apr 1 2016 Paul Howarth <paul@city-fan.org> - 1:1.67-1
|
|
|
|
- Update to 1.67
|
|
|
|
- Fixed a regression introduced in 1.60; older versions of this library would
|
|
|
|
match dates pretty much anywhere in a string, so "%%Y-%%m-%%d" would match
|
|
|
|
a string like "abcd1234-12-30efgh" - this is probably too permissive, but
|
|
|
|
we definitely want to match on word boundaries so that we match
|
|
|
|
"log.2016-03-31" (GH#3)
|
|
|
|
|
2016-03-29 10:27:02 +00:00
|
|
|
* Tue Mar 29 2016 Paul Howarth <paul@city-fan.org> - 1:1.66-1
|
|
|
|
- Update to 1.66
|
|
|
|
- Added a zone_map constructor argument; this lets you supply a mapping for
|
|
|
|
ambiguous time zone abbreviations (CPAN RT#74762)
|
|
|
|
|
2016-03-20 13:16:36 +00:00
|
|
|
* Sun Mar 20 2016 Paul Howarth <paul@city-fan.org> - 1:1.65-1
|
|
|
|
- 1.65 bump
|
|
|
|
- License is now Artistic 2.0
|
|
|
|
|
2016-02-22 13:13:56 +00:00
|
|
|
* Mon Feb 22 2016 Petr Šabata <contyk@redhat.com> - 1:1.64-1
|
|
|
|
- 1.64 bump
|
|
|
|
|
2016-02-04 13:15:33 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.63-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-14 11:14:30 +00:00
|
|
|
* Thu Jan 14 2016 Petr Šabata <contyk@redhat.com> - 1:1.63-1
|
|
|
|
- 1.63 bump
|
|
|
|
- Modernize the SPEC file
|
|
|
|
|
2015-12-21 12:16:08 +00:00
|
|
|
* Mon Dec 21 2015 Petr Šabata <contyk@redhat.com> - 1:1.62-1
|
|
|
|
- 1.62 bump
|
|
|
|
|
2015-11-14 20:23:17 +00:00
|
|
|
* Sat Nov 14 2015 Paul Howarth <paul@city-fan.org> - 1:1.61-1
|
|
|
|
- 1.61 bump
|
|
|
|
|
2015-11-08 16:42:49 +00:00
|
|
|
* Sun Nov 8 2015 Paul Howarth <paul@city-fan.org> - 1:1.60-1
|
|
|
|
- 1.60 bump
|
|
|
|
|
2015-10-08 07:47:37 +00:00
|
|
|
* Thu Oct 08 2015 Petr Pisar <ppisar@redhat.com> - 1:1.57-1
|
|
|
|
- 1.57 bump
|
|
|
|
|
2015-06-18 02:37:13 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5600-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-06 19:27:19 +00:00
|
|
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.5600-3
|
|
|
|
- Perl 5.22 rebuild
|
|
|
|
|
2014-08-29 14:41:37 +00:00
|
|
|
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.5600-2
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-08-12 12:01:19 +00:00
|
|
|
* Tue Aug 12 2014 Petr Pisar <ppisar@redhat.com> - 1.5600-1
|
|
|
|
- 1.56 bump
|
|
|
|
|
2014-06-07 03:14:38 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5500-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-04 19:21:21 +00:00
|
|
|
* Sun May 4 2014 Paul Howarth <paul@city-fan.org> - 1.5500-1
|
|
|
|
- Update to 1.55 (rpm version 1.5500 to maintain upgrade path)
|
|
|
|
- If diagnostic is true for an object, it will now use Test::More::diag()
|
|
|
|
under the test harness rather than printing to STDOUT
|
|
|
|
- The %%z specifier will now parse UTC offsets with a colon like "+01:00"
|
|
|
|
(CPAN RT#91458)
|
|
|
|
- Made the regexes to parse day and months abbreviations and names a little
|
|
|
|
more specificl as it stood, they tended to eat up more non-word characters
|
|
|
|
than they should, so a pattern like '%%a%%m%%d_%%Y' broke on a date like
|
|
|
|
'Fri0215_2013' - the day name would be parsed as 'Fri02' and the month
|
|
|
|
would not be parsed at all (CPAN RT#93863, CPAN RT#93865)
|
|
|
|
- Specify all dependencies
|
|
|
|
- Use DESTDIR rather than PERL_INSTALL_ROOT
|
|
|
|
|
2013-08-03 19:51:19 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5400-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-31 02:30:33 +00:00
|
|
|
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 1.5400-2
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-04-03 15:26:49 +00:00
|
|
|
* Wed Apr 3 2013 Paul Howarth <paul@city-fan.org> - 1.5400-1
|
|
|
|
- Update to 1.54 (rpm version 1.5400 to maintain upgrade path)
|
|
|
|
- Packaging cleanup, including listing Test::More as a test prereq, not a
|
|
|
|
runtime prereq (CPAN RT#76128)
|
|
|
|
- Shut up "unescaped braces in regex" warning from 5.17.0 (CPAN RT#77514)
|
|
|
|
- A fix in DateTime.pm 1.00 broke a test in this distro (CPAN RT#84371)
|
|
|
|
- Require DateTime.pm 1.00 because without it tests will break
|
|
|
|
- Specify all dependencies
|
|
|
|
- This release by DROLSKY -> update source URL
|
|
|
|
- Drop %%defattr, redundant since rpm 4.4
|
|
|
|
- Don't need to remove empty directories from the buildroot
|
|
|
|
- Don't use macros for commands
|
|
|
|
- Make %%files list more explicit
|
|
|
|
|
2013-02-14 11:52:48 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-20 14:36:48 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-20 11:51:02 +00:00
|
|
|
* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 1.5000-6
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-01-13 13:25:48 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-07-21 15:09:23 +00:00
|
|
|
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.5000-4
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-07-19 14:28:44 +00:00
|
|
|
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.5000-3
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-02-08 21:08:15 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-22 23:44:35 +00:00
|
|
|
* Wed Dec 22 2010 Steven Pritchard <steve@kspei.com> 1.5000-1
|
|
|
|
- Update to 1.5000.
|
|
|
|
|
2010-12-16 05:53:44 +00:00
|
|
|
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.2000-3
|
2013-04-03 15:26:49 +00:00
|
|
|
- Rebuild to fix problems with vendorarch/lib (#661697)
|
2010-12-16 05:53:44 +00:00
|
|
|
|
2010-06-15 13:05:44 +00:00
|
|
|
* Tue Jun 15 2010 Petr Sabata <psabata@redhat.com> - 1.2000-1
|
|
|
|
- Update to the latest upstream release
|
|
|
|
|
2010-04-30 14:01:25 +00:00
|
|
|
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.1000-2
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
2010-02-16 08:13:56 +00:00
|
|
|
* Tue Feb 16 2010 Paul Howarth <paul@city-fan.org> 1.1000-1
|
|
|
|
- Fix FTBFS (#564718) by bumping buildreq version of perl(DateTime) from 0.4304
|
|
|
|
to 0.44 (RPM considers 0.4304 > 0.44, unlike perl) and bumping version to
|
|
|
|
1.1000 for compatibility with DateTime::Locale 0.43 (upstream ticket 19)
|
|
|
|
- Update buildreq version requirement for perl(DateTime::Locale) to 0.43
|
|
|
|
- Drop test patch, no longer needed
|
|
|
|
- Run additional tests for full locale coverage
|
|
|
|
|
|
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> 1.0800-4
|
|
|
|
- Rebuild against perl 5.10.1
|
|
|
|
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 1.0800-3
|
2009-07-26 05:38:56 +00:00
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2010-02-16 08:13:56 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 1.0800-2
|
2009-02-26 15:00:36 +00:00
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-09-22 18:23:05 +00:00
|
|
|
* Fri Aug 29 2008 Steven Pritchard <steve@kspei.com> 1.0800-1
|
|
|
|
- Update to 1.0800.
|
|
|
|
- Update versions on build dependencies.
|
|
|
|
|
2008-07-08 16:54:21 +00:00
|
|
|
* Tue Jul 08 2008 Steven Pritchard <steve@kspei.com> 1.0702-3
|
|
|
|
- Patch t/004_locale_defaults.t to work around change in DateTime::Locale.
|
|
|
|
|
2008-03-04 19:28:12 +00:00
|
|
|
* Tue Mar 04 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.0702-2
|
2010-02-16 08:13:56 +00:00
|
|
|
- Rebuild for new perl
|
2008-03-04 19:28:12 +00:00
|
|
|
|
2008-01-03 17:28:37 +00:00
|
|
|
* Thu Jan 03 2008 Steven Pritchard <steve@kspei.com> 1.0702-1
|
|
|
|
- Update to 1.0702.
|
|
|
|
- Drop charset patch.
|
|
|
|
- Update License tag.
|
|
|
|
- BR Test::More.
|
|
|
|
|
2007-04-17 23:19:59 +00:00
|
|
|
* Tue Apr 17 2007 Steven Pritchard <steve@kspei.com> 1.0700-3
|
|
|
|
- Use fixperms macro instead of our own chmod incantation.
|
|
|
|
- BR ExtUtils::MakeMaker.
|
|
|
|
|
2006-09-17 19:05:46 +00:00
|
|
|
* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 1.0700-2
|
|
|
|
- Fix find option order.
|
|
|
|
|
2006-07-07 17:40:19 +00:00
|
|
|
* Mon Jul 03 2006 Steven Pritchard <steve@kspei.com> 1.0700-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.66.
|
|
|
|
- Fix License.
|
|
|
|
- Remove versioned DateTime deps (0.1402 > 0.30 according to rpm).
|
|
|
|
- Remove versioned explicit dependencies that rpmbuild picks up.
|
|
|
|
- Substitute literal "©" for E<169> in pod documentation. (The result
|
|
|
|
should be the same, but apparently the man page conversion is generating
|
|
|
|
something that rpmlint doesn't like.)
|