commit 45a0ee6ed71e6d9163c91be71361b0c903aa47818680f28333f034334bf9a8d9 Author: Adrian Schröter Date: Fri May 3 21:21:46 2024 +0200 Sync from SUSE:SLFO:Main python-langdetect revision ad072ccb0a57c21cb20789b40f3d4030 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/langdetect-1.0.9.tar.gz b/langdetect-1.0.9.tar.gz new file mode 100644 index 0000000..df16f00 --- /dev/null +++ b/langdetect-1.0.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbc1fef89f8d062739774bd51eda3da3274006b3661d199c2655f6b3f6d605a0 +size 981474 diff --git a/python-langdetect.changes b/python-langdetect.changes new file mode 100644 index 0000000..7611cfd --- /dev/null +++ b/python-langdetect.changes @@ -0,0 +1,30 @@ +------------------------------------------------------------------- +Fri Apr 21 12:27:46 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Tue May 25 09:19:03 UTC 2021 - pgajdos@suse.com + +- version update to 1.0.9 + * no upstream changelog, see the git log + https://github.com/Mimino666/langdetect/commits/master + +------------------------------------------------------------------- +Wed Apr 15 10:20:08 UTC 2020 - Marketa Calabkova + +- Update to 1.0.8 + * Drop unsupported Python 2.6, 3.2, 3.3 + * Support Python 3.7, 3.8 + +------------------------------------------------------------------- +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..5d68fd0 --- /dev/null +++ b/python-langdetect.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-langdetect +# +# Copyright (c) 2023 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-langdetect +Version: 1.0.9 +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}.tar.gz +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 +%pyunittest discover -v + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/* + +%changelog