%define perl_vendorlib %(eval "`%{_bindir}/perl -V:installvendorlib`"; echo $installvendorlib) Name: perl-Test-Number-Delta Version: 1.03 Release: 1 Summary: Compare the difference between numbers against a given tolerance Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Test-Number-Delta/ Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Test-Number-Delta-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: perl(Module::Build) BuildRequires: perl(Test::Builder) >= 0.32 BuildRequires: perl(Test::Builder::Tester) >= 1.02 BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) Requires: perl(:MODULE_COMPAT_%(eval "`%{_bindir}/perl -V:version`"; echo $version)) Requires: perl >= 5.8.8 Requires: perl-Test-Pod Requires: perl-Test-Pod-Coverage %description At some point or another, most programmers find they need to compare floating-point numbers for equality. The typical idiom is to test if the absolute value of the difference of the numbers is within a desired tolerance, usually called epsilon. This module provides such a function for use with Test::Harness. %prep %setup -q -n Test-Number-Delta-%{version} %build %{_bindir}/perl Makefile.PL INSTALLDIRS=vendor make %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make pure_install PERL_INSTALL_ROOT=${RPM_BUILD_ROOT} find ${RPM_BUILD_ROOT} -type f -name .packlist -exec rm -f {} ';' find ${RPM_BUILD_ROOT} -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w ${RPM_BUILD_ROOT}/* %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc Changes LICENSE Todo %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Tue Nov 11 2008 Michael Perzl - 1.03-1 - first version for AIX V5.1 and higher