]>
Commit | Line | Data |
---|---|---|
7a4fff92 MP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
0e191fa5 | 6 | %define pdir DateTime |
7 | %define pnam TimeZone | |
e2ba06a1 | 8 | Summary: DateTime::TimeZone - time zone object base class and factory |
5d0ca2e2 | 9 | Summary(pl.UTF-8): DateTime::TimeZone - podstawowe klasy obiektowe do obsługi stref czasowych |
7a4fff92 | 10 | Name: perl-DateTime-TimeZone |
53d72083 | 11 | Version: 0.46 |
7b8bc5b3 | 12 | Release: 2 |
53d72083 | 13 | Epoch: 2 |
16ca663e | 14 | # same as perl |
15 | License: GPL v1+ or Artistic | |
7a4fff92 MP |
16 | Group: Development/Languages/Perl |
17 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
53d72083 ER |
18 | # Source0-md5: fe52d18c393d3e7841be0aba972e4e43 |
19 | URL: http://search.cpan.org/dist/DateTime-TimeZone/ | |
177d44c8 | 20 | BuildRequires: perl-Module-Build |
7a4fff92 MP |
21 | BuildRequires: perl-devel >= 1:5.8.0 |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
3e0f2ef5 | 23 | %if %{with tests} |
7b8bc5b3 | 24 | # most tests skipped without DateTime >= 0.1501 |
177d44c8 JB |
25 | BuildRequires: perl-DateTime >= 0.15_01 |
26 | BuildRequires: perl-Params-Validate >= 0.72 | |
3e0f2ef5 | 27 | %endif |
177d44c8 JB |
28 | Requires: perl-Class-Singleton >= 1.03 |
29 | Requires: perl-Params-Validate >= 0.72 | |
7a4fff92 MP |
30 | BuildArch: noarch |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
7b8bc5b3 | 33 | %define _noautoreq 'perl(DateTime::TimeZone.*)' |
34 | ||
7a4fff92 MP |
35 | %description |
36 | This class is the base class for all time zone objects. A time | |
37 | zone is represented internally as a set of observances, each | |
38 | of which describes the offset from GMT for a given time period. | |
39 | Note that without the "DateTime.pm" module, this module does not | |
40 | do much. It's primary interface is through a "DateTime" object, | |
41 | and most users will not need to directly use "DateTime::TimeZone" | |
42 | methods. | |
43 | ||
9a95085b JR |
44 | %description -l pl.UTF-8 |
45 | Jest to klasa bazowa dla klas wszystkich obiektów stref czasowych. | |
46 | Strefa czasowa jest reprezentowana przez zbiór reguł, z których każda | |
47 | określa przesunięcie o zadany okres czasu w stosunku do czasu | |
48 | uniwersalnego (GMT). Należy zwrócić uwagę, że bez modułu "DateTime.pm" | |
49 | moduł ten nie jest w stanie wiele zdziałać. Jego podstawowym | |
50 | interfejsem jest moduł "DateTime" i w większości przypadków nie ma | |
51 | potrzeby bezpośredniego korzystania z metod "DateTime::TimeZone". | |
e2ba06a1 | 52 | |
7a4fff92 MP |
53 | %prep |
54 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
55 | ||
56 | %build | |
57 | %{__perl} Build.PL \ | |
58 | installdirs=vendor \ | |
59 | destdir=$RPM_BUILD_ROOT | |
60 | ./Build | |
61 | ||
62 | %{?with_tests:./Build test} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ./Build install | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %doc Changes README | |
74 | %{perl_vendorlib}/DateTime/TimeZone*pm | |
75 | %dir %{perl_vendorlib}/DateTime/TimeZone | |
76 | %{perl_vendorlib}/DateTime/TimeZone/*.pm | |
77 | %dir %{perl_vendorlib}/DateTime/TimeZone/Africa | |
78 | %{perl_vendorlib}/DateTime/TimeZone/Africa/*.pm | |
79 | %dir %{perl_vendorlib}/DateTime/TimeZone/Indian | |
80 | %{perl_vendorlib}/DateTime/TimeZone/Indian/*.pm | |
81 | %dir %{perl_vendorlib}/DateTime/TimeZone/Pacific | |
82 | %{perl_vendorlib}/DateTime/TimeZone/Pacific/*.pm | |
83 | %dir %{perl_vendorlib}/DateTime/TimeZone/Europe | |
84 | %{perl_vendorlib}/DateTime/TimeZone/Europe/*.pm | |
85 | %dir %{perl_vendorlib}/DateTime/TimeZone/Asia | |
86 | %{perl_vendorlib}/DateTime/TimeZone/Asia/*.pm | |
87 | %dir %{perl_vendorlib}/DateTime/TimeZone/America | |
88 | %{perl_vendorlib}/DateTime/TimeZone/America/*.pm | |
0f11e5fb AG |
89 | %dir %{perl_vendorlib}/DateTime/TimeZone/America/Argentina |
90 | %{perl_vendorlib}/DateTime/TimeZone/America/Argentina/*.pm | |
7a4fff92 MP |
91 | %dir %{perl_vendorlib}/DateTime/TimeZone/America/Indiana |
92 | %{perl_vendorlib}/DateTime/TimeZone/America/Indiana/*.pm | |
93 | %dir %{perl_vendorlib}/DateTime/TimeZone/America/Kentucky | |
94 | %{perl_vendorlib}/DateTime/TimeZone/America/Kentucky/*.pm | |
95 | %dir %{perl_vendorlib}/DateTime/TimeZone/America/North_Dakota | |
96 | %{perl_vendorlib}/DateTime/TimeZone/America/North_Dakota/*.pm | |
97 | %dir %{perl_vendorlib}/DateTime/TimeZone/Australia | |
98 | %{perl_vendorlib}/DateTime/TimeZone/Australia/*.pm | |
99 | %dir %{perl_vendorlib}/DateTime/TimeZone/Atlantic | |
100 | %{perl_vendorlib}/DateTime/TimeZone/Atlantic/*.pm | |
101 | %dir %{perl_vendorlib}/DateTime/TimeZone/Antarctica | |
102 | %{perl_vendorlib}/DateTime/TimeZone/Antarctica/*.pm | |
103 | %{_mandir}/man3/* |