378a58d
Name:           perl-DateTime
ef7b982
Epoch:          2
72cfd91
Version:        1.18
b430fd2
Release:        1%{?dist}
83badaa
Summary:        Date and time object for Perl
8baa9ed
License:        Artistic 2.0
378a58d
Group:          Development/Libraries
378a58d
URL:            http://search.cpan.org/dist/DateTime/
8baa9ed
Source0:        http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-%{version}.tar.gz
Petr Šabata 619c758
BuildRequires:  perl
50167b2
BuildRequires:  perl(Module::Build)
Petr Šabata 619c758
BuildRequires:  perl(strict)
Petr Šabata 619c758
BuildRequires:  perl(warnings)
50167b2
# Run-time:
939a4e3
BuildRequires:  perl(base)
50167b2
BuildRequires:  perl(Carp)
939a4e3
BuildRequires:  perl(constant)
8baa9ed
BuildRequires:  perl(DateTime::Locale) >= 0.41
83badaa
BuildRequires:  perl(DateTime::TimeZone) >= 1.74
Petr Šabata 619c758
BuildRequires:  perl(integer)
Petr Šabata 619c758
BuildRequires:  perl(overload)
8baa9ed
BuildRequires:  perl(Params::Validate) >= 0.76
Petr Šabata 619c758
BuildRequires:  perl(POSIX)
8baa9ed
BuildRequires:  perl(Scalar::Util)
Petr Šabata 619c758
BuildRequires:  perl(Try::Tiny)
Petr Šabata 619c758
BuildRequires:  perl(vars)
f7445b0
BuildRequires:  perl(warnings::register)
939a4e3
BuildRequires:  perl(XSLoader)
50167b2
# Tests:
28b99ff
# Cwd not used
28b99ff
# Test::DependentModules not used
83badaa
BuildRequires:  perl(ExtUtils::MakeMaker)
83badaa
BuildRequires:  perl(File::Spec)
Petr Šabata 619c758
BuildRequires:  perl(Test::Fatal)
50167b2
BuildRequires:  perl(Test::More) >= 0.88
f7445b0
BuildRequires:  perl(Test::Warnings) >= 0.005
Petr Šabata 619c758
BuildRequires:  perl(utf8)
50167b2
# Optional tests:
50167b2
# circular dependency - perl(DateTime::Format::Strptime) >= 1.2000
83badaa
# Pod::Coverage::TrustPod not used
83badaa
# Pod::Wordlist not used
50167b2
BuildRequires:  perl(Storable)
83badaa
# Test::DependentModules not used
83badaa
# Test::NoTabs not used
83badaa
# Test::Pod 1.41 not used
83badaa
# Test::Pod::Coverage 1.08 not used
83badaa
# Test::Spelling 0.12 not used
01d4fec
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
50167b2
Requires:       perl(XSLoader)
378a58d
8baa9ed
# not automatically detected
8baa9ed
Provides:       perl(DateTimePP) = %{version}
8baa9ed
Provides:       perl(DateTimePPExtra) = %{version}
42ea829
8baa9ed
%{?perl_default_filter}
50167b2
# Filter under-specified dependencies
28b99ff
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((DateTime::Locale|DateTime::TimeZone|Params::Validate)\\)$
2815e75
378a58d
%description
8baa9ed
DateTime is a class for the representation of date/time combinations.  It
8baa9ed
represents the Gregorian calendar, extended backwards in time before its
8baa9ed
creation (in 1582). This is sometimes known as the "proleptic Gregorian
8baa9ed
calendar". In this calendar, the first day of the calendar (the epoch), is the
8baa9ed
first day of year 1, which corresponds to the date which was (incorrectly)
8baa9ed
believed to be the birth of Jesus Christ.
378a58d
378a58d
%prep
8baa9ed
%setup -q -n DateTime-%{version}
378a58d
378a58d
%build
e4d96f3
perl Build.PL --installdirs=vendor --optimize="%{optflags}"
7b47eca
./Build
378a58d
378a58d
%install
e4d96f3
./Build install --destdir=%{buildroot} --create_packlist=0
8baa9ed
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
01d4fec
%{_fixperms} %{buildroot}
378a58d
378a58d
%check
50167b2
./Build test
378a58d
378a58d
%files
e4d96f3
%license LICENSE
e4d96f3
%doc Changes CREDITS README.md TODO
e4d96f3
%{perl_vendorarch}/auto/DateTime/
e4d96f3
%{perl_vendorarch}/DateTime/
e4d96f3
%{perl_vendorarch}/DateTime.pm
e4d96f3
%{perl_vendorarch}/DateTimePP.pm
e4d96f3
%{perl_vendorarch}/DateTimePPExtra.pm
e4d96f3
%{_mandir}/man3/DateTime.3*
e4d96f3
%{_mandir}/man3/DateTime::Duration.3*
e4d96f3
%{_mandir}/man3/DateTime::Infinite.3*
e4d96f3
%{_mandir}/man3/DateTime::LeapSecond.3*
378a58d
378a58d
%changelog
72cfd91
* Tue Jan  6 2015 Paul Howarth <paul@city-fan.org> - 2:1.18-1
72cfd91
- 1.18 bump
72cfd91
e4d96f3
* Mon Jan  5 2015 Paul Howarth <paul@city-fan.org> - 2:1.17-1
e4d96f3
- 1.17 bump
e4d96f3
- Use %%license
e4d96f3
- Make %%files list more explicit
e4d96f3
b430fd2
* Mon Jan  5 2015 Paul Howarth <paul@city-fan.org> - 2:1.14-1
b430fd2
- 1.14 bump
b430fd2
bfbbf75
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.12-2
bfbbf75
- Perl 5.20 rebuild
bfbbf75
83badaa
* Tue Sep 02 2014 Petr Pisar <ppisar@redhat.com> - 2:1.12-1
83badaa
- 1.12 bump
83badaa
92b3882
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.10-4
92b3882
- Perl 5.20 rebuild
92b3882
62733f5
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.10-3
62733f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
62733f5
7d11b5a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.10-2
7d11b5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7d11b5a
f7445b0
* Wed May 07 2014 Petr Pisar <ppisar@redhat.com> - 2:1.10-1
f7445b0
- 1.10 bump
f7445b0
8f63f18
* Fri Mar 14 2014 Paul Howarth <paul@city-fan.org> - 2:1.08-1
8f63f18
- 1.08 bump
8f63f18
01d4fec
* Mon Feb 10 2014 Paul Howarth <paul@city-fan.org> - 2:1.07-1
01d4fec
- 1.07 bump
01d4fec
4d6340b
* Fri Jan 03 2014 Petr Pisar <ppisar@redhat.com> - 2:1.06-1
4d6340b
- 1.06 bump
4d6340b
28b99ff
* Tue Dec 10 2013 Petr Pisar <ppisar@redhat.com> - 2:1.04-1
28b99ff
- 1.04 bump
28b99ff
0732016
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.03-3
0732016
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0732016
abf6f38
* Tue Jul 30 2013 Petr Pisar <ppisar@redhat.com> - 2:1.03-2
abf6f38
- Perl 5.18 rebuild
abf6f38
e16055f
* Tue Jun 25 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.03-1
e16055f
- 1.03 bump
e16055f
Petr Šabata 619c758
* Tue Apr 02 2013 Petr Ĺ abata <contyk@redhat.com> - 2:1.01-1
Petr Šabata 619c758
- 1.01 bump
Petr Šabata 619c758
4558602
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:0.78-2
4558602
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4558602
ef7b982
* Mon Nov 19 2012 Petr Pisar <ppisar@redhat.com> - 2:0.78-1
519fa2c
- 0.78 bump
519fa2c
50167b2
* Thu Oct 18 2012 Petr Pisar <ppisar@redhat.com> - 2:0.77-1
50167b2
- 0.77 bump
50167b2
7c9fdc7
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:0.70-5
7c9fdc7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7c9fdc7
1dd7b46
* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 2:0.70-4
1dd7b46
- Perl 5.16 rebuild
1dd7b46
290d498
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:0.70-3
290d498
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
290d498
939a4e3
* Thu Aug 18 2011 Iain Arnell <iarnell@gmail.com> 2:0.70-2
939a4e3
- Additional (Build)Requires from unofficial review
939a4e3
8baa9ed
* Mon Aug 15 2011 Iain Arnell <iarnell@gmail.com> 2:0.70-1
8baa9ed
- Unbundle DateTime::TimeZone and DateTime::Locale
8baa9ed
- Bump epoch and revert to upstream versioning
8baa9ed
- Specfile regenerated by cpanspec 1.78.
8baa9ed
- Update description
8baa9ed
Petr Sabata e74014b
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 1:0.7000-3
Petr Sabata e74014b
- Perl mass rebuild
Petr Sabata e74014b
7c7919c
* Mon Jul 04 2011 Iain Arnell <iarnell@gmail.com> 1:0.7000-2
7c7919c
- update DateTime::TimeZone to 1.35 (Olson 2011h)
2815e75
- add rpm 4.9 filtering macros
7c7919c
0fa4a86
* Fri May 13 2011 Iain Arnell <iarnell@gmail.com> 1:0.7000-1
0fa4a86
- update DateTime to 0.70
0fa4a86
325cd23
* Wed May 04 2011 Iain Arnell <iarnell@gmail.com> 1:0.6900-1
325cd23
- update DateTime to 0.69
ad522a1
- update DateTime::TimeZone to 1.34 (Olson 2011g)
325cd23
1ac19c2
* Sun Apr 24 2011 Iain Arnell <iarnell@gmail.com> 1:0.6600-6
1ac19c2
- fix the testing for loop
1ac19c2
d77766f
* Sun Apr 24 2011 Iain Arnell <iarnell@gmail.com> 1:0.6600-5
b1ab4d2
- update DateTime::TimeZone to 1.33 (Olson 2011f)
b1ab4d2
e572d21
* Wed Apr 06 2011 Iain Arnell <iarnell@gmail.com> 1:0.6600-4
e572d21
- update DateTime::TimeZone to 1.32 (Olson 2011e)
e572d21
99293d3
* Sat Mar 26 2011 Iain Arnell <iarnell@gmail.com> 1:0.6600-3
99293d3
- update DateTime::TimeZone to 1.31
99293d3
- DateTime::TimeZone no longer has Build.PL; use Makefile.PL
99293d3
- whitespace cleanup
10b4e5c
- clean up .packlist
99293d3
11dddee
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.6600-2
11dddee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
11dddee
Steven Pritchard e6a81aa
* Sun Dec 12 2010 Steven Pritchard <steve@kspei.com> 1:0.6600-1
Steven Pritchard e6a81aa
- Update DateTime to 0.66.
Steven Pritchard e6a81aa
- Update DateTime::TimeZone to 1.26.
Steven Pritchard e6a81aa
- Update URL for FAQ in description.
Steven Pritchard e6a81aa
- BR Class::Load and parent.
Steven Pritchard e6a81aa
3f47fa5
* Sat Oct 09 2010 Iain Arnell <iarnell@gmail.com> 1:0.6300-1
3f47fa5
- Update DateTime to 0.63
3f47fa5
- Update DateTime::TimeZone to 1.22
3f47fa5
- DateTime license changed from "GPL+ or Artistic" to "Artistic 2.0"
3f47fa5
- Fix DTLocale/Changelog encoding
3f47fa5
44c6651
* Mon Jun 14 2010 Petr Sabata <psabata@redhat.com> - 1:0.5300-4
44c6651
- perl-DateTime-Locale-0.45 update
44c6651
0021af6
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:0.5300-3
0021af6
- Mass rebuild with perl-5.12.0
0021af6
bb23c62
* Wed Jan 27 2010 Stepan Kasal <skasal@redhat.com> - 1:0.5300-2
bb23c62
- new upstream version of DateTime-TimeZone
bb23c62
7b47eca
* Fri Jan 15 2010 Stepan Kasal <skasal@redhat.com> - 1:0.5300-1
7b47eca
- new upstream version
7b47eca
- use Build.PL as Makefile.PL no longer exists
7b47eca
- use iconv to recode to utf-8, not a patch
7b47eca
- update BuildRequires
7b47eca
- drop Provides: perl(DateTime::TimeZoneCatalog), it is no longer there
7b47eca
- use filtering macros
7b47eca
c722265
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1:0.4501-4
c722265
- rebuild against perl 5.10.1
c722265
19471b9
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.4501-3
19471b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
19471b9
bcb622e
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.4501-2
bcb622e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bcb622e
d5b6938
* Tue Dec 09 2008 Steven Pritchard <steve@kspei.com> 1:0.4501-1
d5b6938
- Update to DateTime 0.4501.
d5b6938
d5b6938
* Mon Nov 10 2008 Steven Pritchard <steve@kspei.com> 1:0.4401-1
d5b6938
- Update to DateTime 0.4401.
d5b6938
- Update to DateTime::Locale 0.42.
d5b6938
- Update to DateTime::TimeZone 0.8301.
d5b6938
7872cb0
* Mon Sep 08 2008 Steven Pritchard <steve@kspei.com> 1:0.4304-2
7872cb0
- Update to DateTime::TimeZone 0.7904.
7872cb0
d320de6
* Tue Jul 15 2008 Steven Pritchard <steve@kspei.com> 1:0.4304-1
7872cb0
- Update to DateTime 0.4304.
d320de6
- Update to DateTime::TimeZone 0.78.
d320de6
- Update to DateTime::Locale 0.41.
d320de6
69713f4
* Tue Jul 08 2008 Steven Pritchard <steve@kspei.com> 1:0.4302-2
69713f4
- Update to DateTime::TimeZone 0.7701.
69713f4
5c9bc90
* Sat May 31 2008 Steven Pritchard <steve@kspei.com> 1:0.4302-1
5c9bc90
- Update to DateTime 0.4302.
5c9bc90
- Update to DateTime::TimeZone 0.77.
5c9bc90
- Update to DateTime::Locale 0.4001.
5c9bc90
- BR List::MoreUtils.
5c9bc90
- Define IS_MAINTAINER so we run the pod tests.
5c9bc90
40e1791
* Thu May 15 2008 Steven Pritchard <steve@kspei.com> 1:0.42-1
40e1791
- Update to DateTime 0.42.
40e1791
- Update to DateTime::TimeZone 0.75.
40e1791
- Update FAQ URL in description.
40e1791
62621b9
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:0.41-5
62621b9
- Rebuild for perl 5.10 (again)
62621b9
2ec1545
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:0.41-4
2ec1545
- Autorebuild for GCC 4.3
2ec1545
de28180
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1:0.41-3
de28180
- rebuild for new perl
de28180
9b623af
* Tue Dec 11 2007 Steven Pritchard <steve@kspei.com> 1:0.41-2
9b623af
- Update License tag.
9b623af
- Update to DateTime::TimeZone 0.70.
9b623af
c857173
* Mon Sep 17 2007 Steven Pritchard <steve@kspei.com> 1:0.41-1
c857173
- Update to DateTime 0.41.
c857173
- Update to DateTime::Locale 0.35.
c857173
- Update to DateTime::TimeZone 0.67.
c857173
7174b18
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1:0.39-2
7174b18
- Rebuild for selinux ppc32 issue.
7174b18
84ecdf7
* Sun Jul 22 2007 Steven Pritchard <steve@kspei.com> 1:0.39-1
c857173
- Update to DateTime 0.39.
84ecdf7
- Update to DateTime::TimeZone 0.6603.
84ecdf7
a501262
* Thu Jul 05 2007 Steven Pritchard <steve@kspei.com> 1:0.38-2
a501262
- BR Test::Output.
a501262
60c36fe
* Mon Jul 02 2007 Steven Pritchard <steve@kspei.com> 1:0.38-1
60c36fe
- Update to DateTime 0.38.
60c36fe
- Update to DateTime::TimeZone 0.6602.
60c36fe
- BR Test::Pod::Coverage.
60c36fe
528ecd6
* Mon Apr 02 2007 Steven Pritchard <steve@kspei.com> 1:0.37-3
528ecd6
- Drop BR DateTime::Format::* to avoid circular build deps.
528ecd6
42ea829
* Mon Apr 02 2007 Steven Pritchard <steve@kspei.com> 1:0.37-2
42ea829
- Filter Win32::TieRegistry dependency.
42ea829
- Do the provides filter like we do in cpanspec.
42ea829
- Drop some macro usage.
42ea829
be5181a
* Sat Mar 31 2007 Steven Pritchard <steve@kspei.com> 1:0.37-1
be5181a
- Update to DateTime 0.37.
be5181a
- Update to DateTime::TimeZone 0.63.
be5181a
d84eee4
* Tue Mar 13 2007 Steven Pritchard <steve@kspei.com> 1:0.36-2
d84eee4
- Update to DateTime::Locale 0.34.
d84eee4
- Update to DateTime::TimeZone 0.62.
d84eee4
d5c30b4
* Mon Jan 22 2007 Steven Pritchard <steve@kspei.com> 1:0.36-1
d5c30b4
- Update to Date::Time 0.36.
d5c30b4
- Update to DateTime::Locale 0.33.
d5c30b4
- Update to DateTime::TimeZone 0.59.
d5c30b4
4ee8679
* Fri Nov 03 2006 Steven Pritchard <steve@kspei.com> 1:0.35-1
4ee8679
- Update to DateTime 0.35.
4ee8679
- Update to DateTime::Locale 0.3101.
4ee8679
- LICENSE.icu seems to have been renamed LICENSE.cldr.
4ee8679
- Update to DateTime::TimeZone 0.54.
4ee8679
- Use fixperms macro instead of our own chmod incantation.
4ee8679
- Convert DateTime::LeapSecond to UTF-8 to avoid a rpmlint warning.
4ee8679
910946f
* Tue Aug 29 2006 Steven Pritchard <steve@kspei.com> 1:0.34-3
910946f
- Update to DateTime::TimeZone 0.48.
910946f
3633e92
* Mon Aug 28 2006 Steven Pritchard <steve@kspei.com> 1:0.34-2
3633e92
- Update to DateTime::TimeZone 0.47.
3633e92
f607a44
* Mon Aug 14 2006 Steven Pritchard <steve@kspei.com> 1:0.34-1
f607a44
- Update to DateTime 0.34.
f607a44
11d2f7f
* Fri Jul 28 2006 Steven Pritchard <steve@kspei.com> 1:0.32-1
11d2f7f
- Update to DateTime 0.32.
11d2f7f
- Improve Summary, description, and source URLs.
11d2f7f
- Fix find option order.
11d2f7f
519b366
* Thu Jul 13 2006 Steven Pritchard <steve@kspei.com> 1:0.31-2
519b366
- BR DateTime::Format::ICal and DateTime::Format::Strptime for better
519b366
  test coverage.
