commit c093b5dbab12ed3451b089f689acb18633447987 Author: gnaygnil Date: Sat Nov 30 11:18:17 2019 +0800 python-snowballstemmer: openEuler init diff --git a/python-snowballstemmer.spec b/python-snowballstemmer.spec new file mode 100644 index 0000000..236d023 --- /dev/null +++ b/python-snowballstemmer.spec @@ -0,0 +1,61 @@ +Name: python-snowballstemmer +Version: 1.2.1 +Release: 8 +Summary: This package provides 16 stemmers for 15 languages generated from Snowball algorithms +License: BSD +URL: https://pypi.python.org/pypi/snowballstemmer +Source0: https://pypi.python.org/packages/20/6b/d2a7cb176d4d664d94a6debf52cd8dbae1f7203c8e42426daa077051d59c/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 +%doc LICENSE.rst README.rst +%{python2_sitelib}/snowballstemmer-%{version}-py%{python2_version}.egg-info +%{python2_sitelib}/snowballstemmer/ + +%files -n python3-snowballstemmer +%doc LICENSE.rst README.rst +%{python3_sitelib}/snowballstemmer-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/snowballstemmer/ + +%changelog +* Mon Nov 25 2019 Ling Yang - 1.2.1-8 +- Package init diff --git a/snowballstemmer-1.2.1.tar.gz b/snowballstemmer-1.2.1.tar.gz new file mode 100644 index 0000000..0015f21 Binary files /dev/null and b/snowballstemmer-1.2.1.tar.gz differ