8
0

Compare commits

...

10 Commits

Author SHA256 Message Date
e5a752b306 Accepting request 494774 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/494774
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-String-Approx?expand=0&rev=6
2017-05-31 10:15:46 +00:00
Stephan Kulow
dc148f6089 Accepting request 494773 from devel:languages:perl:autoupdate
- updated to 3.28
   see /usr/share/doc/packages/perl-String-Approx/ChangeLog
  2017-04-16  Jarkko Hietaniemi  <jhi@iki.fi>
  
  	* Resolve https://rt.cpan.org/Public/Bug/Display.html?id=121033
  	  Fails tests with no '.' in @INC
  
  	* Released as 3.28.

OBS-URL: https://build.opensuse.org/request/show/494773
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-Approx?expand=0&rev=13
2017-05-12 06:15:51 +00:00
Stephan Kulow
1f9944e986 Accepting request 161230 from devel:languages:perl
- updated to 3.27:
  * Resolve https://rt.cpan.org/Ticket/Display.html?id=69029
    Do not die (adist()) on empty pattern string.
  * Resolve https://rt.cpan.org/Ticket/Display.html?id=36707
    Do not die on undefined inputs, just return undef.
  * Resolve https://rt.cpan.org/Ticket/Display.html?id=82341
    Explicitly specify the licensing to be Artistic 2 or LGPL 2.
  * Modernize all the tests to use Test::More.
  * Add some tests for UTF-8 inputs.

OBS-URL: https://build.opensuse.org/request/show/161230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-String-Approx?expand=0&rev=3
2013-03-27 18:32:11 +00:00
d5cee43813 - updated to 3.27:
* Resolve https://rt.cpan.org/Ticket/Display.html?id=69029
    Do not die (adist()) on empty pattern string.
  * Resolve https://rt.cpan.org/Ticket/Display.html?id=36707
    Do not die on undefined inputs, just return undef.
  * Resolve https://rt.cpan.org/Ticket/Display.html?id=82341
    Explicitly specify the licensing to be Artistic 2 or LGPL 2.
  * Modernize all the tests to use Test::More.
  * Add some tests for UTF-8 inputs.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-Approx?expand=0&rev=11
2013-03-26 15:40:59 +00:00
Stephan Kulow
556e606355 update license
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-Approx?expand=0&rev=10
2013-02-27 18:56:36 +00:00
Stephan Kulow
8aab2c9486 Accepting request 143538 from devel:languages:perl
needed by w3c-markup-validator

OBS-URL: https://build.opensuse.org/request/show/143538
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-String-Approx?expand=0&rev=1
2012-12-10 11:20:44 +00:00
Daniel Lovasko
3d72d4601e Accepting request 143526 from home:pgajdos
- Artistic-1.0 or GPL-2.0+ license

- Artistic-1.0 and GPL-2.0+ license

OBS-URL: https://build.opensuse.org/request/show/143526
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-Approx?expand=0&rev=8
2012-11-29 10:00:04 +00:00
Stephan Kulow
8aa10437d3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-Approx?expand=0&rev=7 2011-11-18 08:30:02 +00:00
Stephan Kulow
29e44169a2 don't use rpm macros
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-Approx?expand=0&rev=5
2011-11-17 14:07:11 +00:00
Stephan Kulow
9adaa34099 always buildrequire perl-macros if not present, move %perl_requires behind buildroot (script commit)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-Approx?expand=0&rev=3
2010-12-03 14:50:32 +00:00
5 changed files with 125 additions and 29 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ed2dec04fce448c609a7a3d9148d8bf01ceecf76695830a39b42b4f4b498887
size 39911

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:43201e762d8699cb0ac2c0764a5454bdc2306c0771014d6c8fba821480631342
size 45093

28
cpanspec.yml Normal file
View File

@@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#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_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
license: LGPL-2.0 OR Artistic-2.0
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@@ -1,3 +1,39 @@
-------------------------------------------------------------------
Mon Apr 17 06:36:07 UTC 2017 - coolo@suse.com
- updated to 3.28
see /usr/share/doc/packages/perl-String-Approx/ChangeLog
2017-04-16 Jarkko Hietaniemi <jhi@iki.fi>
* Resolve https://rt.cpan.org/Public/Bug/Display.html?id=121033
Fails tests with no '.' in @INC
* Released as 3.28.
-------------------------------------------------------------------
Tue Mar 26 15:38:16 UTC 2013 - pgajdos@suse.com
- updated to 3.27:
* Resolve https://rt.cpan.org/Ticket/Display.html?id=69029
Do not die (adist()) on empty pattern string.
* Resolve https://rt.cpan.org/Ticket/Display.html?id=36707
Do not die on undefined inputs, just return undef.
* Resolve https://rt.cpan.org/Ticket/Display.html?id=82341
Explicitly specify the licensing to be Artistic 2 or LGPL 2.
* Modernize all the tests to use Test::More.
* Add some tests for UTF-8 inputs.
-------------------------------------------------------------------
Thu Nov 29 09:42:07 UTC 2012 - pgajdos@suse.com
- Artistic-1.0 or GPL-2.0+ license
-------------------------------------------------------------------
Thu Nov 29 09:33:54 UTC 2012 - pgajdos@suse.com
- Artistic-1.0 and GPL-2.0+ license
-------------------------------------------------------------------
Wed Dec 1 13:35:19 UTC 2010 - coolo@novell.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-String-Approx (Version 3.26)
# spec file for package perl-String-Approx
#
# Copyright (c) 2010 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
@@ -15,41 +15,76 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-String-Approx
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Version: 3.28
Release: 0
%define cpan_name String-Approx
Summary: Perl extension for approximate matching (fuzzy matching)
Version: 3.26
Release: 1
License: Artistic License; GPL v2 or later
License: LGPL-2.0 OR Artistic-2.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/String-Approx
Source0: %{cpan_name}-%{version}.tar.bz2
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
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More)
%{perl_requires}
Requires: perl(Test::More)
%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.
NOTE: String::Approx suits the task of *string matching*, not *string
comparison*, and it works for *strings*, not for *text*.
Authors: Jarkko Hietaniemi <jhi@iki.fi>
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,
word world
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 index(), it finds substrings that are
close matches.>
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
@@ -60,12 +95,9 @@ CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root)
%doc Artistic ChangeLog README
%defattr(-,root,root,755)
%doc ChangeLog COPYRIGHT COPYRIGHT.agrep LGPL PROBLEMS README README.apse
%license Artistic
%changelog