519b366
d805aff
* Wed May 24 2006 Steven Pritchard <steve@kspei.com> 1:0.31-1
d805aff
- Update DateTime to 0.31.
d805aff
- Update DateTime::TimeZone to 0.46.
d805aff
5069931
* Mon Feb 27 2006 Steven Pritchard <steve@kspei.com> 1:0.30-3
5069931
- Bump Epoch (argh, 0.2901 > 0.30 to rpm)
5069931
- Update DateTime::TimeZone to 0.42
5069931
4c0f2f7
* Sat Feb 18 2006 Steven Pritchard <steve@kspei.com> 0.30-2
4c0f2f7
- Update DateTime::TimeZone to 0.41
4c0f2f7
3034666
* Tue Jan 10 2006 Steven Pritchard <steve@kspei.com> 0.30-1
3034666
- Update DateTime to 0.30
3034666
- Update DateTime::TimeZone to 0.40
3034666
378a58d
* Fri Sep 16 2005 Paul Howarth <paul@city-fan.org> 0.2901-2
378a58d
- Unpack each tarball only once
378a58d
- Use Module::Build's build script where available
378a58d
- Help each module find the others when needed
378a58d
- Clean up files list
378a58d
- Include additional documentation from DT::Locale & DT::TimeZone
378a58d
- Add BR: perl(File::Find::Rule) & perl(Test::Pod) to improve test coverage
378a58d
- Remove unversioned provides of perl(DateTime) & perl(DateTime::TimeZone)
378a58d
378a58d
* Wed Aug 31 2005 Steven Pritchard <steve@kspei.com> 0.2901-1
378a58d
- Specfile autogenerated.