]> git.pld-linux.org Git - packages/perl-DateTime-TimeZone.git/blame - perl-DateTime-TimeZone.spec
- updated to 1.05
[packages/perl-DateTime-TimeZone.git] / perl-DateTime-TimeZone.spec
CommitLineData
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 8Summary: DateTime::TimeZone - time zone object base class and factory
5d0ca2e2 9Summary(pl.UTF-8): DateTime::TimeZone - podstawowe klasy obiektowe do obsługi stref czasowych
7a4fff92 10Name: perl-DateTime-TimeZone
12d38423 11Version: 1.05
773031fb 12Release: 1
74e86302 13Epoch: 3
16ca663e 14# same as perl
15License: GPL v1+ or Artistic
7a4fff92 16Group: Development/Languages/Perl
4fb3b7fb 17Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz
12d38423 18# Source0-md5: 8a6e653ced4cce8d5b54f674327df06c
53d72083 19URL: http://search.cpan.org/dist/DateTime-TimeZone/
177d44c8 20BuildRequires: perl-Module-Build
7a4fff92
MP
21BuildRequires: perl-devel >= 1:5.8.0
22BuildRequires: rpm-perlprov >= 4.1-13
3e0f2ef5 23%if %{with tests}
7b8bc5b3 24# most tests skipped without DateTime >= 0.1501
177d44c8
JB
25BuildRequires: perl-DateTime >= 0.15_01
26BuildRequires: perl-Params-Validate >= 0.72
3e0f2ef5 27%endif
177d44c8
JB
28Requires: perl-Class-Singleton >= 1.03
29Requires: perl-Params-Validate >= 0.72
7a4fff92
MP
30BuildArch: noarch
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
7b8bc5b3 33%define _noautoreq 'perl(DateTime::TimeZone.*)'
34
7a4fff92
MP
35%description
36This class is the base class for all time zone objects. A time
37zone is represented internally as a set of observances, each
38of which describes the offset from GMT for a given time period.
39Note that without the "DateTime.pm" module, this module does not
40do much. It's primary interface is through a "DateTime" object,
41and most users will not need to directly use "DateTime::TimeZone"
42methods.
43
9a95085b
JR
44%description -l pl.UTF-8
45Jest to klasa bazowa dla klas wszystkich obiektów stref czasowych.
46Strefa czasowa jest reprezentowana przez zbiór reguł, z których każda
47określa przesunięcie o zadany okres czasu w stosunku do czasu
48uniwersalnego (GMT). Należy zwrócić uwagę, że bez modułu "DateTime.pm"
49moduł ten nie jest w stanie wiele zdziałać. Jego podstawowym
50interfejsem jest moduł "DateTime" i w większości przypadków nie ma
51potrzeby 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
65rm -rf $RPM_BUILD_ROOT
66./Build install
67
68%clean
69rm -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/*
This page took 0.0765 seconds and 4 git commands to generate.