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