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