Hello community,
here is the log from the commit of package perl-String-Approx for
openSUSE:Factory checked in at 2017-05-31 12:15:46
Comparing /work/SRC/openSUSE:Factory/perl-String-Approx (Old)
and /work/SRC/openSUSE:Factory/.perl-String-Approx.new (New)
Package is "perl-String-Approx"
Wed May 31 12:15:46 2017 rev:6 rq:494774 version:3.28
Changes:
--- /work/SRC/openSUSE:Factory/perl-String-Approx/perl-String-Approx.changes
2013-03-27 19:32:13.0 +0100
+++
/work/SRC/openSUSE:Factory/.perl-String-Approx.new/perl-String-Approx.changes
2017-05-31 12:17:12.949798159 +0200
@@ -1,0 +2,13 @@
+Mon Apr 17 06:36:07 UTC 2017 - co...@suse.com
+
+- updated to 3.28
+ see /usr/share/doc/packages/perl-String-Approx/ChangeLog
+
+ 2017-04-16 Jarkko Hietaniemi
+
+ * Resolve https://rt.cpan.org/Public/Bug/Display.html?id=121033
+ Fails tests with no '.' in @INC
+
+ * Released as 3.28.
+
+---
Old:
String-Approx-3.27.tar.gz
New:
String-Approx-3.28.tar.gz
cpanspec.yml
Other differences:
--
++ perl-String-Approx.spec ++
--- /var/tmp/diff_new_pack.ARsSJP/_old 2017-05-31 12:17:13.909662662 +0200
+++ /var/tmp/diff_new_pack.ARsSJP/_new 2017-05-31 12:17:13.913662097 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-String-Approx
#
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,37 +17,74 @@
Name: perl-String-Approx
+Version:3.28
+Release:0
%define cpan_name String-Approx
Summary:Perl extension for approximate matching (fuzzy matching)
-License:Artistic-1.0 or GPL-2.0+
+License:LGPL-2.0 OR Artistic-2.0
Group: Development/Libraries/Perl
-Version:3.27
-Release:0
-Url:http://search.cpan.org/dist/String-Approx
-Source0:%{cpan_name}-%{version}.tar.gz
+Url:http://search.cpan.org/dist/String-Approx/
+Source0:
https://cpan.metacpan.org/authors/id/J/JH/JHI/%{cpan_name}-%{version}.tar.gz
+Source1:cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(Test::More)
-Requires: perl(Test::More)
+%{perl_requires}
%description
-String::Approx lets you match and substitute strings approximately.
-With this you can emulate errors: typing errorrs, speling errors,
-closely related vocabularies (colour color),
-genetic mutations (GAG ACT), abbreviations (McScot, MacScot).
+String::Approx lets you match and substitute strings approximately. With
+this you can emulate errors: typing errorrs, speling errors, closely
+related vocabularies (colour color), genetic mutations (GAG ACT),
+abbreviations (McScot, MacScot).
+
+NOTE: String::Approx suits the task of *string matching*, not *string
+comparison*, and it works for *strings*, not for *text*.
+
+If you want to compare strings for similarity, you probably just want the
+Levenshtein edit distance (explained below), the Text::Levenshtein and
+Text::LevenshteinXS modules in CPAN. See also Text::WagnerFischer and
+Text::PhraseDistance. (There are functions for this in String::Approx, e.g.
+adist(), but their results sometimes differ from the bare Levenshtein et
+al.)
+
+If you want to compare things like text or source code, consisting of
+*words* or *tokens* and *phrases* and *sentences*, or *expressions* and
+*statements*, you should probably use some other tool than String::Approx,
+like for example the standard UNIX diff(1) tool, or the Algorithm::Diff
+module from CPAN.
+
+The measure of *approximateness* is the _Levenshtein edit distance_. It is
+the total number of "edits": insertions,
-NOTE: String::Approx suits the task of string matching,
-not string comparison, and it works for strings, not for text.
+ word world
- Authors: Jarkko Hietaniemi
+deletions,
+
+ monkey money
+
+and substitutions
+
+ sun fun
+
+required to transform a string to another string. For example, to transform
+_"lead"_ into _"gold"_, you need three edits:
+
+ lead gead goad gold
+
+The edit distance of "lead" and "gold" is therefore three, or 75%.
+
+*String::Approx* uses the Levenshtein edit distance as its measure, but
+String::Approx is not well-suited for comparing strings of different
+length, in other words, if you want a "fuzzy eq", see above. String::Approx
+is more like regular expressions or