summaryrefslogtreecommitdiffstats
path: root/python-langdetect
diff options
context:
space:
mode:
authorLyes Saadi <dev@lyes.eu>2022-08-16 11:35:13 +0100
committerLyes Saadi <dev@lyes.eu>2022-08-16 11:35:13 +0100
commit71ee9484e5bf57b6a5fe3dbd8d65eff5665388d7 (patch)
treeba2660ff73af077d08c9dcf90619817dec93973f /python-langdetect
parent0a58b90819f863b8b77d1c58c6fe326a0c2b9236 (diff)
downloadspec-71ee9484e5bf57b6a5fe3dbd8d65eff5665388d7.tar.gz
spec-71ee9484e5bf57b6a5fe3dbd8d65eff5665388d7.tar.xz
spec-71ee9484e5bf57b6a5fe3dbd8d65eff5665388d7.zip
Sending some unpushed experiments
Diffstat (limited to 'python-langdetect')
-rw-r--r--python-langdetect/python-langdetect.spec61
1 files changed, 61 insertions, 0 deletions
diff --git a/python-langdetect/python-langdetect.spec b/python-langdetect/python-langdetect.spec
new file mode 100644
index 0000000..a2f570d
--- /dev/null
+++ b/python-langdetect/python-langdetect.spec
@@ -0,0 +1,61 @@
+%global pypi_name langdetect
+
+Name: python-%{pypi_name}
+Version: 1.0.8
+Release: 1%{?dist}
+Summary: Language detection library ported from Google's language-detection
+
+# Both python-langdetect and language-detection are under ASL 2.0
+License: ASL 2.0
+URL: https://pypi.org/project/langdetect/
+Source0: %{pypi_source}
+
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3dist(pytest)
+BuildRequires: python3dist(six)
+
+%global _description %{expand:
+Port of Nakatani Shuyo's language-detection library (version from 03/03/2014) to
+Python.
+
+langdetect supports 55 languages out of the box (ISO 639-1 codes):
+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}
+
+%description %{_description}
+
+%package -n python3-%{pypi_name}
+Summary: %{summary}
+
+Requires: python3dist(six)
+
+%description -n python3-%{pypi_name} %{_description}
+
+%prep
+%autosetup -n %{pypi_name}-%{version}
+
+rm -rf %{pypi_name}.egginfo
+
+chmod 644 LICENSE NOTICE langdetect/profiles/*
+
+%build
+%py3_build
+
+%install
+%py3_install
+
+%check
+%pytest
+
+%files -n python3-%{pypi_name}
+%doc README.md
+%license LICENSE NOTICE
+%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/
+%{python3_sitelib}/%{pypi_name}/
+
+%changelog
+* Thu Mar 18 2021 Lyes Saadi <fedora@lyes.eu> - 1.0.8-1
+- Initial Package