perl-Test-Number-Delta-vl.spec 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. Name: perl-Test-Number-Delta
  2. Version: 1.03
  3. Release: 1%{?_dist_release}
  4. Summary: Compare the difference between numbers against a given tolerance
  5. Summary(ja): Compare the difference between numbers against a given tolerance
  6. Group: Development/Libraries
  7. License: GPL+ or Artistic
  8. URL: http://search.cpan.org/dist/Test-Number-Delta/
  9. Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Test-Number-Delta-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildArch: noarch
  12. BuildRequires: perl(Module::Build)
  13. BuildRequires: perl(Test::Builder) >= 0.32
  14. BuildRequires: perl(Test::Builder::Tester) >= 1.02
  15. BuildRequires: perl(Test::Pod)
  16. BuildRequires: perl(Test::Pod::Coverage)
  17. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  18. %description
  19. At some point or another, most programmers find they need to compare
  20. floating-point numbers for equality. The typical idiom is to test if
  21. the absolute value of the difference of the numbers is within a
  22. desired tolerance, usually called epsilon. This module provides such
  23. a function for use with Test::Harness.
  24. %prep
  25. %setup -q -n Test-Number-Delta-%{version}
  26. %build
  27. %{__perl} Build.PL installdirs=vendor
  28. ./Build
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
  32. chmod -R u+w $RPM_BUILD_ROOT/*
  33. %check
  34. AUTHOR_TESTING=1 ./Build test
  35. %clean
  36. rm -rf $RPM_BUILD_ROOT
  37. %files
  38. %defattr(-,root,root,-)
  39. %doc Changes LICENSE Todo
  40. %{perl_vendorlib}/Test/
  41. %{_mandir}/man3/*.3pm*
  42. %changelog
  43. * Mon Jul 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.03-1
  44. - initial build for Vine Linux
  45. * Tue Feb 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.03-2
  46. - rebuild for new perl
  47. * Sun Jun 24 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1
  48. - First build.