|
|
cf21178 |
%global pypi_name langdetect
|
|
|
cf21178 |
|
|
|
cf21178 |
Name: python-%{pypi_name}
|
|
sudip |
3f231c1 |
Version: 1.0.9
|
|
|
9d9c235 |
Release: 7%{?dist}
|
|
|
cf21178 |
Summary: Language detection library ported from Google's language-detection
|
|
|
cf21178 |
|
|
|
cf21178 |
# Both python-langdetect and language-detection are under ASL 2.0
|
|
sudip |
3f231c1 |
License: Apache-2.0
|
|
|
cf21178 |
URL: https://pypi.org/project/langdetect/
|
|
|
cf21178 |
Source0: %{pypi_source}
|
|
|
cf21178 |
|
|
|
cf21178 |
BuildArch: noarch
|
|
|
cf21178 |
|
|
|
cf21178 |
BuildRequires: python3-devel
|
|
|
cf21178 |
BuildRequires: python3dist(setuptools)
|
|
|
cf21178 |
BuildRequires: python3dist(pytest)
|
|
sudip |
3f231c1 |
BUildRequires: python3dist(six)
|
|
|
cf21178 |
|
|
|
cf21178 |
%global _description %{expand:
|
|
|
cf21178 |
Port of Nakatani Shuyo's language-detection library (version from 03/03/2014) to
|
|
|
cf21178 |
Python.
|
|
|
cf21178 |
|
|
|
cf21178 |
langdetect supports 55 languages out of the box (ISO 639-1 codes):
|
|
|
cf21178 |
af, ar, bg, bn, ca, cs, cy, da, de, el, en, es, et, fa, fi, fr, gu, he, hi, hr,
|
|
|
cf21178 |
hu, id, it, ja, kn, ko, lt, lv, mk, ml, mr, ne, nl, no, pa, pl, pt, ro, ru, sk,
|
|
|
cf21178 |
sl, so, sq, sv, sw, ta, te, th, tl, tr, uk, ur, vi, zh-cn, zh-tw}
|
|
|
cf21178 |
|
|
|
cf21178 |
%description %{_description}
|
|
|
cf21178 |
|
|
|
cf21178 |
%package -n python3-%{pypi_name}
|
|
|
cf21178 |
Summary: %{summary}
|
|
|
cf21178 |
|
|
|
cf21178 |
|
|
|
cf21178 |
%description -n python3-%{pypi_name} %{_description}
|
|
|
cf21178 |
|
|
|
cf21178 |
%prep
|
|
|
cf21178 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
cf21178 |
|
|
|
cf21178 |
rm -rf %{pypi_name}.egginfo
|
|
|
cf21178 |
|
|
|
cf21178 |
chmod 644 LICENSE NOTICE langdetect/profiles/*
|
|
|
cf21178 |
|
|
|
cf21178 |
%build
|
|
|
cf21178 |
%py3_build
|
|
|
cf21178 |
|
|
|
cf21178 |
%install
|
|
|
cf21178 |
%py3_install
|
|
|
cf21178 |
|
|
|
cf21178 |
%check
|
|
|
cf21178 |
%pytest
|
|
|
cf21178 |
|
|
|
cf21178 |
%files -n python3-%{pypi_name}
|
|
|
cf21178 |
%doc README.md
|
|
|
cf21178 |
%license LICENSE NOTICE
|
|
|
cf21178 |
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/
|
|
|
cf21178 |
%{python3_sitelib}/%{pypi_name}/
|
|
|
cf21178 |
|
|
|
cf21178 |
%changelog
|
|
|
9d9c235 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-7
|
|
|
9d9c235 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
9d9c235 |
|
|
|
e3f2c38 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-6
|
|
|
e3f2c38 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
e3f2c38 |
|
|
|
2bd2b7e |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-5
|
|
|
2bd2b7e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
2bd2b7e |
|
|
|
379693b |
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.0.9-4
|
|
|
379693b |
- Rebuilt for Python 3.12
|
|
|
379693b |
|
|
|
ad1a9e7 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-3
|
|
|
ad1a9e7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
ad1a9e7 |
|
|
sudip |
3f231c1 |
* Sun Oct 16 2022 Sudip Shil <sshil@redhat.com> - 1.0.9-2
|
|
sudip |
3f231c1 |
- License changed to Apache-2.0(SPDX format)
|
|
sudip |
3f231c1 |
- Removed Requires: python3dist(six) because it's auto generated
|
|
sudip |
3f231c1 |
|
|
sudip |
3f231c1 |
* Tue Sep 27 2022 Sudip Shil <sshil@redhat.com> - 1.0.9-1
|
|
sudip |
3f231c1 |
- Update to 1.0.9
|
|
sudip |
3f231c1 |
|
|
|
cf21178 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.0.8-2
|
|
|
cf21178 |
- Rebuilt for Python 3.10
|
|
|
cf21178 |
|
|
|
cf21178 |
* Thu Mar 18 2021 Lyes Saadi <fedora@lyes.eu> - 1.0.8-1
|
|
|
cf21178 |
- Initial Package
|