3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 %define module snowballstemmer
7 Summary: Stemmer algorithms generated from Snowball algorithms
8 Summary(pl.UTF-8): Algorytmy wyznaczające rdzeniesłów wygenerowane z algorytmów Snowball
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/snowballstemmer
15 Source0: https://files.pythonhosted.org/packages/source/s/snowballstemmer/%{module}-%{version}.tar.gz
16 # Source0-md5: 4332ddc7bbee0f344a03915b2ad59a54
17 URL: https://github.com/snowballstem/snowball
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.714
21 BuildRequires: python-modules >= 1:2.6
22 BuildRequires: python-setuptools
25 BuildRequires: python3-modules >= 1:3.4
26 BuildRequires: python3-setuptools
28 Requires: python-modules >= 1:2.6
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 This package provides 26 stemmer algorithms (25 languages + Porter
34 English stemmer) generated from Snowball algorithms.
36 It includes following language algorithms:
42 - English (Standard, Porter)
63 This is a pure Python stemming library. If PyStemmer is available,
64 this module uses it to accelerate.
66 %description -l pl.UTF-8
67 Ten pakiet udostępnia 26 algorytmów znajdujących rdzenie słów (25
68 języków + angielski Portera), wygenerowane z algorytmów Snowball.
70 Zawiera algorytmy dla następujących języków:
76 - angielski (standardowy i Portera)
97 Ta biblioteka jest napisana w czystym Pythonie. Jeśli dostępny jest
98 PyStemmer, jest używany w celu przyspieszenia.
100 %package -n python3-%{module}
101 Summary: Stemmer algorithms generated from Snowball algorithms
102 Summary(pl.UTF-8): Algorytmy wyznaczające rdzeniesłów wygenerowane z algorytmów Snowball
103 Group: Libraries/Python
104 Requires: python3-modules >= 1:3.4
106 %description -n python3-%{module}
107 This package provides 26 stemmer algorithms (25 languages + Porter
108 English stemmer) generated from Snowball algorithms.
110 It includes following language algorithms:
116 - English (Standard, Porter)
137 This is a pure Python stemming library. If PyStemmer is available,
138 this module uses it to accelerate.
140 %description -n python3-%{module} -l pl.UTF-8
141 Ten pakiet udostępnia 26 algorytmów znajdujących rdzenie słów (25
142 języków + angielski Portera), wygenerowane z algorytmów Snowball.
144 Zawiera algorytmy dla następujących języków:
150 - angielski (standardowy i Portera)
171 Ta biblioteka jest napisana w czystym Pythonie. Jeśli dostępny jest
172 PyStemmer, jest używany w celu przyspieszenia.
175 %setup -q -n %{module}-%{version}
187 rm -rf $RPM_BUILD_ROOT
200 rm -rf $RPM_BUILD_ROOT
204 %defattr(644,root,root,755)
205 %doc COPYING NEWS README.rst
206 %{py_sitescriptdir}/%{module}
207 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
211 %files -n python3-%{module}
212 %defattr(644,root,root,755)
213 %doc COPYING NEWS README.rst
214 %{py3_sitescriptdir}/%{module}
215 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info