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:
Denisart Benjamin 2013-12-08 13:34:47 +00:00 committed by Git OBS Bridge
parent b77989d251
commit 05e79db05a
5 changed files with 32 additions and 11 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b595a204495292aa820c5ebc612464ec2ee8a7df3bcddd5392ccc8e886fec534
size 1958214

View File

@ -0,0 +1,12 @@
--- a/setup.py
+++ b/setup.py
@@ -19,9 +19,6 @@
with open(version_file) as fh:
nltk_version = fh.read().strip()
-import distribute_setup
-distribute_setup.use_setuptools()
-
from setuptools import setup, find_packages
#

3
nltk-2.0.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a554d6b9c5c7c8b597a090d8848a6f78c6fc4665ae43c9a6a6d6a5b207d98c65
size 955978

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sun Dec 8 13:33:14 UTC 2013 - p.drouand@gmail.com
- Update to version 2.0.4
+ No changelog available
- Add nltk-2.0.4-dont-use-python-distribute.patch ; force use of
python-setuptools instead of python-distribute
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 24 11:09:19 UTC 2013 - speilicke@suse.com Thu Oct 24 11:09:19 UTC 2013 - speilicke@suse.com

View File

@ -17,13 +17,16 @@
Name: python-nltk Name: python-nltk
Version: 2.0.1rc1 Version: 2.0.4
Release: 0 Release: 0
Url: http://nltk.org/ Url: http://nltk.org/
Summary: Natural Language Toolkit Summary: Natural Language Toolkit
License: Apache-2.0 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 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-setuptools BuildRequires: python-setuptools
@ -33,14 +36,11 @@ Requires: python-numpy
Requires: python-tk Requires: python-tk
Requires: python-xml Requires: python-xml
Requires: python-yaml Requires: python-yaml
%if 0%{?suse_version} %if 0%{?suse_version} && 0%{?suse_version} <= 1110
Recommends: python-matplotlib %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%py_requires %else
%if 0%{?suse_version} > 1110
BuildArch: noarch BuildArch: noarch
%endif %endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description %description
NLTK -- the Natural Language Toolkit -- is a suite of open source NLTK -- the Natural Language Toolkit -- is a suite of open source
@ -49,6 +49,7 @@ development in Natural Language Processing.
%prep %prep
%setup -q -n nltk-%{version} %setup -q -n nltk-%{version}
%patch -p1
%build %build
python setup.py build python setup.py build