forked from pool/python-nltk
Accepting request 209813 from home:posophe:branches:devel:languages:python
update OBS-URL: https://build.opensuse.org/request/show/209813 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
b77989d251
commit
05e79db05a
@@ -17,13 +17,16 @@
|
||||
|
||||
|
||||
Name: python-nltk
|
||||
Version: 2.0.1rc1
|
||||
Version: 2.0.4
|
||||
Release: 0
|
||||
Url: http://nltk.org/
|
||||
Summary: Natural Language Toolkit
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Python
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/n/nltk/nltk-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM nltk-2.0.4-dont-use-python-distribute.patch --setup script wan't import setuptools from distribute at first
|
||||
# and try to download it
|
||||
Patch: nltk-2.0.4-dont-use-python-distribute.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
@@ -33,14 +36,11 @@ Requires: python-numpy
|
||||
Requires: python-tk
|
||||
Requires: python-xml
|
||||
Requires: python-yaml
|
||||
%if 0%{?suse_version}
|
||||
Recommends: python-matplotlib
|
||||
%py_requires
|
||||
%if 0%{?suse_version} > 1110
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%endif
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
|
||||
%description
|
||||
NLTK -- the Natural Language Toolkit -- is a suite of open source
|
||||
@@ -49,6 +49,7 @@ development in Natural Language Processing.
|
||||
|
||||
%prep
|
||||
%setup -q -n nltk-%{version}
|
||||
%patch -p1
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
|
||||
Reference in New Issue
Block a user