commit 3e158428d2b2b5c9d985484c47da897845fe32a758cd36467898e081b385b9ba Author: Tomáš Chvátal Date: Wed Dec 11 08:40:39 2019 +0000 Accepting request 755749 from home:jayvdb:py-new - Remove %bcond_without test - Tidy spec OBS-URL: https://build.opensuse.org/request/show/755749 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-langdetect?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/langdetect-1.0.7.zip b/langdetect-1.0.7.zip new file mode 100644 index 0000000..c36d5a2 --- /dev/null +++ b/langdetect-1.0.7.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91a170d5f0ade380db809b3ba67f08e95fe6c6c8641f96d67a51ff7e98a9bf30 +size 998060 diff --git a/python-langdetect.changes b/python-langdetect.changes new file mode 100644 index 0000000..1f1f635 --- /dev/null +++ b/python-langdetect.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Sun May 12 02:49:04 AM UTC 2019 - John Vandenberg + +- Remove %bcond_without test +- Tidy spec + +------------------------------------------------------------------- +Wed Sep 20 12:07:18 UTC 2017 - alarrosa@suse.com + +- Initial release of python-langdetect 1.0.7 + diff --git a/python-langdetect.spec b/python-langdetect.spec new file mode 100644 index 0000000..0d57e31 --- /dev/null +++ b/python-langdetect.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-langdetect +# +# Copyright (c) 2019 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-langdetect +Version: 1.0.7 +Release: 0 +Summary: Language detection library ported from Google's language-detection +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://github.com/Mimino666/langdetect +Source: https://files.pythonhosted.org/packages/source/l/langdetect/langdetect-%{version}.zip +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +Requires: python-six +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module six} +# /SECTION +%python_subpackages + +%description +python-langdetect is a port of Google's language-detection library to Python. +It supports 55 languages out of the box: +af, ar, bg, bn, ca, cs, cy, da, de, el, en, es, et, fa, fi, fr, gu, he, +hi, hr, hu, id, it, ja, kn, ko, lt, lv, mk, ml, mr, ne, nl, no, pa, pl, +pt, ro, ru, sk, sl, so, sq, sv, sw, ta, te, th, tl, tr, uk, ur, vi, zh-cn, zh-tw + +%prep +%setup -q -n langdetect-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_exec setup.py test + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/* + +%changelog