]> git.pld-linux.org Git - packages/perl-DateTime-Format-W3CDTF.git/blame_incremental - perl-DateTime-Format-W3CDTF.spec
- unified Source0 URL
[packages/perl-DateTime-Format-W3CDTF.git] / perl-DateTime-Format-W3CDTF.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir DateTime
7%define pnam Format-W3CDTF
8Summary: DateTime::Format::W3CDTF - Parse and format W3CDTF datetime strings
9Summary(pl.UTF-8): DateTime::Format::W3CDTF - analizowanie i formatowanie łańcuchów dat W3CDTF
10Name: perl-DateTime-Format-W3CDTF
11Version: 0.04
12Release: 1
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz
17# Source0-md5: 5ad0a41bb5de08f9c16395ea311bb491
18URL: http://search.cpan.org/dist/DateTime-Format-W3CDTF/
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
22BuildRequires: perl-DateTime
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28This module understands the W3CDTF date/time format, an ISO 8601
29profile, defined at <http://www.w3.org/TR/NOTE-datetime>. This format
30as the native date format of RSS 1.0.
31
32It can be used to parse these formats in order to create the
33appropriate objects.
34
35%description -l pl.UTF-8
36Ten moduł rozumie format daty/czasu W3CDTF w profilu ISO 8601,
37zdefiniowany w <http://www.w3.org/TR/NOTE-datetime>. Jest to natywny
38format daty w RSS 1.0.
39
40Moduł można wykorzystać do analizy tych formatów w celu utworzenia
41odpowiednich obiektów.
42
43%prep
44%setup -q -n %{pdir}-%{pnam}-%{version}
45
46%build
47%{__perl} Makefile.PL \
48 INSTALLDIRS=vendor
49%{__make}
50
51%{?with_tests:%{__make} test}
52
53%install
54rm -rf $RPM_BUILD_ROOT
55
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%defattr(644,root,root,755)
64%doc Changes README
65%{perl_vendorlib}/DateTime/Format/*.pm
66%{_mandir}/man3/*
This page took 0.096845 seconds and 4 git commands to generate.