diff --git a/pythainlp-4.0.2.tar.gz b/pythainlp-4.0.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b8f14749cbdeb1e3ff78883c2efb76a1312fa3ea Binary files /dev/null and b/pythainlp-4.0.2.tar.gz differ diff --git a/python-pythainlp.spec b/python-pythainlp.spec new file mode 100644 index 0000000000000000000000000000000000000000..61f39902557bcc37c9a73ca78fdf27411f5f1696 --- /dev/null +++ b/python-pythainlp.spec @@ -0,0 +1,95 @@ +%define anolis_release 1 +%global pypi_name pythainlp +%global pypi_version 4.0.2 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: %{anolis_release}%{?dist} +Summary: Thai Natural Language Processing library + +License: Apache Software License 2.0 +URL: https://github.com/PyThaiNLP/pythainlp +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(emoji) >= 0.5.1 +BuildRequires: python3dist(fairseq) >= 0.10 +BuildRequires: python3dist(fastai) +BuildRequires: python3dist(nltk) >= 3.3 +BuildRequires: python3dist(numpy) >= 1.22 +BuildRequires: python3dist(pandas) >= 0.24 +BuildRequires: python3dist(pyyaml) >= 5.3.1 +BuildRequires: python3dist(requests) >= 2.22 +BuildRequires: python3dist(sacremoses) >= 0.0.41 +BuildRequires: python3dist(sentencepiece) >= 0.1.91 +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(spacy-thai) >= 0.7.1 +BuildRequires: python3dist(torch) >= 1 +BuildRequires: python3dist(transformers) >= 4.6 + +%description +![PyThaiNLP Logo]( is a Python library for Thai natural language processing. +The library provides functions like word tokenization, part-of-speech tagging, +transliteration, soundex generation, spell checking, and date and time +parsing/formatting.Website: [pythainlp.github.io]( InstallFor stable version:sh +pip install pythainlp For development version:sh pip install --upgrade --pre +pythainlp... + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(emoji) >= 0.5.1 +Requires: python3dist(fairseq) >= 0.10 +Requires: python3dist(fastai) +Requires: python3dist(nltk) >= 3.3 +Requires: python3dist(numpy) >= 1.22 +Requires: python3dist(pandas) >= 0.24 +Requires: python3dist(pyyaml) >= 5.3.1 +Requires: python3dist(requests) >= 2.22 +Requires: python3dist(sacremoses) >= 0.0.41 +Requires: python3dist(sentencepiece) >= 0.1.91 +Requires: python3dist(setuptools) +Requires: python3dist(spacy-thai) >= 0.7.1 +Requires: python3dist(torch) >= 1 +Requires: python3dist(transformers) >= 4.6 + +%description -n python3-%{pypi_name} +![PyThaiNLP Logo]( is a Python library for Thai natural language processing. +The library provides functions like word tokenization, part-of-speech tagging, +transliteration, soundex generation, spell checking, and date and time +parsing/formatting.Website: [pythainlp.github.io]( InstallFor stable version:sh +pip install pythainlp For development version:sh pip install --upgrade --pre +pythainlp... + + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + + +%check +%{__python3} setup.py test + + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md README_TH.md +%{_bindir}/thainlp +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%doc html +%license LICENSE + +%changelog +* Fri Feb 02 2024 zhongling.h - 4.0.2-1 +- Initial package. \ No newline at end of file