]> git.pld-linux.org Git - packages/perl-DateTime.git/blame - perl-DateTime.spec
- rebuild with perl 5.24.0
[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
185e654c 10Version: 1.18
2b847837 11Release: 5
6d9ba877 12Epoch: 2
ad1ed8bf 13License: Artistic 2.0
b9ef3c05 14Group: Development/Languages/Perl
1a4120bd 15Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{version}.tar.gz
185e654c 16# Source0-md5: 58160bea9744a7bc9d7737f7dad9fa72
4865b32c 17URL: http://datetime.perl.org/
ad1ed8bf
JB
18BuildRequires: perl(Pod::Man) >= 1.14
19BuildRequires: perl-ExtUtils-CBuilder
20BuildRequires: perl-Module-Build >= 0.3601
5c89c9a1 21BuildRequires: perl-devel >= 1:5.8.1
ad1ed8bf 22BuildRequires: rpm-perlprov >= 4.1-13
cd0a14c2 23%if %{with tests}
ad1ed8bf 24BuildRequires: perl(Time::Local) >= 1.04
2fbfc652 25BuildRequires: perl-DateTime-Format-Strptime >= 1.2000
7d74b388 26BuildRequires: perl-DateTime-Locale >= 0.41
185e654c 27BuildRequires: perl-DateTime-TimeZone >= 3:1.74
39ada8dd 28BuildRequires: perl-Math-Round
48538859 29BuildRequires: perl-Params-Validate >= 0.76
ad1ed8bf 30BuildRequires: perl-Test-Exception
ad1ed8bf 31BuildRequires: perl-Test-Simple >= 0.88
cd0a14c2 32%endif
dcc0fe62 33Requires: perl-base >= 1:5.8.7-3
b9ef3c05
MP
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37DateTime is a class for the representation of date/time combinations,
38and is part of the Perl DateTime project. For details on this project
39please see <http://datetime.perl.org/>. The DateTime site has a FAQ
40which may help answer many "how do I do X?" questions. The FAQ is at
41<http://datetime.perl.org/faq.html>.
42
3e6af1e6
JR
43%description -l pl.UTF-8
44DateTime to klasa do reprezentowania kombinacji daty i czasu, będąca
45częścią perlowego projektu DateTime. Szczegóły dotyczące tego projektu
46można znaleźć pod adresem <http://datetime.perl.org/>. Serwis ten ma
47swoje FAQ, gdzie można znaleźć odpowiedzi na wiele pytań - dostępne
4865b32c
JB
48pod <http://datetime.perl.org/faq.html>.
49
b9ef3c05
MP
50%prep
51%setup -q -n %{pdir}-%{version}
52
53%build
ad1ed8bf
JB
54%{__perl} Build.PL \
55 installdirs=vendor \
56 --config cc="%{__cc}" \
57 --config ld="%{__cc}" \
58 --config optimize="%{rpmcflags}"
b9ef3c05 59
ad1ed8bf 60./Build
b9ef3c05 61
ad1ed8bf 62%{?with_tests:./Build test}
b9ef3c05
MP
63
64%install
65rm -rf $RPM_BUILD_ROOT
66
ad1ed8bf
JB
67./Build install \
68 destdir=$RPM_BUILD_ROOT
69
185e654c
JB
70%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/DateTime/DateTime.bs
71
ad1ed8bf 72# for noarch DateTime::* modules
b84684af 73install -d $RPM_BUILD_ROOT%{perl_vendorlib}/DateTime/{Event,Format}
b9ef3c05
MP
74
75%clean
76rm -rf $RPM_BUILD_ROOT
77
78%files
79%defattr(644,root,root,755)
185e654c 80%doc CREDITS Changes TODO leaptab.txt
ad1ed8bf
JB
81%dir %{perl_vendorlib}/DateTime/Event
82%dir %{perl_vendorlib}/DateTime/Format
83%{perl_vendorarch}/DateTime.pm
84%{perl_vendorarch}/DateTimePP.pm
85%{perl_vendorarch}/DateTimePPExtra.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.086809 seconds and 4 git commands to generate.