python-snowballstemmer/python-snowballstemmer.spec
2020-07-30 22:30:13 +08:00

69 lines
2.4 KiB
RPMSpec

Name: python-snowballstemmer
Version: 2.0.0
Release: 1
Summary: This package provides 16 stemmers for 15 languages generated from Snowball algorithms
License: BSD
URL: https://pypi.python.org/pypi/snowballstemmer
Source0: https://files.pythonhosted.org/packages/21/1b/6b8bbee253195c61aeaa61181bb41d646363bdaa691d0b94b304d4901193/snowballstemmer-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel python3-devel
%description
This module uses it to accelerate for PyStemmer. It includes following language
algorithms: Danish, Dutch, English(Standard, Porter), Finnish, French, German,
Hungarian, Italian, Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish,
Turkis.
%package -n python2-snowballstemmer
Summary: Provides 16 stemmer algorithms generated from Snowball algorithms
BuildArch: noarch
%{?python_provide:%python_provide python2-snowballstemmer}
%description -n python2-snowballstemmer
This module uses it to accelerate for PyStemmer. It includes following language
algorithms: Danish, Dutch, English(Standard, Porter), Finnish, French, German,
Hungarian, Italian, Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish,
Turkis.
%package -n python3-snowballstemmer
Summary: Provides 16 stemmer algorithms generated from Snowball algorithms
BuildArch: noarch
%{?python_provide:%python_provide python3-snowballstemmer}
%description -n python3-snowballstemmer
This module uses it to accelerate for PyStemmer. It includes following language
algorithms: Danish, Dutch, English(Standard, Porter), Finnish, French, German,
Hungarian, Italian, Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish,
Turkis.
%prep
%autosetup -n snowballstemmer-%{version}
rm -rf snowballstemmer.egg-info
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%files -n python2-snowballstemmer
%license COPYING
%doc README.rst
%{python2_sitelib}/snowballstemmer-%{version}-py%{python2_version}.egg-info
%{python2_sitelib}/snowballstemmer/
%files -n python3-snowballstemmer
%license COPYING
%doc README.rst
%{python3_sitelib}/snowballstemmer-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/snowballstemmer/
%changelog
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.0.0-1
- update to 2.0.0 from upstream
* Mon Nov 25 2019 Ling Yang <lingyang2@huawei.com> - 1.2.1-8
- Package init