]>
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 |
12d38423 | 11 | Version: 1.05 |
773031fb | 12 | Release: 1 |
74e86302 | 13 | Epoch: 3 |
16ca663e | 14 | # same as perl |
15 | License: GPL v1+ or Artistic | |
7a4fff92 | 16 | Group: Development/Languages/Perl |
4fb3b7fb | 17 | Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz |
12d38423 | 18 | # Source0-md5: 8a6e653ced4cce8d5b54f674327df06c |
53d72083 | 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 | |
773031fb | 74 | %{perl_vendorlib}/DateTime/*.pm |
75 | %{perl_vendorlib}/DateTime/TimeZone | |
7a4fff92 | 76 | %{_mandir}/man3/* |