--- /dev/null
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Date
+%define pnam Simple
+Summary: Date::Simple - a simple date object
+Summary(pl): Date::Simple - prosty obiekt daty
+Name: perl-Date-Simple
+Version: 1.03
+Release: 1
+License: GPL v2+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 07cdc013b4f5b9c0c76757164404d0b6
+BuildRequires: perl-devel >= 5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module may be used to create simple date objects. It only handles
+dates within the range of Unix time. It will only allow the creation
+of objects for valid dates. Attempting to create an invalid date will
+return undef.
+
+%description -l pl
+Ten modu³ mo¿e byæ u¿ywany do tworzenia prostych obiektów daty.
+Obs³uguje tylko daty z uniksowego przedzia³u czasu. Pozwala stworzyæ
+obiekty tylko dla poprawnych dat - przy próbie stworzenia b³êdnej daty
+zwróci undef.
+
+%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 README
+%{perl_vendorlib}/Date/Simple.pm
+%{_mandir}/man3/*