%define realname Test-Benchmark %define version 0.004 %define release %mkrel 7 Name: perl-%{realname} Version: %{version} Release: %{release} License: GPL or Artistic Group: Development/Perl Summary: Make sure something really is faster Source: http://www.cpan.org/modules/by-module/Test/%{realname}-%{version}.tar.gz Url: http://search.cpan.org/dist/%{realname} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: perl-devel BuildRequires: perl(Benchmark) BuildRequires: perl(Test::Builder) BuildRequires: perl(Test::NoWarnings) BuildRequires: perl(Test::Tester) BuildArch: noarch %description Sometimes you want to make sure that your "faster" algorithm really is faster than the old way. This lets you check. It might also be useful to check that your super whizzo XS or Inline::C version is actually faster. This module is based on the standard L<Benchmark> module. If you have lots of timings to compare and you don't want to keep running the same benchmarks all the time, you can pass in a result object from C<Benchmark::timethis()> instead of sub routine reference. %prep %setup -q -n %{realname}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check make test %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc META.yml CHANGES README %{_mandir}/man3/* %perl_vendorlib/* %changelog * Mon Apr 25 2011 Funda Wang <fwang@mandriva.org> 0.004-7mdv2011.0 + Revision: 658886 - rebuild for updated spec-helper + Sandro Cazzaniga <kharec@mandriva.org> - fix build failure - add LGPL to the doc * Fri Sep 04 2009 Thierry Vignaud <tv@mandriva.org> 0.004-6mdv2010.0 + Revision: 430586 - rebuild * Thu Jul 31 2008 Thierry Vignaud <tv@mandriva.org> 0.004-5mdv2009.0 + Revision: 258511 - rebuild * Thu Jul 24 2008 Thierry Vignaud <tv@mandriva.org> 0.004-4mdv2009.0 + Revision: 246530 - rebuild * Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 0.004-2mdv2008.1 + Revision: 171032 - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Tue Nov 13 2007 Jérôme Quelin <jquelin@mandriva.org> 0.004-1mdv2008.1 + Revision: 108509 - import perl-Test-Benchmark