3 %bcond_without tests # do not perform "make test"
6 %define pnam Format-W3CDTF
7 Summary: DateTime::Format::W3CDTF - Parse and format W3CDTF datetime strings
8 Summary(pl.UTF-8): DateTime::Format::W3CDTF - analizowanie i formatowanie łańcuchów dat W3CDTF
9 Name: perl-DateTime-Format-W3CDTF
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 9b4fa51057422b3facc4746b744807d9
17 URL: http://search.cpan.org/dist/DateTime-Format-W3CDTF/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-DateTime
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module understands the W3CDTF date/time format, an ISO 8601
28 profile, defined at <http://www.w3.org/TR/NOTE-datetime>. This format
29 as the native date format of RSS 1.0.
31 It can be used to parse these formats in order to create the
34 %description -l pl.UTF-8
35 Ten moduł rozumie format daty/czasu W3CDTF w profilu ISO 8601,
36 zdefiniowany w <http://www.w3.org/TR/NOTE-datetime>. Jest to natywny
37 format daty w RSS 1.0.
39 Moduł można wykorzystać do analizy tych formatów w celu utworzenia
40 odpowiednich obiektów.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/DateTime/Format/W3CDTF.pm
65 %{_mandir}/man3/DateTime::Format::W3CDTF.3pm*