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

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