Sync from SUSE:SLFO:Main python-langdetect revision ad072ccb0a57c21cb20789b40f3d4030

This commit is contained in:
Adrian Schröter 2024-05-03 21:21:46 +02:00
commit 45a0ee6ed7
4 changed files with 120 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

BIN
langdetect-1.0.9.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

30
python-langdetect.changes Normal file
View File

@ -0,0 +1,30 @@
-------------------------------------------------------------------
Fri Apr 21 12:27:46 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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 <mcalabkova@suse.com>
- 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 <jayvdb@gmail.com>
- 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

64
python-langdetect.spec Normal file
View File

@ -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