8
0

Compare commits

...

10 Commits

Author SHA256 Message Date
970c1a2539 Accepting request 303897 from devel:languages:perl
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/303897
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-Number-Delta?expand=0&rev=14
2015-04-27 11:04:25 +00:00
Stephan Kulow
56ea50cbe1 update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Number-Delta?expand=0&rev=15
2015-04-23 05:57:11 +00:00
c55722415b Accepting request 296698 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/296698
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-Number-Delta?expand=0&rev=13
2015-04-15 14:27:13 +00:00
Stephan Kulow
00ccffb186 Accepting request 296515 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/296515
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Number-Delta?expand=0&rev=13
2015-04-15 05:03:15 +00:00
Stephan Kulow
33bf59a049 Accepting request 208473 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/208473
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-Number-Delta?expand=0&rev=11
2013-11-27 14:31:32 +00:00
Stephan Kulow
2413154718 update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Number-Delta?expand=0&rev=11
2013-11-26 08:51:23 +00:00
Stephan Kulow
c2396c4980 replace license with spdx.org variant
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-Number-Delta?expand=0&rev=7
2011-12-06 17:48:26 +00:00
Sascha Peilicke
a3c0aa8a30 Autobuild autoformatter for 65106
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-Number-Delta?expand=0&rev=5
2011-03-24 16:24:51 +00:00
Sascha Peilicke
d8976a2233 Accepting request 65106 from devel:languages:perl
Accepted submit request 65106 from user licensedigger

OBS-URL: https://build.opensuse.org/request/show/65106
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-Number-Delta?expand=0&rev=4
2011-03-24 16:24:40 +00:00
Stephan Kulow
0eb799f5a9 - buildrequire perl-macros
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Number-Delta?expand=0&rev=9
2011-01-17 16:12:34 +00:00
5 changed files with 110 additions and 36 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9cd18d89bde4333f9f9b77668ef03e6e20d8ee5675c2ab1b216c7323419a320e
size 18586

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:535430919e6fdf6ce55ff76e9892afccba3b7d4160db45f3ac43b0f92ffcd049
size 21077

20
cpanspec.yml Normal file
View File

@@ -0,0 +1,20 @@
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: -
#./Build build flags=%{?_smp_mflags} --myflag

View File

@@ -1,3 +1,45 @@
-------------------------------------------------------------------
Thu Apr 23 05:56:41 UTC 2015 - coolo@suse.com
- extend version to 6 digits to avoid problems with > 1.034
-------------------------------------------------------------------
Tue Apr 14 20:53:21 UTC 2015 - coolo@suse.com
- updated to 1.06
see /usr/share/doc/packages/perl-Test-Number-Delta/Changes
1.06 2014-11-25 07:09:08-05:00 America/New_York
[Fixed]
- Make 0 and 0 compare equal with a relative epsilon
[Documented]
- Added SEE ALSO with Number::Tolerant and Test::Deep::NumberTolerant
1.05 2014-11-24 11:08:11-05:00 America/New_York
[Fixed]
- relative comparison of array reference elements now works as intended
- diagnostics of delta_not_ok and delta_not_within clarified under
relative comparison
-------------------------------------------------------------------
Tue Nov 26 07:35:28 UTC 2013 - coolo@suse.com
- updated to 1.04
- Modernized distribution metadata and licensing
- Distribution now managed with Dist::Zilla
-------------------------------------------------------------------
Mon Jan 17 16:12:26 UTC 2011 - coolo@novell.com
- buildrequire perl-macros
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 30 19:20:50 UTC 2010 - coolo@novell.com Tue Nov 30 19:20:50 UTC 2010 - coolo@novell.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Test-Number-Delta (Version 1.03) # spec file for package perl-Test-Number-Delta
# #
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -15,55 +15,67 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: perl-Test-Number-Delta Name: perl-Test-Number-Delta
Version: 1.03 Version: 1.060000
Release: 1 Release: 0
%define cpan_version 1.06
Provides: perl(Test::Number::Delta) = 1.060000
%define cpan_name Test-Number-Delta
Summary: Compare the difference between numbers against a given tolerance Summary: Compare the difference between numbers against a given tolerance
Source: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Test-Number-Delta-%{version}.tar.gz License: Apache-2.0
Url: http://search.cpan.org/dist/Test-Number-Delta/
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
License: Perl License Url: http://search.cpan.org/dist/Test-Number-Delta/
Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires} %{perl_requires}
BuildRequires: make perl
%description %description
At some point or another, most programmers find they need to compare 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 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, absolute value of the difference of the numbers is within a desired
usually called epsilon. This module provides such a function for use with tolerance, usually called epsilon. This module provides such a function for
Test::Harness. Usage is similar to other test functions described in use with the Test::More manpage. Usage is similar to other test functions
Test::More. described in the Test::More manpage. Semantically, the 'delta_within'
function replaces this kind of construct:
ok ( abs($p - $q) < $epsilon, '$p is equal to $q' ) or
diag "$p is not equal to $q to within $epsilon";
While there's nothing wrong with that construct, it's painful to type it
repeatedly in a test script. This module does the same thing with a single
function call. The 'delta_ok' function is similar, but either uses a global
default value for epsilon or else calculates a 'relative' epsilon on the
fly so that epsilon is scaled automatically to the size of the arguments to
'delta_ok'. Both functions are exported automatically.
Because checking floating-point equality is not always reliable, it is not
possible to check the 'equal to' boundary of 'less than or equal to
epsilon'. Therefore, Test::Number::Delta only compares if the absolute
value of the difference is *less than* epsilon (for equality tests) or
*greater than* epsilon (for inequality tests).
%prep %prep
%setup -q -n "Test-Number-Delta-%{version}" %setup -q -n %{cpan_name}-%{cpan_version}
%__sed -i '/^auto_install/d' Makefile.PL
%build %build
%__perl Makefile.PL PREFIX="%{_prefix}" %{__perl} Makefile.PL INSTALLDIRS=vendor
%__make %{?jobs:-j%{jobs}} %{__make} %{?_smp_mflags}
%check
%{__make} test
%install %install
%perl_make_install %perl_make_install
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist
%check %files -f %{name}.files
%__make test %defattr(-,root,root,755)
%doc Changes CONTRIBUTING.mkdn LICENSE README
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/Test
%dir %{perl_vendorlib}/Test/Number
%{perl_vendorlib}/Test/Number/Delta.pm
%dir %{perl_vendorarch}/auto/Test
%dir %{perl_vendorarch}/auto/Test/Number
%{perl_vendorarch}/auto/Test/Number/Delta
%doc %{perl_man3dir}/Test::Number::Delta.%{perl_man3ext}%{ext_man}
%changelog %changelog