]> git.pld-linux.org Git - packages/python-hunspell.git/blame - python-hunspell.spec
- updated to 0.5.5
[packages/python-hunspell.git] / python-hunspell.spec
CommitLineData
c6c6bfd7
MK
1#
2# Conditional build:
c6c6bfd7 3%bcond_without python2 # CPython 2.x module
2fc57f59 4%bcond_without python3 # CPython 3.x module
c6c6bfd7
MK
5
6%define module hunspell
632dbe71
JB
7Summary: Pyhunspell - Python 2.x bindings for the Hunspell spellchecker engine
8Summary(pl.UTF-8): Pyhunspell - wiązania Pythona 2.x do silnika sprawdzania pisowni Hunspell
c6c6bfd7 9Name: python-%{module}
18be6235
JB
10Version: 0.5.5
11Release: 1
12License: LGPL v3+
c6c6bfd7 13Group: Libraries/Python
18be6235 14#Source0Download: https://pypi.org/simple/hunspell/
c6c2eaa1 15Source0: https://pypi.python.org/packages/source/h/hunspell/hunspell-%{version}.tar.gz
18be6235
JB
16# Source0-md5: 90b3fdccca06893837b2aff3290e7456
17URL: https://github.com/blatinier/pyhunspell
18BuildRequires: hunspell-devel >= 1.7
59c75a23 19BuildRequires: pkgconfig
c6c6bfd7 20BuildRequires: rpm-pythonprov
59c75a23
JB
21BuildRequires: rpmbuild(macros) >= 1.714
22BuildRequires: sed >= 4.0
c6c6bfd7 23%if %{with python2}
632dbe71 24BuildRequires: python-devel >= 2
18be6235 25BuildRequires: python-setuptools
c6c6bfd7
MK
26%endif
27%if %{with python3}
632dbe71 28BuildRequires: python3-devel >= 1:3.2
18be6235 29BuildRequires: python3-setuptools
c6c6bfd7 30%endif
632dbe71 31Requires: python-modules >= 2
c6c6bfd7
MK
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35Pyhunspell is a set of Python bindings for the Hunspell spellchecker
36engine. It lets developers load Hunspell dictionaries, check words,
37get suggestions, add new words, etc. It also provides some basic
632dbe71 38morphological analysis related methods.
c6c6bfd7
MK
39
40%description -l pl.UTF-8
632dbe71
JB
41Pyhunspell to zbiór wiązań Pythona do silnika sprawdzania pisowni
42Hunspell. Pozwala załadować słowniki, sprawdzać pisownię słów, uzyskać
43sugestie, dodawać nowe słowa itp. Daje dostęp do podstawowywch metod
44analizy morfologicznej.
c6c6bfd7
MK
45
46%package -n python3-%{module}
632dbe71
JB
47Summary: Pyhunspell - Python 3.x bindings for the Hunspell spellchecker engine
48Summary(pl.UTF-8): Pyhunspell - wiązania Pythona 3.x do silnika sprawdzania pisowni Hunspell
c6c6bfd7 49Group: Libraries/Python
632dbe71 50Requires: python3-modules >= 1:3.2
c6c6bfd7
MK
51
52%description -n python3-%{module}
2fc57f59
MK
53Pyhunspell is a set of Python bindings for the Hunspell spellchecker
54engine. It lets developers load Hunspell dictionaries, check words,
55get suggestions, add new words, etc. It also provides some basic
56morphological analysis related methods
c6c6bfd7
MK
57
58%description -n python3-%{module} -l pl.UTF-8
2fc57f59
MK
59Moduł interfejsu do słownika Hunspell. Pozwala załadować słowniki,
60sprawdzać pisownie, uzyskać sugestie, dodawać słowa itp. Daje dostęp
61do podstawowywch metod analizy morfologicznej.
c6c6bfd7 62
c6c6bfd7
MK
63%prep
64%setup -q -n %{module}-%{version}
59c75a23
JB
65
66hunspell_abi="$(pkg-config --modversion hunspell | cut -d. -f1-2)"
67%{__sed} -i -e "/libraries/s/'hunspell'/'hunspell-${hunspell_abi}'/" setup.py
c6c6bfd7
MK
68
69%build
70%if %{with python2}
59c75a23 71%py_build
c6c6bfd7
MK
72%endif
73
74%if %{with python3}
59c75a23 75%py3_build
c6c6bfd7
MK
76%endif
77
c6c6bfd7
MK
78%install
79rm -rf $RPM_BUILD_ROOT
80
81%if %{with python2}
ecc1fc97 82%py_install
c6c6bfd7
MK
83
84%py_postclean
85%endif
86
87%if %{with python3}
ecc1fc97 88%py3_install
c6c6bfd7
MK
89%endif
90
c6c6bfd7
MK
91%clean
92rm -rf $RPM_BUILD_ROOT
93
94%if %{with python2}
95%files
96%defattr(644,root,root,755)
632dbe71 97%attr(755,root,root) %{py_sitedir}/hunspell.so
c6c6bfd7 98%if "%{py_ver}" > "2.4"
632dbe71 99%{py_sitedir}/hunspell-%{version}-py*.egg-info
c6c6bfd7 100%endif
c6c6bfd7
MK
101%endif
102
103%if %{with python3}
104%files -n python3-%{module}
105%defattr(644,root,root,755)
632dbe71
JB
106%attr(755,root,root) %{py3_sitedir}/hunspell.cpython-*.so
107%{py3_sitedir}/hunspell-%{version}-py*.egg-info
c6c6bfd7 108%endif
This page took 0.161488 seconds and 4 git commands to generate.