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