From 27621e6d556d388b8557377e4e93ff84ff3e86b43e6b2eee9980a37b922c7062 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 24 Apr 2017 16:26:52 +0000 Subject: [PATCH] Accepting request 486996 from home:alarrosa:branches:devel:languages:python singlespec version of python3-jellyfish (which can be deleted after this is accepted) OBS-URL: https://build.opensuse.org/request/show/486996 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jellyfish?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + jellyfish-0.5.6.tar.gz | 3 ++ python-jellyfish.changes | 10 ++++++ python-jellyfish.spec | 66 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 103 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 jellyfish-0.5.6.tar.gz create mode 100644 python-jellyfish.changes create mode 100644 python-jellyfish.spec 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/jellyfish-0.5.6.tar.gz b/jellyfish-0.5.6.tar.gz new file mode 100644 index 0000000..215dc08 --- /dev/null +++ b/jellyfish-0.5.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:887a9a49d0caee913a883c3e7eb185f6260ebe2137562365be422d1316bd39c9 +size 132177 diff --git a/python-jellyfish.changes b/python-jellyfish.changes new file mode 100644 index 0000000..6c86cde --- /dev/null +++ b/python-jellyfish.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Mon Apr 10 08:09:52 UTC 2017 - alarrosa@suse.com + +- Use singlespec macros + +------------------------------------------------------------------- +Thu Jan 19 14:11:58 UTC 2017 - alarrosa@suse.com + +- Initial release + diff --git a/python-jellyfish.spec b/python-jellyfish.spec new file mode 100644 index 0000000..55b2c15 --- /dev/null +++ b/python-jellyfish.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-jellyfish +# +# 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 +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-jellyfish +Version: 0.5.6 +Release: 0 +Summary: A library for doing approximate and phonetic matching of strings +License: BSD-2-Clause +Group: Development/Languages/Python +Url: http://github.com/jamesturk/jellyfish +Source: https://files.pythonhosted.org/packages/source/j/jellyfish/jellyfish-0.5.6.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module unicodecsv} +BuildRequires: python-rpm-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%python_subpackages + +%description +Jellyfish is a python library for doing approximate and phonetic +matching of strings. + +Includes algorithms for string comparison: Levenshtein Distance, +Damerau-Levenshtein Distance, Jaro Distance, Jaro-Winkler Distance, +Match Rating Approach Comparison and Hamming Distance. + +And algorithms for phonetic encoding: American Soundex, Metaphone, +NYSIIS (New York State Identification and Intelligence System) and +Match Rating Codex. + +%prep +%setup -q -n jellyfish-%{version} + +%build +%python_build + +%install +%python_install + +%check +%python_exec setup.py test + +%files %{python_files} +%defattr(-,root,root,-) +%doc LICENSE README.rst +%{python_sitearch}/* + +%changelog