%define pkg_name Time-Format_XS %define pkg_version 1.02 %define rpm_pkg_version 1.02 %define rpm_pkg_release 3.n0i.9 Summary: Companion module for Time::Format, to speed up time formatting Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/R/RO/ROODE/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) %if %{!?_without_test:1}0 BuildRequires: perl(Time::Format) >= 1.01 # full throttle for testing BuildRequires: perl(DateTime) BuildRequires: perl(Time::Local) BuildRequires: perl(I18N::Langinfo) %endif %description The Time::Format module (q.v.) is a handy and easy-to-use way of formatting dates and times. It's not particularly slow, but it's not particularly speedy, either. This module, Time::Format_XS, provides a huge performance improvement for the main formatting function in Time::Format. This is the "time_format" function, usually accessed via the %%time hash. On my test system, this function was 15 times faster with the Time::Format_XS module installed. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %{!?_without_test:LANG=en_US %{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes README %changelog * Tue May 22 2007 Marius Feraru - 1.02-3.n0i.9 - spec file (re)created using N0i::CPAN::RPMizer 0.1 * Sat Mar 04 2006 Marius Feraru - 1.02-2.n0i.8 - automatic rebuild (perl 5.8.8) * Fri Feb 03 2006 Marius Feraru - 1.02-1.n0i.7 - version 1.02 * Thu Jul 28 2005 Marius Feraru 0.13-2.n0i.6 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Sun Mar 20 2005 Marius Feraru 0:0.13-1.n0i.5 - automatic rebuild (perl 5.8.6) * Sun Dec 05 2004 Marius Feraru 0:0.13-1.n0i.4 - automatic rebuild (perl 5.8.6) * Wed May 05 2004 Marius Feraru 0:0.13-1.n0i.3 - spec file (re?)created using N0i::CPAN::RPMizer/2004050401 - rebuild (perl 5.8.4) * Thu Jan 29 2004 Marius FERARU 0:0.13-0.n0i.1 - version 0.13 - spec file (re?)created using N0i::CPAN::RPMizer/2004011001