]> git.pld-linux.org Git - packages/perl-DateTime.git/blame - perl-DateTime.spec
- updated to 1.46
[packages/perl-DateTime.git] / perl-DateTime.spec
CommitLineData
b9ef3c05
MP
1#
2# Conditional build:
40efc307 3%bcond_without tests # perform "make test"
2fbfc652 4
a38d9702 5%define pdir DateTime
2fbfc652 6%include /usr/lib/rpm/macros.perl
4865b32c 7Summary: DateTime - representation of date/time combinations
09c40355 8Summary(pl.UTF-8): DateTime - reprezentacja kombinacji daty i czasu
b9ef3c05 9Name: perl-DateTime
0b60e7d1 10Version: 1.46
d7f52db6 11Release: 1
6d9ba877 12Epoch: 2
e5a8deb6 13License: Artistic v2.0
b9ef3c05 14Group: Development/Languages/Perl
1a4120bd 15Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{version}.tar.gz
0b60e7d1 16# Source0-md5: d553b46b584126f629c4c806f9e764bb
4865b32c 17URL: http://datetime.perl.org/
ad1ed8bf 18BuildRequires: perl(Pod::Man) >= 1.14
e5a8deb6 19BuildRequires: perl-Dist-CheckConflicts >= 0.02
ad1ed8bf 20BuildRequires: perl-ExtUtils-CBuilder
e5a8deb6 21BuildRequires: perl-devel >= 1:5.8.4
ad1ed8bf 22BuildRequires: rpm-perlprov >= 4.1-13
cd0a14c2 23%if %{with tests}
e5a8deb6
JB
24BuildRequires: perl-CPAN-Meta-Check >= 0.011
25BuildRequires: perl-CPAN-Meta-Requirements
a5fe93bb 26BuildRequires: perl-DateTime-Format-Mail
2fbfc652 27BuildRequires: perl-DateTime-Format-Strptime >= 1.2000
e5a8deb6
JB
28BuildRequires: perl-DateTime-Locale >= 1.06
29BuildRequires: perl-DateTime-TimeZone >= 3:2.02
39ada8dd 30BuildRequires: perl-Math-Round
e5a8deb6
JB
31BuildRequires: perl-Params-ValidationCompiler >= 0.13
32BuildRequires: perl-Scalar-List-Utils
33BuildRequires: perl-Specio >= 0.18
34BuildRequires: perl-Storable
35BuildRequires: perl-Test-Fatal
36BuildRequires: perl-Test-Simple >= 0.96
37BuildRequires: perl-Test-Warnings >= 0.005
38BuildRequires: perl-Try-Tiny
a5fe93bb 39BuildRequires: perl-namespace-autoclean >= 0.19
cd0a14c2 40%endif
dcc0fe62 41Requires: perl-base >= 1:5.8.7-3
b9ef3c05
MP
42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44%description
45DateTime is a class for the representation of date/time combinations,
46and is part of the Perl DateTime project. For details on this project
47please see <http://datetime.perl.org/>. The DateTime site has a FAQ
48which may help answer many "how do I do X?" questions. The FAQ is at
49<http://datetime.perl.org/faq.html>.
50
3e6af1e6
JR
51%description -l pl.UTF-8
52DateTime to klasa do reprezentowania kombinacji daty i czasu, będąca
53częścią perlowego projektu DateTime. Szczegóły dotyczące tego projektu
54można znaleźć pod adresem <http://datetime.perl.org/>. Serwis ten ma
55swoje FAQ, gdzie można znaleźć odpowiedzi na wiele pytań - dostępne
4865b32c
JB
56pod <http://datetime.perl.org/faq.html>.
57
b9ef3c05
MP
58%prep
59%setup -q -n %{pdir}-%{version}
60
61%build
a5fe93bb
AM
62%{__perl} Makefile.PL \
63 INSTALLDIRS=vendor
64%{__make}
b9ef3c05 65
a5fe93bb 66%{?with_tests:%{__make} test}
b9ef3c05
MP
67
68%install
69rm -rf $RPM_BUILD_ROOT
70
a5fe93bb
AM
71%{__make} install \
72 DESTDIR=$RPM_BUILD_ROOT
185e654c 73
ad1ed8bf 74# for noarch DateTime::* modules
b84684af 75install -d $RPM_BUILD_ROOT%{perl_vendorlib}/DateTime/{Event,Format}
b9ef3c05
MP
76
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%files
81%defattr(644,root,root,755)
185e654c 82%doc CREDITS Changes TODO leaptab.txt
ad1ed8bf
JB
83%dir %{perl_vendorlib}/DateTime/Event
84%dir %{perl_vendorlib}/DateTime/Format
85%{perl_vendorarch}/DateTime.pm
b9ef3c05 86%{perl_vendorarch}/DateTime/*.pm
5b3e6dc2 87%dir %{perl_vendorarch}/auto/DateTime
b9ef3c05 88%attr(755,root,root) %{perl_vendorarch}/auto/DateTime/DateTime.so
ad1ed8bf 89%{_mandir}/man3/DateTime*.3pm*
This page took 0.071423 seconds and 4 git commands to generate.