Blame SPECS/perl-DateTime-Format-Strptime.spec

bdaba0
Name:           perl-DateTime-Format-Strptime
bdaba0
Epoch:          1
bdaba0
Version:        1.79
bdaba0
Release:        2%{?dist}
bdaba0
Summary:        Parse and format strptime and strftime patterns
bdaba0
License:        Artistic 2.0
bdaba0
URL:            https://metacpan.org/release/DateTime-Format-Strptime
bdaba0
Source0:        https://cpan.metacpan.org/modules/by-module/DateTime/DateTime-Format-Strptime-%{version}.tar.gz
bdaba0
BuildArch:      noarch
bdaba0
# Module Build
bdaba0
BuildRequires:  coreutils
bdaba0
BuildRequires:  make
bdaba0
BuildRequires:  perl-generators
bdaba0
BuildRequires:  perl-interpreter
bdaba0
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
bdaba0
# Module Runtime
bdaba0
BuildRequires:  perl(Carp)
bdaba0
BuildRequires:  perl(constant)
bdaba0
BuildRequires:  perl(DateTime) >= 1.00
bdaba0
BuildRequires:  perl(DateTime::Locale) >= 1.30
bdaba0
BuildRequires:  perl(DateTime::Locale::Base)
bdaba0
BuildRequires:  perl(DateTime::TimeZone) >= 2.09
bdaba0
BuildRequires:  perl(Exporter)
bdaba0
BuildRequires:  perl(Params::ValidationCompiler)
bdaba0
BuildRequires:  perl(parent)
bdaba0
BuildRequires:  perl(Specio) >= 0.33
bdaba0
BuildRequires:  perl(Specio::Declare)
bdaba0
BuildRequires:  perl(Specio::Exporter)
bdaba0
BuildRequires:  perl(Specio::Library::Builtins)
bdaba0
BuildRequires:  perl(Specio::Library::String)
bdaba0
BuildRequires:  perl(strict)
bdaba0
BuildRequires:  perl(Try::Tiny)
bdaba0
BuildRequires:  perl(warnings)
bdaba0
# Test Suite
bdaba0
BuildRequires:  perl(File::Spec)
bdaba0
BuildRequires:  perl(FindBin)
bdaba0
BuildRequires:  perl(lib)
bdaba0
BuildRequires:  perl(Test::Builder)
bdaba0
BuildRequires:  perl(Test::Fatal)
bdaba0
BuildRequires:  perl(Test::More) >= 0.96
bdaba0
BuildRequires:  perl(Test::Warnings)
bdaba0
BuildRequires:  perl(utf8)
bdaba0
# Optional Tests
bdaba0
BuildRequires:  perl(CPAN::Meta) >= 2.120900
bdaba0
BuildRequires:  perl(CPAN::Meta::Prereqs)
bdaba0
# Runtime
bdaba0
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
bdaba0
bdaba0
%description
bdaba0
This module implements most of strptime(3), the POSIX function that is the
bdaba0
reverse of strftime(3), for DateTime. While strftime takes a DateTime and a
bdaba0
pattern and returns a string, strptime takes a string and a pattern and
bdaba0
returns the DateTime object associated.
bdaba0
bdaba0
%prep
bdaba0
%setup -q -n DateTime-Format-Strptime-%{version}
bdaba0
bdaba0
%build
bdaba0
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
bdaba0
%{make_build}
bdaba0
bdaba0
%install
bdaba0
%{make_install}
bdaba0
%{_fixperms} -c %{buildroot}
bdaba0
bdaba0
%check
bdaba0
make test
bdaba0
bdaba0
%files
bdaba0
%license LICENSE
bdaba0
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
bdaba0
%{perl_vendorlib}/DateTime/
bdaba0
%{_mandir}/man3/DateTime::Format::Strptime.3*
bdaba0
%{_mandir}/man3/DateTime::Format::Strptime::Types.3*
bdaba0
bdaba0
%changelog
bdaba0
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.79-2
bdaba0
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
bdaba0
  Related: rhbz#1991688
bdaba0
bdaba0
* Wed Jun 23 2021 Michal Josef Spacek <mspacek@redhat.com> - 1:1.79-1
bdaba0
- Update to 1.79
bdaba0
  - Fix too-strict type checking for time zones: this module now uses the same
bdaba0
    check as DateTime itself, which allows for things that don't subclass
