--- /dev/null
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir DateTime
+%define pnam Format-W3CDTF
+Summary: DateTime::Format::W3CDTF - Parse and format W3CDTF datetime strings
+#Summary(pl):
+Name: perl-DateTime-Format-W3CDTF
+Version: 0.04
+Release: 0.1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/K/KE/KELLAN/DateTime-Format-W3CDTF-%{version}.tar.gz
+# Source0-md5: 5ad0a41bb5de08f9c16395ea311bb491
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module understands the W3CDTF date/time format, an ISO 8601
+profile, defined at http://www.w3.org/TR/NOTE-datetime. This format as
+the native date format of RSS 1.0.
+
+It can be used to parse these formats in order to create the
+appropriate objects.
+
+
+
+# %description -l pl # TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/DateTime/Format/*.pm
+%{_mandir}/man3/*