Tomáš Chvátal 2020-03-14 09:08:41 +00:00 committed by Git OBS Bridge
parent 2dba26b898
commit 633fd47a1c

View File

@ -19,6 +19,7 @@
%{!?python_module:%define python_module() python-%{**} python3-%{**}} %{!?python_module:%define python_module() python-%{**} python3-%{**}}
%define interps python python3 %define interps python python3
%define pyname nltk %define pyname nltk
%bcond_without python2
Name: python-nltk Name: python-nltk
Version: 3.4.5 Version: 3.4.5
Release: 0 Release: 0
@ -31,7 +32,6 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six} BuildRequires: %{python_module six}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: python-singledispatch
BuildRequires: unzip BuildRequires: unzip
Requires: python-six Requires: python-six
Recommends: python-gensim Recommends: python-gensim
@ -44,11 +44,11 @@ Recommends: python-scikit-learn
Recommends: python-scipy Recommends: python-scipy
Recommends: python-twython Recommends: python-twython
BuildArch: noarch BuildArch: noarch
%ifpython2 %if %{with python2}
Requires: python-singledispatch BuildRequires: python-singledispatch
%endif %endif
%ifpython2 %ifpython2
Requires: python2-singledispatch Requires: python-singledispatch
%endif %endif
%python_subpackages %python_subpackages