bdaba0
    DateTime::TimeZone as long as they provide the same API (GH#30) (rhbz#1964546)
bdaba0
bdaba0
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.78-3
bdaba0
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
bdaba0
bdaba0
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.78-2
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
bdaba0
bdaba0
* Wed Dec 16 2020 Paul Howarth <paul@city-fan.org> - 1:1.78-1
bdaba0
- Update to 1.78
bdaba0
  - Fix tests for new failure caused by locale data changes in DateTime::Locale
bdaba0
    1.29 (GH#28)
bdaba0
  - Added a warning about using locale-specific patterns; some of these patterns
bdaba0
    can change quite a bit as the locale data is updated, so using them for
bdaba0
    parsing does not produce stable results across time - this is what caused
bdaba0
    the test failures that this release fixes
bdaba0
bdaba0
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.77-3
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
bdaba0
bdaba0
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.77-2
bdaba0
- Perl 5.32 rebuild
bdaba0
bdaba0
* Mon Mar  2 2020 Paul Howarth <paul@city-fan.org> - 1:1.77-1
bdaba0
- Update to 1.77
bdaba0
  - When the parsed string contained an invalid time zone offset (parsed with
bdaba0
    "%%z") like "-9999", the error handling set in the parser's constructor was
bdaba0
    ignored and an exception was always thrown (GH#25)
bdaba0
- Use %%{make_build} and %%{make_install}
bdaba0
bdaba0
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.76-4
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
bdaba0
bdaba0
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.76-3
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bdaba0
bdaba0
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.76-2
bdaba0
- Perl 5.30 rebuild
bdaba0
bdaba0
* Fri Feb  8 2019 Paul Howarth <paul@city-fan.org> - 1:1.76-1
bdaba0
- Update to 1.76
bdaba0
  - The ability to set the pattern, time_zone, and locale via accessor methods
bdaba0
    has been removed; this was deprecated over three years ago in version 1.60
bdaba0
    (it also turns out that the setting was actually broken for a long time but
bdaba0
    no one seemed to notice)
bdaba0
- Package new upstream document CODE_OF_CONDUCT.md
bdaba0
bdaba0
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.75-5
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bdaba0
bdaba0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.75-4
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
bdaba0
bdaba0
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.75-3
bdaba0
- Perl 5.28 rebuild
bdaba0
bdaba0
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.75-2
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bdaba0
bdaba0
* Tue Dec 26 2017 Paul Howarth <paul@city-fan.org> - 1:1.75-1
bdaba0
- Update to 1.75
bdaba0
  - Fixed tests to pass with blead Perl (GH#19)
bdaba0
bdaba0
* Fri Aug  4 2017 Paul Howarth <paul@city-fan.org> - 1:1.74-1
bdaba0
- Update to 1.74
bdaba0
  - Fix text not to rely on a very specific exception message from Specio; this
bdaba0
    was broken in 0.39 (GH#18)
bdaba0
bdaba0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.73-4
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bdaba0
bdaba0
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.73-3
bdaba0
- Perl 5.26 rebuild
bdaba0
bdaba0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.73-2
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bdaba0
bdaba0
* Wed Feb  1 2017 Paul Howarth <paul@city-fan.org> - 1:1.73-1
bdaba0
- Update to 1.73
bdaba0
  - The format_datetime method now checks that the object it is given isa
bdaba0
    DateTime object (GH#17)
bdaba0
bdaba0
* Wed Jan 25 2017 Paul Howarth <paul@city-fan.org> - 1:1.72-1
bdaba0
- Update to 1.72
bdaba0
  - By default, the word boundary checks added in 1.69 are now off; you can
bdaba0
    enable them by passing "strict => 1" to the constructor (GH#15)
bdaba0
  - Switched from Params::Validate to Params::ValidationCompiler
bdaba0
  - Require DateTime::Locale 1.05; this fixes some test failures seen on CPAN
bdaba0
    Testers
bdaba0
  - Require DateTime::TimeZone 2.09 because you should really update this on a
bdaba0
    regular basis
bdaba0
  - Require Specio 0.33 to fix other test failures seen on CPAN (I hope)
bdaba0
bdaba0
* Sun Dec 11 2016 Paul Howarth <paul@city-fan.org> - 1:1.70-1
bdaba0
- Update to 1.70
bdaba0
  - The word boundary check supposedly added in 1.67 didn't really work
bdaba0
    properly, and still matched too much (GH#11)
bdaba0
  - Added docs for several formats that have long been supported but not
bdaba0
    documented; these are %%P, %%c, %%x, and %%X (GH#10)
bdaba0
  - Altered the conversion specifier %%z to accept ±HH, ±HHMM, ±HH:MM and Z;
bdaba0
    previously only ±HHMM were accepted (GH#13)
bdaba0
bdaba0
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.68-2
bdaba0
- Perl 5.24 rebuild
bdaba0
bdaba0
* Mon May  9 2016 Paul Howarth <paul@city-fan.org> - 1:1.68-1
bdaba0
- Update to 1.68
bdaba0
  - Author tests are no longer in t/, which makes running tests for non-authors
bdaba0
    much faster (CPAN RT#114237)
bdaba0
bdaba0
* Fri Apr  1 2016 Paul Howarth <paul@city-fan.org> - 1:1.67-1
bdaba0
- Update to 1.67
bdaba0
  - Fixed a regression introduced in 1.60; older versions of this library would
bdaba0
    match dates pretty much anywhere in a string, so "%%Y-%%m-%%d" would match
bdaba0
    a string like "abcd1234-12-30efgh" - this is probably too permissive, but
bdaba0
    we definitely want to match on word boundaries so that we match
bdaba0
    "log.2016-03-31" (GH#3)
bdaba0
bdaba0
* Tue Mar 29 2016 Paul Howarth <paul@city-fan.org> - 1:1.66-1
bdaba0
- Update to 1.66
bdaba0
  - Added a zone_map constructor argument; this lets you supply a mapping for
bdaba0
    ambiguous time zone abbreviations (CPAN RT#74762)
bdaba0
bdaba0
* Sun Mar 20 2016 Paul Howarth <paul@city-fan.org> - 1:1.65-1
bdaba0
- 1.65 bump
bdaba0
- License is now Artistic 2.0
bdaba0
bdaba0
* Mon Feb 22 2016 Petr Šabata <contyk@redhat.com> - 1:1.64-1
bdaba0
- 1.64 bump
bdaba0
bdaba0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.63-2
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bdaba0
bdaba0
* Thu Jan 14 2016 Petr Šabata <contyk@redhat.com> - 1:1.63-1
bdaba0
- 1.63 bump
bdaba0
- Modernize the SPEC file
bdaba0
bdaba0
* Mon Dec 21 2015 Petr Šabata <contyk@redhat.com> - 1:1.62-1
bdaba0
- 1.62 bump
bdaba0
bdaba0
* Sat Nov 14 2015 Paul Howarth <paul@city-fan.org> - 1:1.61-1
bdaba0
- 1.61 bump
bdaba0
bdaba0
* Sun Nov  8 2015 Paul Howarth <paul@city-fan.org> - 1:1.60-1
bdaba0
- 1.60 bump
bdaba0
bdaba0
* Thu Oct 08 2015 Petr Pisar <ppisar@redhat.com> - 1:1.57-1
bdaba0
- 1.57 bump
bdaba0
bdaba0
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5600-4
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bdaba0
bdaba0
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.5600-3
bdaba0
- Perl 5.22 rebuild
bdaba0
bdaba0
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.5600-2
bdaba0
- Perl 5.20 rebuild
bdaba0
bdaba0
* Tue Aug 12 2014 Petr Pisar <ppisar@redhat.com> - 1.5600-1
bdaba0
- 1.56 bump
bdaba0
bdaba0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5500-2
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bdaba0
bdaba0
* Sun May  4 2014 Paul Howarth <paul@city-fan.org> - 1.5500-1
bdaba0
- Update to 1.55 (rpm version 1.5500 to maintain upgrade path)
bdaba0
  - If diagnostic is true for an object, it will now use Test::More::diag()
bdaba0
    under the test harness rather than printing to STDOUT
bdaba0
  - The %%z specifier will now parse UTC offsets with a colon like "+01:00"
bdaba0
    (CPAN RT#91458)
bdaba0
  - Made the regexes to parse day and months abbreviations and names a little
bdaba0
    more specificl as it stood, they tended to eat up more non-word characters
bdaba0
    than they should, so a pattern like '%%a%%m%%d_%%Y' broke on a date like
bdaba0
    'Fri0215_2013' - the day name would be parsed as 'Fri02' and the month
bdaba0
    would not be parsed at all (CPAN RT#93863, CPAN RT#93865)
bdaba0
- Specify all dependencies
bdaba0
- Use DESTDIR rather than PERL_INSTALL_ROOT
bdaba0
bdaba0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5400-3
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bdaba0
bdaba0
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 1.5400-2
bdaba0
- Perl 5.18 rebuild
bdaba0
bdaba0
* Wed Apr  3 2013 Paul Howarth <paul@city-fan.org> - 1.5400-1
bdaba0
- Update to 1.54 (rpm version 1.5400 to maintain upgrade path)
bdaba0
  - Packaging cleanup, including listing Test::More as a test prereq, not a
bdaba0
    runtime prereq (CPAN RT#76128)
bdaba0
  - Shut up "unescaped braces in regex" warning from 5.17.0 (CPAN RT#77514)
bdaba0
  - A fix in DateTime.pm 1.00 broke a test in this distro (CPAN RT#84371)
bdaba0
  - Require DateTime.pm 1.00 because without it tests will break
bdaba0
- Specify all dependencies
bdaba0
- This release by DROLSKY -> update source URL
bdaba0
- Drop %%defattr, redundant since rpm 4.4
bdaba0
- Don't need to remove empty directories from the buildroot
bdaba0
- Don't use macros for commands
bdaba0
- Make %%files list more explicit
bdaba0
bdaba0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-8
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bdaba0
bdaba0
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-7
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bdaba0
bdaba0
* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 1.5000-6
bdaba0
- Perl 5.16 rebuild
bdaba0
bdaba0
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-5
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bdaba0
bdaba0
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.5000-4
bdaba0
- Perl mass rebuild
bdaba0
bdaba0
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.5000-3
bdaba0
- Perl mass rebuild
bdaba0
bdaba0
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-2
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bdaba0
bdaba0
* Wed Dec 22 2010 Steven Pritchard <steve@kspei.com> 1.5000-1
bdaba0
- Update to 1.5000.
bdaba0
bdaba0
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.2000-3
bdaba0
- Rebuild to fix problems with vendorarch/lib (#661697)
bdaba0
bdaba0
* Tue Jun 15 2010 Petr Sabata <psabata@redhat.com> - 1.2000-1
bdaba0
- Update to the latest upstream release
bdaba0
bdaba0
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.1000-2
bdaba0
- Mass rebuild with perl-5.12.0
bdaba0
bdaba0
* Tue Feb 16 2010 Paul Howarth <paul@city-fan.org> 1.1000-1
bdaba0
- Fix FTBFS (#564718) by bumping buildreq version of perl(DateTime) from 0.4304
bdaba0
  to 0.44 (RPM considers 0.4304 > 0.44, unlike perl) and bumping version to
bdaba0
  1.1000 for compatibility with DateTime::Locale 0.43 (upstream ticket 19)
bdaba0
- Update buildreq version requirement for perl(DateTime::Locale) to 0.43
bdaba0
- Drop test patch, no longer needed
bdaba0
- Run additional tests for full locale coverage
bdaba0
bdaba0
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> 1.0800-4
bdaba0
- Rebuild against perl 5.10.1
bdaba0
bdaba0
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 1.0800-3
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bdaba0
bdaba0
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 1.0800-2
bdaba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bdaba0
bdaba0
* Fri Aug 29 2008 Steven Pritchard <steve@kspei.com> 1.0800-1
bdaba0
- Update to 1.0800.
bdaba0
- Update versions on build dependencies.
bdaba0
bdaba0
* Tue Jul 08 2008 Steven Pritchard <steve@kspei.com> 1.0702-3
bdaba0
- Patch t/004_locale_defaults.t to work around change in DateTime::Locale.
bdaba0
bdaba0
* Tue Mar 04 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.0702-2
bdaba0
- Rebuild for new perl
bdaba0
bdaba0
* Thu Jan 03 2008 Steven Pritchard <steve@kspei.com> 1.0702-1
bdaba0
- Update to 1.0702.
bdaba0
- Drop charset patch.
bdaba0
- Update License tag.
bdaba0
- BR Test::More.
bdaba0
bdaba0
* Tue Apr 17 2007 Steven Pritchard <steve@kspei.com> 1.0700-3
bdaba0
- Use fixperms macro instead of our own chmod incantation.
bdaba0
- BR ExtUtils::MakeMaker.
bdaba0
bdaba0
* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 1.0700-2
bdaba0
- Fix find option order.
bdaba0
bdaba0
* Mon Jul 03 2006 Steven Pritchard <steve@kspei.com> 1.0700-1
bdaba0
- Specfile autogenerated by cpanspec 1.66.
bdaba0
- Fix License.
bdaba0
- Remove versioned DateTime deps (0.1402 > 0.30 according to rpm).
bdaba0
- Remove versioned explicit dependencies that rpmbuild picks up.
bdaba0
- Substitute literal "©" for E<169> in pod documentation.  (The result
bdaba0
  should be the same, but apparently the man page conversion is generating
bdaba0
  something that rpmlint doesn't like.)