[5858] | 1 | Name: perl-DateTime-TimeZone |
---|
| 2 | Version: 1.45 |
---|
| 3 | Release: 2%{?_dist_release} |
---|
| 4 | Summary: Time zone object base class and factory |
---|
| 5 | License: GPL+ or Artistic |
---|
| 6 | Group: Development/Libraries |
---|
| 7 | URL: http://search.cpan.org/dist/DateTime-TimeZone/ |
---|
| 8 | Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-%{version}.tar.gz |
---|
| 9 | BuildArch: noarch |
---|
| 10 | BuildRequires: perl(Class::Load) |
---|
| 11 | BuildRequires: perl(Class::Singleton) >= 1.03 |
---|
| 12 | BuildRequires: perl(constant) |
---|
| 13 | BuildRequires: perl(Cwd) >= 3 |
---|
| 14 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 15 | BuildRequires: perl(File::Compare) |
---|
| 16 | BuildRequires: perl(File::Spec) |
---|
| 17 | BuildRequires: perl(List::Util) |
---|
| 18 | BuildRequires: perl(Params::Validate) >= 0.72 |
---|
| 19 | BuildRequires: perl(parent) |
---|
| 20 | BuildRequires: perl(Pod::Man) >= 1.14 |
---|
| 21 | BuildRequires: perl(Test::More) >= 0.88 |
---|
| 22 | BuildRequires: perl(Test::Output) |
---|
| 23 | # not automatically detected |
---|
| 24 | Requires: perl(Cwd) >= 3 |
---|
| 25 | Requires: perl(File::Compare) |
---|
| 26 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 27 | |
---|
| 28 | %{?filter_setup: |
---|
| 29 | %filter_from_requires /^perl(Win32/d |
---|
| 30 | %if 0%{?perl_bootstrap} |
---|
| 31 | %filter_from_requires /^perl(DateTime\(::Duration\)?)/d |
---|
| 32 | %endif |
---|
| 33 | %?perl_default_filter} |
---|
| 34 | |
---|
| 35 | %if 0%{?perl_bootstrap} |
---|
| 36 | # perl-DateTime-TimeZone used to be bundled with perl-DateTime |
---|
| 37 | # when bootstrapping, we can't require the unbundled version, so |
---|
| 38 | # need to conflict with the old package |
---|
| 39 | Conflicts: perl-DateTime <= 1:0.7000-3 |
---|
| 40 | %else |
---|
| 41 | # explicitly require the unbundled perl-DateTime to avoid implicit conflicts |
---|
| 42 | Requires: perl-DateTime >= 2:0.70-1 |
---|
| 43 | # and BR perl(DateTime) to enable testing |
---|
| 44 | BuildRequires: perl(DateTime) |
---|
| 45 | %endif |
---|
| 46 | |
---|
| 47 | %description |
---|
| 48 | This class is the base class for all time zone objects. A time zone is |
---|
| 49 | represented internally as a set of observances, each of which describes the |
---|
| 50 | offset from GMT for a given time period. |
---|
| 51 | |
---|
| 52 | %prep |
---|
| 53 | %setup -q -n DateTime-TimeZone-%{version} |
---|
| 54 | |
---|
| 55 | %if "%{_dist_release}" > "vl6" |
---|
| 56 | |
---|
| 57 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Win32 |
---|
| 58 | |
---|
| 59 | %if 0%{?perl_bootstrap} |
---|
| 60 | # avoid circular dependencies - DateTime strictly requires DateTime::TimeZone |
---|
| 61 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(DateTime\\) |
---|
| 62 | %global __requires_exclude %{__requires_exclude}|perl\\(DateTime::Duration\\) |
---|
| 63 | %endif |
---|
| 64 | |
---|
| 65 | %else |
---|
| 66 | |
---|
| 67 | cat << \EOF > %{name}-req |
---|
| 68 | #!/bin/sh |
---|
| 69 | %{__perl_requires} $* |\ |
---|
| 70 | sed -e '/perl(Win32/d' |\ |
---|
| 71 | EOF |
---|
| 72 | |
---|
| 73 | %if 0%{?perl_bootstrap} |
---|
| 74 | |
---|
| 75 | cat << \EOF >> %{name}-req |
---|
| 76 | sed -e '/perl(DateTime)/d' |\ |
---|
| 77 | sed -e '/perl(DateTime::Duration)/d' |
---|
| 78 | EOF |
---|
| 79 | |
---|
| 80 | %endif |
---|
| 81 | |
---|
| 82 | %global __perl_requires %{_builddir}/DateTime-TimeZone-%{version}/%{name}-req |
---|
| 83 | chmod +x %{__perl_requires} |
---|
| 84 | |
---|
| 85 | %endif |
---|
| 86 | |
---|
| 87 | %build |
---|
| 88 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 89 | make %{?_smp_mflags} |
---|
| 90 | |
---|
| 91 | %install |
---|
| 92 | make pure_install DESTDIR=%{buildroot} |
---|
| 93 | |
---|
| 94 | find %{buildroot} -type f -name .packlist -exec rm -f {} \; |
---|
| 95 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
| 96 | |
---|
| 97 | %{_fixperms} %{buildroot}/* |
---|
| 98 | |
---|
| 99 | %check |
---|
| 100 | make test |
---|
| 101 | |
---|
| 102 | %files |
---|
| 103 | %doc Changes LICENSE README |
---|
| 104 | %{perl_vendorlib}/* |
---|
| 105 | %{_mandir}/man3/* |
---|
| 106 | |
---|
| 107 | %changelog |
---|
| 108 | * Tue Mar 06 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.45-2 |
---|
| 109 | - now without bootstrapping |
---|
| 110 | |
---|
| 111 | * Tue Mar 06 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.45-1 |
---|
| 112 | - initial build for Vine Linux (bootstrap) |
---|
| 113 | |
---|
| 114 | * Sun Mar 04 2012 Iain Arnell <iarnell@gmail.com> 1.45-1 |
---|
| 115 | - update to latest upstream version |
---|
| 116 | |
---|
| 117 | * Fri Mar 02 2012 Iain Arnell <iarnell@gmail.com> 1.44-1 |
---|
| 118 | - update to latest upstream version - Olson 2012b |
---|
| 119 | |
---|
| 120 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.42-2 |
---|
| 121 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 122 | |
---|
| 123 | * Wed Nov 09 2011 Iain Arnell <iarnell@gmail.com> 1.42-1 |
---|
| 124 | - update to latest upstream - Olson 2011n |
---|
| 125 | |
---|
| 126 | * Tue Oct 25 2011 Iain Arnell <iarnell@gmail.com> 1.41-1 |
---|
| 127 | - update to latest upstream - Olson 2011m |
---|
| 128 | |
---|
| 129 | * Tue Oct 11 2011 Iain Arnell <iarnell@gmail.com> 1.40-1 |
---|
| 130 | - update to latest upstream - Olson 2011l |
---|
| 131 | |
---|
| 132 | * Tue Sep 27 2011 Iain Arnell <iarnell@gmail.com> 1.39-1 |
---|
| 133 | - update to latest upstream - Olson 2011k |
---|
| 134 | |
---|
| 135 | * Wed Sep 14 2011 Iain Arnell <iarnell@gmail.com> 1.37-1 |
---|
| 136 | - update to latest upstream - Olson 2011j |
---|
| 137 | |
---|
| 138 | * Tue Aug 30 2011 Iain Arnell <iarnell@gmail.com> 1.36-1 |
---|
| 139 | - update to latest upstream - Olson 2011i |
---|
| 140 | |
---|
| 141 | * Thu Aug 18 2011 Iain Arnell <iarnell@gmail.com> 1.35-3 |
---|
| 142 | - rebuild against unbunled perl-DateTime |
---|
| 143 | |
---|
| 144 | * Mon Aug 15 2011 Iain Arnell <iarnell@gmail.com> 1.35-2 |
---|
| 145 | - additional explicit (build)requires for core modules |
---|
| 146 | |
---|
| 147 | * Mon Aug 15 2011 Iain Arnell <iarnell@gmail.com> 1.35-1 |
---|
| 148 | - Specfile autogenerated by cpanspec 1.78. |
---|
| 149 | - Add bootstrapping logic |
---|