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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Name: perl-Test-Number-Delta
  2. Version: 1.04
  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: ASL 2.0
  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. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. %description
  21. At some point or another, most programmers find they need to compare
  22. floating-point numbers for equality. The typical idiom is to test if
  23. the absolute value of the difference of the numbers is within a
  24. desired tolerance, usually called epsilon. This module provides such
  25. a function for use with Test::Harness.
  26. %prep
  27. %setup -q -n Test-Number-Delta-%{version}
  28. %build
  29. %{__perl} Makefile.PL installdirs=vendor
  30. make
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. make install DESTDIR=$RPM_BUILD_ROOT
  34. chmod -R u+w $RPM_BUILD_ROOT/*
  35. %check
  36. AUTHOR_TESTING=1 make test
  37. %clean
  38. rm -rf $RPM_BUILD_ROOT
  39. %files
  40. %defattr(-,root,root,-)
  41. %doc Changes LICENSE Todo
  42. %{perl_vendorlib}/Test/
  43. %{_mandir}/man3/*.3pm*
  44. %changelog
  45. * Wed Jul 16 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.04-1
  46. - build with Perl 5.16
  47. - update to 1.04
  48. - update License
  49. * Mon Mar 28 2011 IWAI, Masaharu <iwai@alib.jp> 1.03-2vl6
  50. - build with perl 5.12.3
  51. - add Vendor and Distribution tags
  52. * Mon Jul 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.03-1
  53. - initial build for Vine Linux
  54. * Tue Feb 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.03-2
  55. - rebuild for new perl
  56. * Sun Jun 24 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1
  57. - First build.