%define upstream_name DateTime-Format-Duration %define upstream_version 1.03a Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: Format and parse DateTime::Durations License: GPL+ or Artistic Group: Development/Perl URL: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tgz %if %{mdkversion} < 1010 Buildrequires: perl-devel %endif Buildrequires: perl(DateTime) Buildrequires: perl(DateTime::Duration) Buildarch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description This module formats and parses DateTime::Duration objects as well as other durations representations. %prep %setup -q -n %{upstream_name}-1.03 # fix perms chmod 644 LICENSE README Changes %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc LICENSE README Changes %{perl_vendorlib}/DateTime %{_mandir}/*/* %changelog * Sun Nov 08 2009 Jérôme Quelin <jquelin@mandriva.org> 1.30.0-1mdv2010.1 + Revision: 463043 - adding missing buildrequires: - update to 1.03a really, it's 1.03 with $VERSION set correctly, which author forgot to bump in 1.03... so he thought issuing 1.03a would be better than 1.04, really screwing packagers and making them deal with that manually... as if version numbers were expensive. hate, hate, hate! * Sun Jul 12 2009 Jérôme Quelin <jquelin@mandriva.org> 1.30.0-1mdv2010.0 + Revision: 395153 - update to 1.03 for real this time - using %%perl_convert_version - fixed license field - update to 1.03 * Thu Jul 31 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.02-6mdv2009.0 + Revision: 256498 - rebuild * Thu Dec 20 2007 Olivier Blin <oblin@mandriva.com> 1.02-4mdv2008.1 + Revision: 135833 - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Mon Jul 02 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.02-4mdv2008.0 + Revision: 46973 - rebuild * Thu Jun 22 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.02-3mdv2007.0 - Rebuild * 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