%define module DateTime-Format-Duration %define name perl-%{module} %define version 1.02 %define release 2mdk Name: %{name} Version: %{version} Release: %{release} Summary: Format and parse DateTime::Durations License: GPL or Artistic Group: Development/Perl Source: http://search.cpan.org/CPAN/authors/id/R/RI/RICKM/%{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module} BuildRoot: %{_tmppath}/%{name}-%{version} %if %{mdkversion} < 1010 Buildrequires: perl-devel %endif Buildarch: noarch %description This module formats and parses DateTime::Duration objects as well as other durations representations. %prep %setup -q -n %{module}-%{version} # fix perms chmod 644 LICENSE README Changes %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %install rm -rf %{buildroot} %makeinstall_std %check #%make test %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc LICENSE README Changes %{perl_vendorlib}/DateTime %{_mandir}/*/* %changelog * Sat Jun 11 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.02-2mdk - don't ship useless empty dirs - make test in %%check - disabled test, something is broken - fix doc files perms * Sat Feb 12 2005 Guillaume Rousse <guillomovitch@mandrake.org> 1.02-1mdk - first mdk release