Hello community, here is the log from the commit of package perl-Test-Number-Delta for openSUSE:Factory checked in at 2013-11-27 15:31:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Test-Number-Delta (Old) and /work/SRC/openSUSE:Factory/.perl-Test-Number-Delta.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-Test-Number-Delta" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Test-Number-Delta/perl-Test-Number-Delta.changes 2011-09-23 12:39:06.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Test-Number-Delta.new/perl-Test-Number-Delta.changes 2013-11-27 15:31:34.000000000 +0100 @@ -1,0 +2,7 @@ +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 + +------------------------------------------------------------------- Old: ---- Test-Number-Delta-1.03.tar.gz New: ---- Test-Number-Delta-1.04.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Test-Number-Delta.spec ++++++ --- /var/tmp/diff_new_pack.sAqN9s/_old 2013-11-27 15:31:36.000000000 +0100 +++ /var/tmp/diff_new_pack.sAqN9s/_new 2013-11-27 15:31:36.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-Test-Number-Delta # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,56 +15,67 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: perl-Test-Number-Delta -Version: 1.03 -Release: 6 +Version: 1.04 +Release: 0 +%define cpan_name Test-Number-Delta 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 -Url: http://search.cpan.org/dist/Test-Number-Delta/ +License: Apache-2.0 Group: Development/Libraries/Perl -License: Artistic-1.0 or GPL-1.0+ +Url: http://search.cpan.org/dist/Test-Number-Delta/ +Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +#BuildRequires: perl(Pod::Wordlist) +#BuildRequires: perl(Test::Number::Delta) +#BuildRequires: perl(Test::Spelling) >= 0.12 %{perl_requires} -BuildRequires: make perl perl-macros %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. Usage is similar to other test functions described in -Test::More. +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 the Test::More manpage. Usage is similar to other test functions +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 -%setup -q -n "Test-Number-Delta-%{version}" -%__sed -i '/^auto_install/d' Makefile.PL +%setup -q -n %{cpan_name}-%{version} %build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make %{?jobs:-j%{jobs}} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install %perl_make_install %perl_process_packlist +%perl_gen_filelist -%check -%__make test - -%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} +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes CONTRIBUTING cpanfile LICENSE perlcritic.rc README tidyall.ini %changelog ++++++ Test-Number-Delta-1.03.tar.gz -> Test-Number-Delta-1.04.tar.gz ++++++ ++++ 2890 lines of diff (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org