summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-jellyfish.spec238
-rw-r--r--sources1
3 files changed, 240 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..37f76f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jellyfish-0.9.0.tar.gz
diff --git a/python-jellyfish.spec b/python-jellyfish.spec
new file mode 100644
index 0000000..9fa91c5
--- /dev/null
+++ b/python-jellyfish.spec
@@ -0,0 +1,238 @@
+%global _empty_manifest_terminate_build 0
+Name: python-jellyfish
+Version: 0.9.0
+Release: 1
+Summary: a library for doing approximate and phonetic matching of strings.
+License: BSD License
+URL: http://github.com/jamesturk/jellyfish
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/26/18/cd485f3661c8e8c0ab864c2e54033371dcc1f7e75767318a4044b2808ed4/jellyfish-0.9.0.tar.gz
+
+
+%description
+# Overview
+
+**jellyfish** is a library for approximate & phonetic matching of strings.
+
+Source: [https://github.com/jamesturk/jellyfish](https://github.com/jamesturk/jellyfish)
+
+Documentation: [https://jamesturk.github.io/jellyfish/](https://jamesturk.github.io/jellyfish/)
+
+Issues: [https://github.com/jamesturk/jellyfish/issues](https://github.com/jamesturk/jellyfish/issues)
+
+[![PyPI badge](https://badge.fury.io/py/jellyfish.svg)](https://badge.fury.io/py/jellyfish)
+[![Test badge](https://github.com/jamesturk/jellyfish/workflows/Python%20package/badge.svg)](https://github.com/jamesturk/jellyfish/actions?query=workflow%3A%22Python+package)
+[![Coveralls](https://coveralls.io/repos/jamesturk/jellyfish/badge.png?branch=master)](https://coveralls.io/r/jamesturk/jellyfish)
+
+
+## Included Algorithms
+
+String comparison:
+
+* Levenshtein Distance
+* Damerau-Levenshtein Distance
+* Jaro Distance
+* Jaro-Winkler Distance
+* Match Rating Approach Comparison
+* Hamming Distance
+
+Phonetic encoding:
+
+* American Soundex
+* Metaphone
+* NYSIIS (New York State Identification and Intelligence System)
+* Match Rating Codex
+
+## Example Usage
+
+``` python
+>>> import jellyfish
+>>> jellyfish.levenshtein_distance(u'jellyfish', u'smellyfish')
+2
+>>> jellyfish.jaro_distance(u'jellyfish', u'smellyfish')
+0.89629629629629637
+>>> jellyfish.damerau_levenshtein_distance(u'jellyfish', u'jellyfihs')
+1
+
+>>> jellyfish.metaphone(u'Jellyfish')
+'JLFX'
+>>> jellyfish.soundex(u'Jellyfish')
+'J412'
+>>> jellyfish.nysiis(u'Jellyfish')
+'JALYF'
+>>> jellyfish.match_rating_codex(u'Jellyfish')
+'JLLFSH'
+```
+
+
+
+
+%package -n python3-jellyfish
+Summary: a library for doing approximate and phonetic matching of strings.
+Provides: python-jellyfish
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-jellyfish
+# Overview
+
+**jellyfish** is a library for approximate & phonetic matching of strings.
+
+Source: [https://github.com/jamesturk/jellyfish](https://github.com/jamesturk/jellyfish)
+
+Documentation: [https://jamesturk.github.io/jellyfish/](https://jamesturk.github.io/jellyfish/)
+
+Issues: [https://github.com/jamesturk/jellyfish/issues](https://github.com/jamesturk/jellyfish/issues)
+
+[![PyPI badge](https://badge.fury.io/py/jellyfish.svg)](https://badge.fury.io/py/jellyfish)
+[![Test badge](https://github.com/jamesturk/jellyfish/workflows/Python%20package/badge.svg)](https://github.com/jamesturk/jellyfish/actions?query=workflow%3A%22Python+package)
+[![Coveralls](https://coveralls.io/repos/jamesturk/jellyfish/badge.png?branch=master)](https://coveralls.io/r/jamesturk/jellyfish)
+
+
+## Included Algorithms
+
+String comparison:
+
+* Levenshtein Distance
+* Damerau-Levenshtein Distance
+* Jaro Distance
+* Jaro-Winkler Distance
+* Match Rating Approach Comparison
+* Hamming Distance
+
+Phonetic encoding:
+
+* American Soundex
+* Metaphone
+* NYSIIS (New York State Identification and Intelligence System)
+* Match Rating Codex
+
+## Example Usage
+
+``` python
+>>> import jellyfish
+>>> jellyfish.levenshtein_distance(u'jellyfish', u'smellyfish')
+2
+>>> jellyfish.jaro_distance(u'jellyfish', u'smellyfish')
+0.89629629629629637
+>>> jellyfish.damerau_levenshtein_distance(u'jellyfish', u'jellyfihs')
+1
+
+>>> jellyfish.metaphone(u'Jellyfish')
+'JLFX'
+>>> jellyfish.soundex(u'Jellyfish')
+'J412'
+>>> jellyfish.nysiis(u'Jellyfish')
+'JALYF'
+>>> jellyfish.match_rating_codex(u'Jellyfish')
+'JLLFSH'
+```
+
+
+
+
+%package help
+Summary: Development documents and examples for jellyfish
+Provides: python3-jellyfish-doc
+%description help
+# Overview
+
+**jellyfish** is a library for approximate & phonetic matching of strings.
+
+Source: [https://github.com/jamesturk/jellyfish](https://github.com/jamesturk/jellyfish)
+
+Documentation: [https://jamesturk.github.io/jellyfish/](https://jamesturk.github.io/jellyfish/)
+
+Issues: [https://github.com/jamesturk/jellyfish/issues](https://github.com/jamesturk/jellyfish/issues)
+
+[![PyPI badge](https://badge.fury.io/py/jellyfish.svg)](https://badge.fury.io/py/jellyfish)
+[![Test badge](https://github.com/jamesturk/jellyfish/workflows/Python%20package/badge.svg)](https://github.com/jamesturk/jellyfish/actions?query=workflow%3A%22Python+package)
+[![Coveralls](https://coveralls.io/repos/jamesturk/jellyfish/badge.png?branch=master)](https://coveralls.io/r/jamesturk/jellyfish)
+
+
+## Included Algorithms
+
+String comparison:
+
+* Levenshtein Distance
+* Damerau-Levenshtein Distance
+* Jaro Distance
+* Jaro-Winkler Distance
+* Match Rating Approach Comparison
+* Hamming Distance
+
+Phonetic encoding:
+
+* American Soundex
+* Metaphone
+* NYSIIS (New York State Identification and Intelligence System)
+* Match Rating Codex
+
+## Example Usage
+
+``` python
+>>> import jellyfish
+>>> jellyfish.levenshtein_distance(u'jellyfish', u'smellyfish')
+2
+>>> jellyfish.jaro_distance(u'jellyfish', u'smellyfish')
+0.89629629629629637
+>>> jellyfish.damerau_levenshtein_distance(u'jellyfish', u'jellyfihs')
+1
+
+>>> jellyfish.metaphone(u'Jellyfish')
+'JLFX'
+>>> jellyfish.soundex(u'Jellyfish')
+'J412'
+>>> jellyfish.nysiis(u'Jellyfish')
+'JALYF'
+>>> jellyfish.match_rating_codex(u'Jellyfish')
+'JLLFSH'
+```
+
+
+
+
+%prep
+%autosetup -n jellyfish-0.9.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-jellyfish -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Sat Feb 25 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ac323c1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+3c2a9d07102372dc673b1f74970d25b6 jellyfish-0.9.0.tar.gz