3 %bcond_with tests # unit tests (require en_US dictionary)
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Spellchecking library for Python 2
8 Summary(pl.UTF-8): Biblioteka Pythona 2 sprawdzająca pisownię
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/pyenchant/
15 Source0: https://files.pythonhosted.org/packages/source/p/pyenchant/pyenchant-%{version}.tar.gz
16 # Source0-md5: c224ea53e119b04116d5301e5027051c
17 URL: https://pypi.org/project/pyenchant/
19 BuildRequires: python-devel >= 1:2.5
20 BuildRequires: python-setuptools >= 1:7
23 BuildRequires: python3-2to3 >= 1:3.2
24 BuildRequires: python3-devel >= 1:3.2
25 BuildRequires: python3-setuptools >= 1:7
27 BuildRequires: rpm-pythonprov
28 BuildRequires: rpmbuild(macros) >= 1.714
29 Requires: enchant >= 1.6.0
30 Requires: python-libs >= 1:2.5
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 PyEnchant is a set of language bindings and some wrapper classes to
36 make the excellent Enchant spellchecker available as a Python module.
38 %description -l pl.UTF-8
39 PyEnchant to zbiór dowiązań języka i klas obudowujących
40 udostępniających świetną bibliotekę sprawdzania pisowni Enchant jako
43 %package -n python3-pyenchant
44 Summary: Spellchecking library for Python 3
45 Summary(pl.UTF-8): Biblioteka Pythona 3 sprawdzająca pisownię
46 Group: Libraries/Python
47 Requires: enchant >= 1.6.0
48 Requires: python3-libs >= 1:3.2
50 %description -n python3-pyenchant
51 PyEnchant is a set of language bindings and some wrapper classes to
52 make the excellent Enchant spellchecker available as a Python module.
54 %description -n python3-pyenchant -l pl.UTF-8
55 PyEnchant to zbiór dowiązań języka i klas obudowujących
56 udostępniających świetną bibliotekę sprawdzania pisowni Enchant jako
60 %setup -q -n pyenchant-%{version}
64 %py_build %{?with_tests:test}
68 %py3_build %{?with_tests:test}
72 rm -rf $RPM_BUILD_ROOT
78 %{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/enchant/tests.py*
84 %{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/enchant/tests.py
85 %{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/enchant/__pycache__/tests.*.py*
89 rm -rf $RPM_BUILD_ROOT
93 %defattr(644,root,root,755)
94 %doc README.txt TODO.txt
95 %{py_sitescriptdir}/enchant
96 %{py_sitescriptdir}/pyenchant-%{version}-py*.egg-info
100 %files -n python3-pyenchant
101 %defattr(644,root,root,755)
102 %doc README.txt TODO.txt
103 %{py3_sitescriptdir}/enchant
104 %{py3_sitescriptdir}/pyenchant-%{version}-py*.egg-info