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.python.org/pypi/snowballstemmer
15 Source0: https://pypi.python.org/packages/source/s/snowballstemmer/%{module}-%{version}.tar.gz
16 # Source0-md5: 643b019667a708a922172e33a99bf2fa
17 URL: https://github.com/shibukawa/snowball_py
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.714
21 BuildRequires: python-setuptools
24 BuildRequires: python3-setuptools
26 Requires: python-modules
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This package provides 16 stemmer algorithms (15 + Porter English
32 stemmer) generated from Snowball algorithms.
34 It includes following language algorithms:
37 - English (Standard, Porter)
51 This is a pure Python stemming library. If PyStemmer is available,
52 this module uses it to accelerate.
54 %description -l pl.UTF-8
55 Ten pakiet udostępnia 16 algorytmów znajdujących rdzenie słów (15 +
56 angielski Portera), wygenerowane z algorytmów Snowball.
58 Zawiera algorytmy dla następujących języków:
61 - angielski (standardowy i Portera)
75 Ta biblioteka jest napisana w czystym Pythonie. Jeśli dostępny jest
76 PyStemmer, jest używany w celu przyspieszenia.
78 %package -n python3-%{module}
79 Summary: Stemmer algorithms generated from Snowball algorithms
80 Summary(pl.UTF-8): Algorytmy wyznaczające rdzeniesłów wygenerowane z algorytmów Snowball
81 Group: Libraries/Python
82 Requires: python3-modules
84 %description -n python3-%{module}
85 This package provides 16 stemmer algorithms (15 + Porter English
86 stemmer) generated from Snowball algorithms.
88 It includes following language algorithms:
92 - English (Standard, Porter)
106 This is a pure Python stemming library. If PyStemmer is available,
107 this module uses it to accelerate.
109 %description -n python3-%{module} -l pl.UTF-8
110 Ten pakiet udostępnia 16 algorytmów znajdujących rdzenie słów (15 +
111 angielski Portera), wygenerowane z algorytmów Snowball.
113 Zawiera algorytmy dla następujących języków:
116 - angielski (standardowy i Portera)
130 Ta biblioteka jest napisana w czystym Pythonie. Jeśli dostępny jest
131 PyStemmer, jest używany w celu przyspieszenia.
134 %setup -q -n %{module}-%{version}
146 rm -rf $RPM_BUILD_ROOT
159 rm -rf $RPM_BUILD_ROOT
163 %defattr(644,root,root,755)
165 %{py_sitescriptdir}/%{module}
166 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
170 %files -n python3-%{module}
171 %defattr(644,root,root,755)
173 %{py3_sitescriptdir}/%{module}
174 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info