3 %bcond_without tests # perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: DateTime - representation of date/time combinations
8 Summary(pl): DateTime - reprezentacja kombinacji daty i czasu
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
17 # Source0-md5: 6cc7208029b13bc8097ab2b77df070b1
18 URL: http://datetime.perl.org/
20 BuildRequires: perl-DateTime-Locale >= 0.21
21 BuildRequires: perl-DateTime-TimeZone >= 1:0.38
22 BuildRequires: perl-Params-Validate >= 0.76
24 BuildRequires: perl-devel >= 1:5.8.0
25 BuildRequires: rpm-perlprov >= 4.1-13
26 Requires: perl-base >= 1:5.8.7-3
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 DateTime is a class for the representation of date/time combinations,
31 and is part of the Perl DateTime project. For details on this project
32 please see <http://datetime.perl.org/>. The DateTime site has a FAQ
33 which may help answer many "how do I do X?" questions. The FAQ is at
34 <http://datetime.perl.org/faq.html>.
37 DateTime to klasa do reprezentowania kombinacji daty i czasu, bêd±ca
38 czê¶ci± perlowego projektu DateTime. Szczegó³y dotycz±ce tego projektu
39 mo¿na znale¼æ pod adresem <http://datetime.perl.org/>. Serwis ten ma
40 swoje FAQ, gdzie mo¿na znale¼æ odpowiedzi na wiele pytañ - dostêpne
41 pod <http://datetime.perl.org/faq.html>.
44 %setup -q -n %{pdir}-%{version}
46 mv t/20infinite.t{,.broken}
49 %{__perl} Makefile.PL \
53 OPTIMIZE="%{rpmcflags}"
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{perl_vendorlib}/DateTime/Format
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
69 %doc Changes README CREDITS TODO leaptab.txt
70 %{perl_vendorarch}/DateTime*pm
71 %{perl_vendorarch}/DateTime/*.pm
72 %{perl_vendorarch}/auto/DateTime/DateTime.bs
73 %dir %{perl_vendorarch}/auto/DateTime
74 %{perl_vendorlib}/DateTime/*
75 %attr(755,root,root) %{perl_vendorarch}/auto/DateTime/DateTime.so