commit f3bdf03b17338bb482f8dc99cafd70081d9d476a94989a136348171e317b06ec Author: Dirk Mueller Date: Fri May 20 20:14:14 2011 +0000 Accepting request 70287 from home:jnweiger:perl used by Text::Phonetic OBS-URL: https://build.opensuse.org/request/show/70287 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Text-Soundex?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Text-Soundex-3.03.tar.bz2 b/Text-Soundex-3.03.tar.bz2 new file mode 100644 index 0000000..d27eeb7 --- /dev/null +++ b/Text-Soundex-3.03.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e29d14ec5f40d6f8e47784c0bc70a7d3587bf1f1d41d1c0eb1f1dd6bbf285612 +size 8535 diff --git a/perl-Text-Soundex.changes b/perl-Text-Soundex.changes new file mode 100644 index 0000000..d1b56f0 --- /dev/null +++ b/perl-Text-Soundex.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Sun May 15 14:41:26 UTC 2011 - jw@novell.com + +- initial pull from CPAN with cpanspec_obs-0.7 + +------------------------------------------------------------------- +Sun May 15 14:41:03 UTC 2011 - jw@novell.com + +- initial package 3.03 + * created by cpanspec 1.78.04 + diff --git a/perl-Text-Soundex.spec b/perl-Text-Soundex.spec new file mode 100644 index 0000000..cb66f6a --- /dev/null +++ b/perl-Text-Soundex.spec @@ -0,0 +1,105 @@ +# +# spec file for package perl-Text-Soundex (Version 3.03) +# +# Copyright (c) 2010 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: perl-Text-Soundex +Version: 3.03 +Release: 1 +License: CHECK(GPL+ or Artistic) +%define cpan_name Text-Soundex +Summary: Implementation of the soundex algorithm +Url: http://search.cpan.org/dist/Text-Soundex/ +Group: Development/Libraries/Perl +Source: http://www.cpan.org/authors/id/M/MA/MARKM/Text-Soundex-%{version}.tar.bz2 +# Source: Text::Soundex +BuildRoot: %{_tmppath}/%{name}-%{version}-build +# BuildRequires: perl(Test::Pod) perl(Test::Pod::Coverage) +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(ExtUtils::MakeMaker) +%{perl_requires} + +%description +Soundex is a phonetic algorithm for indexing names by sound, as pronounced +in English. The goal is for names with the same pronunciation to be encoded +to the same representation so that they can be matched despite minor +differences in spelling. Soundex is the most widely known of all phonetic +algorithms and is often used (incorrectly) as a synonym for "phonetic +algorithm". Improvements to Soundex are the basis for many modern phonetic +algorithms. (Wikipedia, 2007) + +This module implements the original soundex algorithm developed by Robert +Russell and Margaret Odell, patented in 1918 and 1922, as well as a +variation called "American Soundex" used for US census data, and current +maintained by the National Archives and Records Administration (NARA). + +The soundex algorithm may be recognized from Donald Knuth's *The Art of +Computer Programming*. The algorithm described by Knuth is the NARA +algorithm. + +The value returned for strings which have no soundex encoding is defined +using '$Text::Soundex::nocode'. The default value is 'undef', however +values such as ''Z000'' are commonly used alternatives. + +For backward compatibility with older versions of this module the +'$Text::Soundex::nocode' is exported into the caller's namespace as +'$soundex_nocode'. + +In scalar context, 'soundex()' returns the soundex code of its first +argument. In list context, a list is returned in which each element is the +soundex code for the corresponding argument passed to 'soundex()'. For +example, the following code assigns @codes the value '('M200', 'S320')': + + @codes = soundex qw(Mike Stok); + +To use 'Text::Soundex' to generate codes that can be used to search one of +the publically available US Censuses, a variant of the soundex algorithm +must be used: + + use Text::Soundex; + $code = soundex_nara($name); + +An example of where these algorithm differ follows: + + use Text::Soundex; + print soundex("Ashcraft"), "\n"; # prints: A226 + print soundex_nara("Ashcraft"), "\n"; # prints: A261 + +%prep +%setup -q -n %{cpan_name}-%{version} + +%build +export AUTOMATED_TESTING=1 +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} + +%check +export AUTOMATED_TESTING=1 +%{__make} test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%clean +%{__rm} -rf %{buildroot} + +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes README + +%changelog