%define module Time-Piece %define name perl-%{module} %define version 1.13 %define release %mkrel 2 Name: %{name} Version: %{version} Release: %{release} Summary: Object Oriented time objects License: GPL Group: Development/Perl URL: http://search.cpan.org/dist/%{module} Source: http://www.cpan.org/modules/by-module/Time/%{module}-%{version}.tar.bz2 BuildRequires: perl-devel BuildRoot: %{_tmppath}/%{name}-%{version} %description This module replaces the standard localtime and gmtime functions with implementations that return objects. It does so in a backwards compatible manner, so that using localtime/gmtime in the way documented in perlfunc will still return what you expect. The module actually implements most of an interface described by Larry Wall on the perl5-porters mailing list here: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2000-01/msg00241.html %prep %setup -q -n %{module}-%{version} %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 Changes README %{perl_vendorarch}/Time %{perl_vendorarch}/auto/Time %{_mandir}/*/* %changelog * Wed Jun 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.13-2mdv2009.0 + Revision: 224570 - rebuild * Mon Mar 03 2008 Guillaume Rousse <guillomovitch@mandriva.org> 1.13-1mdv2008.1 + Revision: 177899 - update to new version 1.13 * Mon Jan 14 2008 Pixel <pixel@mandriva.com> 1.12-2mdv2008.1 + Revision: 151404 - rebuild for perl-5.10.0 + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Mon Nov 19 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.12-1mdv2008.1 + Revision: 110281 - update to new version 1.12 * Sun Jan 21 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.11-1mdv2007.0 + Revision: 111256 - fix build dependencies - Import perl-Time-Piece * Sun Jan 21 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.11-1mdv2007.1 - first mdv release