9f8ba06
Name:           perl-DateTime-TimeZone
2a0d8ee
Version:        1.76
f9442a3
Release:        1%{?dist}
9f8ba06
Summary:        Time zone object base class and factory
9f8ba06
License:        GPL+ or Artistic
9f8ba06
Group:          Development/Libraries
9f8ba06
URL:            http://search.cpan.org/dist/DateTime-TimeZone/
9f8ba06
Source0:        http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-%{version}.tar.gz
43c9a65
# Keep preferring /etc/localtime, bug #1159509.
43c9a65
Patch0:         DateTime-TimeZone-1.76-Revert-on-unix-systems-look-for-etc-timezone-first-b.patch
9f8ba06
BuildArch:      noarch
99dda5f
BuildRequires:  perl
473337b
BuildRequires:  perl(base)
9f8ba06
BuildRequires:  perl(Class::Load)
9f8ba06
BuildRequires:  perl(Class::Singleton) >= 1.03
9f8ba06
BuildRequires:  perl(constant)
9f8ba06
BuildRequires:  perl(Cwd) >= 3
9f8ba06
BuildRequires:  perl(ExtUtils::MakeMaker)
99dda5f
BuildRequires:  perl(File::Basename)
9f8ba06
BuildRequires:  perl(File::Compare)
99dda5f
BuildRequires:  perl(File::Copy)
ac86a63
BuildRequires:  perl(File::Path)
9f8ba06
BuildRequires:  perl(File::Spec)
ac86a63
BuildRequires:  perl(File::Spec::Functions)
ac86a63
BuildRequires:  perl(File::Temp)
ac86a63
BuildRequires:  perl(lib)
d4a96d3
BuildRequires:  perl(List::AllUtils)
9f8ba06
BuildRequires:  perl(List::Util)
99dda5f
BuildRequires:  perl(overload)
9f8ba06
BuildRequires:  perl(Params::Validate) >= 0.72
9f8ba06
BuildRequires:  perl(parent)
ac86a63
BuildRequires:  perl(Storable)
ac86a63
BuildRequires:  perl(strict)
ac86a63
BuildRequires:  perl(Sys::Hostname)
d9b21c1
BuildRequires:  perl(Test::Fatal)
9f8ba06
BuildRequires:  perl(Test::More) >= 0.88
9f8ba06
BuildRequires:  perl(Test::Output)
d9b21c1
BuildRequires:  perl(Test::Requires)
d9b21c1
BuildRequires:  perl(Test::Taint)
99dda5f
BuildRequires:  perl(vars)
99dda5f
BuildRequires:  perl(warnings)
9f8ba06
# not automatically detected
9f8ba06
Requires:       perl(File::Compare)
9f8ba06
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
9f8ba06
9f8ba06
%{?filter_setup:
9f8ba06
%filter_from_requires /^perl(Win32/d
9f8ba06
%if 0%{?perl_bootstrap}
9f8ba06
%filter_from_requires /^perl(DateTime\(::Duration\)?)/d
9f8ba06
%endif
9f8ba06
%?perl_default_filter}
9f8ba06
473337b
%global __requires_exclude %{__requires_exclude}|perl\\(Params::Validate\\)$|perl\\(Class::Singleton\\)$
473337b
9f8ba06
%if 0%{?perl_bootstrap}
9f8ba06
# avoid circular dependencies - DateTime strictly requires DateTime::TimeZone
9f8ba06
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(DateTime\\)
9f8ba06
%global __requires_exclude %{__requires_exclude}|perl\\(DateTime::Duration\\)
9f8ba06
# perl-DateTime-TimeZone used to be bundled with perl-DateTime
9f8ba06
# when bootstrapping, we can't require the unbundled version, so
9f8ba06
# need to conflict with the old package
9f8ba06
Conflicts:      perl-DateTime <= 1:0.7000-3.fc16
9f8ba06
%else
9f8ba06
# explicitly require the unbundled perl-DateTime to avoid implicit conflicts
9f8ba06
Requires:       perl-DateTime >= 2:0.70-1
9f8ba06
# and BR perl(DateTime) to enable testing
9f8ba06
BuildRequires:  perl(DateTime)
99dda5f
BuildRequires:  perl(DateTime::Duration)
9f8ba06
%endif
9f8ba06
9f8ba06
%description
9f8ba06
This class is the base class for all time zone objects. A time zone is
9f8ba06
represented internally as a set of observances, each of which describes the
9f8ba06
offset from GMT for a given time period.
9f8ba06
9f8ba06
%prep
9f8ba06
%setup -q -n DateTime-TimeZone-%{version}
43c9a65
%patch0 -p1
9f8ba06
9f8ba06
%build
9f8ba06
%{__perl} Makefile.PL INSTALLDIRS=vendor
9f8ba06
make %{?_smp_mflags}
9f8ba06
9f8ba06
%install
9f8ba06
make pure_install DESTDIR=%{buildroot}
9f8ba06
9f8ba06
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
9f8ba06
9f8ba06
%{_fixperms} %{buildroot}/*
9f8ba06
9f8ba06
%check
9f8ba06
make test
9f8ba06
9f8ba06
%files
7432f63
%doc Changes LICENSE README.md
9f8ba06
%{perl_vendorlib}/*
9f8ba06
%{_mandir}/man3/*
9f8ba06
9f8ba06
%changelog
2a0d8ee
* Mon Nov 03 2014 Petr Pisar <ppisar@redhat.com> - 1.76-1
2a0d8ee
- 1.76 bump
43c9a65
- Keep preferring /etc/localtime (bug #1159509)
2a0d8ee
c0a4030
* Wed Oct 01 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.75-1
c0a4030
- 1.75 bump
c0a4030
bae885f
* Tue Sep 02 2014 Petr Pisar <ppisar@redhat.com> - 1.74-1
bae885f
- 1.74 bump (updates to 2014g Olson database)
bae885f
7432f63
* Thu Aug 07 2014 Petr Pisar <ppisar@redhat.com> - 1.73-1
7432f63
- 1.73 bump
7432f63
d4a96d3
* Mon Jun 30 2014 Petr Pisar <ppisar@redhat.com> - 1.71-1
d4a96d3
- update to latest upstream version - Olson 2014e
d4a96d3
ac86a63
* Mon May 26 2014 Petr Pisar <ppisar@redhat.com> - 1.69-1
ac86a63
- update to latest upstream version - IANA 2014c database
ac86a63
d9b21c1
* Mon Feb 10 2014 Paul Howarth <paul@city-fan.org> - 1.64-1
d9b21c1
- Update to 1.64
d9b21c1
  - Under taint mode, DateTime::TimeZone->new( name => 'local' ) could die
d9b21c1
    depending on the method used to find the local time zone name, and the
d9b21c1
    resulting variable would often be tainted; we now untaint all names before
d9b21c1
    attempting to load them (CPAN RT#92631)
d9b21c1
f9442a3
* Tue Oct 29 2013 Petr Pisar <ppisar@redhat.com> - 1.63-1
f9442a3
- update to latest upstream version - Olson 2013h
f9442a3
b4c3c3b
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.60-2
b4c3c3b
- Perl 5.18 re-rebuild of bootstrapped packages
b4c3c3b
28c0545
* Sat Aug 10 2013 Iain Arnell <iarnell@gmail.com> 1.60-1
28c0545
- update to latest upstream version - Olson 2013d
28c0545
49b18c6
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.59-4
49b18c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
49b18c6
5b8c184
* Tue Jul 30 2013 Petr Pisar <ppisar@redhat.com> - 1.59-3
5b8c184
- Perl 5.18 rebuild
5b8c184
99dda5f
* Wed Jun 26 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.59-2
99dda5f
- Specify all dependencies
99dda5f
9bd223b
* Mon Apr 22 2013 Iain Arnell <iarnell@gmail.com> 1.59-1
9bd223b
- update to latest upstream version - Olson 2013c
9bd223b
62670b1
* Wed Mar 20 2013 Iain Arnell <iarnell@gmail.com> 1.58-1
62670b1
- update to latest upstream version - Olson 2013b
62670b1
5dc2000
* Sun Mar 03 2013 Iain Arnell <iarnell@gmail.com> 1.57-1
5dc2000
- update to latest upstream version - Olson 2013a
5dc2000
86cbf5f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.56-2
86cbf5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
86cbf5f
56f9dcf
* Mon Dec 03 2012 Iain Arnell <iarnell@gmail.com> 1.56-1
56f9dcf
- update to latest upstream version - still Olson 2012j
56f9dcf
473337b
* Thu Nov 15 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.54-2
473337b
- add BR, filter duplicated requires
473337b
f03e597
* Tue Nov 13 2012 Petr Pisar <ppisar@redhat.com> - 1.54-1
f03e597
- update to latest upstream version - Olson 2012j
f03e597
3a21757
* Fri Nov 02 2012 Iain Arnell <iarnell@gmail.com> 1.52-1
3a21757
- update to latest upstream version - Olson 2012h
3a21757
4825aaf
* Thu Oct 18 2012 Petr Pisar <ppisar@redhat.com> - 1.51-1
4825aaf
- update to latest upstream version - Olson 2012g
4825aaf
1362641
* Sat Sep 15 2012 Iain Arnell <iarnell@gmail.com> 1.49-1
1362641
- update to latest upstream version - Olson 2012f
1362641
7c87172
* Fri Aug 03 2012 Iain Arnell <iarnell@gmail.com> 1.48-1
7c87172
- update to latest upstream version - Olson 2012e
7c87172
0a2f796
* Sat Jul 21 2012 Iain Arnell <iarnell@gmail.com> 1.47-1
0a2f796
- update to latest upstream version - Olson 2012d
0a2f796
be2c5b2
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.46-4
be2c5b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
be2c5b2
e92a610
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.46-3
e92a610
- Perl 5.16 re-rebuild of bootstrapped packages
e92a610
3cec184
* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 1.46-2
3cec184
- Perl 5.16 rebuild
3cec184
ecbb4a7
* Tue Apr 03 2012 Iain Arnell <iarnell@gmail.com> 1.46-1
ecbb4a7
- update to latest upstream - Olson 2012c
ecbb4a7
44ee9ac
* Sun Mar 04 2012 Iain Arnell <iarnell@gmail.com> 1.45-1
44ee9ac
- update to latest upstream version
44ee9ac
24ce0fc
* Fri Mar 02 2012 Iain Arnell <iarnell@gmail.com> 1.44-1
24ce0fc
- update to latest upstream version - Olson 2012b
24ce0fc
058b1bd
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.42-2
058b1bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
058b1bd
49fc39e
* Wed Nov 09 2011 Iain Arnell <iarnell@gmail.com> 1.42-1
49fc39e
- update to latest upstream - Olson 2011n
49fc39e
4f91f65
* Tue Oct 25 2011 Iain Arnell <iarnell@gmail.com> 1.41-1
4f91f65
- update to latest upstream - Olson 2011m
4f91f65
9a1b6e1
* Tue Oct 11 2011 Iain Arnell <iarnell@gmail.com> 1.40-1
9a1b6e1
- update to latest upstream - Olson 2011l
9a1b6e1
c85f564
* Tue Sep 27 2011 Iain Arnell <iarnell@gmail.com> 1.39-1
c85f564
- update to latest upstream - Olson 2011k
c85f564
2a66119
* Wed Sep 14 2011 Iain Arnell <iarnell@gmail.com> 1.37-1
2a66119
- update to latest upstream - Olson 2011j
2a66119
8f45d0d
* Tue Aug 30 2011 Iain Arnell <iarnell@gmail.com> 1.36-1
8f45d0d
- update to latest upstream - Olson 2011i
8f45d0d
adae3b9
* Thu Aug 18 2011 Iain Arnell <iarnell@gmail.com> 1.35-3
adae3b9
- rebuild against unbunled perl-DateTime
adae3b9
9f8ba06
* Mon Aug 15 2011 Iain Arnell <iarnell@gmail.com> 1.35-2
9f8ba06
- additional explicit (build)requires for core modules
9f8ba06
9f8ba06
* Mon Aug 15 2011 Iain Arnell <iarnell@gmail.com> 1.35-1
9f8ba06
- Specfile autogenerated by cpanspec 1.78.
9f8ba06
- Add bootstrapping logic