source: projects/specs/trunk/p/perl-DateTime-TimeZone/perl-DateTime-TimeZone-vl.spec @ 5858

Revision 5858, 4.4 KB checked in by shaolin, 12 years ago (diff)
  • new packages
Line 
1Name:           perl-DateTime-TimeZone
2Version:        1.45
3Release:        2%{?_dist_release}
4Summary:        Time zone object base class and factory
5License:        GPL+ or Artistic
6Group:          Development/Libraries
7URL:            http://search.cpan.org/dist/DateTime-TimeZone/
8Source0:        http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-%{version}.tar.gz
9BuildArch:      noarch
10BuildRequires:  perl(Class::Load)
11BuildRequires:  perl(Class::Singleton) >= 1.03
12BuildRequires:  perl(constant)
13BuildRequires:  perl(Cwd) >= 3
14BuildRequires:  perl(ExtUtils::MakeMaker)
15BuildRequires:  perl(File::Compare)
16BuildRequires:  perl(File::Spec)
17BuildRequires:  perl(List::Util)
18BuildRequires:  perl(Params::Validate) >= 0.72
19BuildRequires:  perl(parent)
20BuildRequires:  perl(Pod::Man) >= 1.14
21BuildRequires:  perl(Test::More) >= 0.88
22BuildRequires:  perl(Test::Output)
23# not automatically detected
24Requires:       perl(Cwd) >= 3
25Requires:       perl(File::Compare)
26Requires:       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
39Conflicts:      perl-DateTime <= 1:0.7000-3
40%else
41# explicitly require the unbundled perl-DateTime to avoid implicit conflicts
42Requires:       perl-DateTime >= 2:0.70-1
43# and BR perl(DateTime) to enable testing
44BuildRequires:  perl(DateTime)
45%endif
46
47%description
48This class is the base class for all time zone objects. A time zone is
49represented internally as a set of observances, each of which describes the
50offset 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
67cat << \EOF > %{name}-req
68#!/bin/sh
69%{__perl_requires} $* |\
70sed -e '/perl(Win32/d' |\
71EOF
72
73%if 0%{?perl_bootstrap}
74
75cat << \EOF >> %{name}-req
76sed -e '/perl(DateTime)/d' |\
77sed -e '/perl(DateTime::Duration)/d'
78EOF
79
80%endif
81
82%global __perl_requires %{_builddir}/DateTime-TimeZone-%{version}/%{name}-req
83chmod +x %{__perl_requires}
84
85%endif
86
87%build
88%{__perl} Makefile.PL INSTALLDIRS=vendor
89make %{?_smp_mflags}
90
91%install
92make pure_install DESTDIR=%{buildroot}
93
94find %{buildroot} -type f -name .packlist -exec rm -f {} \;
95find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
96
97%{_fixperms} %{buildroot}/*
98
99%check
100make 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
Note: See TracBrowser for help on using the repository browser.