From e41a4739b8e191165c4ec88be4f2878ceab1bb96 Mon Sep 17 00:00:00 2001 From: Jose Pedro Oliveira Date: Mon, 25 Jun 2007 19:45:42 +0000 Subject: [PATCH] Import --- .cvsignore | 1 + perl-Test-Number-Delta.spec | 60 +++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+) create mode 100644 perl-Test-Number-Delta.spec diff --git a/.cvsignore b/.cvsignore index e69de29..8ce5078 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Test-Number-Delta-1.03.tar.gz diff --git a/perl-Test-Number-Delta.spec b/perl-Test-Number-Delta.spec new file mode 100644 index 0000000..21c86e9 --- /dev/null +++ b/perl-Test-Number-Delta.spec @@ -0,0 +1,60 @@ +Name: perl-Test-Number-Delta +Version: 1.03 +Release: 1%{?dist} +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-%(%{__id_u} -n) + +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 "`%{__perl} -V:version`"; echo $version)) + +%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 +%{__perl} Build.PL installdirs=vendor +./Build + + +%install +rm -rf $RPM_BUILD_ROOT +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +AUTHOR_TESTING=1 ./Build test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE Todo +%{perl_vendorlib}/Test/ +%{_mandir}/man3/*.3pm* + + +%changelog +* Sun Jun 24 2007 Jose Pedro Oliveira - 1.03-1 +- First build. diff --git a/sources b/sources index e69de29..5157e66 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +17d3eec2d5bbe012c4a797af8e75ae39 Test-Number-Delta-1.03.tar.gz